From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10927 invoked by alias); 31 Dec 2007 13:54:45 -0000 Received: (qmail 10914 invoked by uid 22791); 31 Dec 2007 13:54:43 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 31 Dec 2007 13:54:31 +0000 Received: by wa-out-1112.google.com with SMTP id m16so6965974waf.20 for ; Mon, 31 Dec 2007 05:54:29 -0800 (PST) Received: by 10.114.194.1 with SMTP id r1mr10109816waf.40.1199109269425; Mon, 31 Dec 2007 05:54:29 -0800 (PST) Received: by 10.114.200.13 with HTTP; Mon, 31 Dec 2007 05:54:29 -0800 (PST) Message-ID: <23dcc150712310554p54ea44a9hd049a2a83bf13da6@mail.gmail.com> Date: Mon, 31 Dec 2007 13:54:00 -0000 From: "tsah marco" To: gcc-help@gcc.gnu.org Subject: building gcc compiler --target=x86_64 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00463.txt.bz2 hi, i am trying to build gcc compiler on pc(turion64x2 with fedora-8) for target - athlon 64bit x2, i have build one compiler with the following parameters: [root@localhost gcc-4.1.0]# gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ./configure --enable-languages=c,c++ --enable-threads=posix --disable-checking --enable-__cxa_atexit --disable-libunwind-exceptions --prefix=/opt/gcc/gcc-4.1.0 Thread model: posix gcc version 4.1.0 now i want to install gcc 64bit version the way is to change the --target=x86_64--pc-linux-gnu in the confiigure script i have som questions: 1) how do i know if my OS fedora-8 is 64bit based(because i install x86_64 version DVD) 2) i believe gcc version 4.1.0 support 64 bit ,is it true? 3) do you have any configure example for x86_64 bit that works for you? i have used this configure and got an error in the make. -- ./configure --target=x86_64-pc-linux-gnu --enable-languages=c,c++ --enable-threads=posix --disable-checking --enable-__cxa_atexit --disable-libunwind-exceptions --prefix=/opt/gcc/second_gcc-4.1.0/ -- and then run make the output error after 7 minutes: /opt/gcc/second_gcc-4.1.0//lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/sys-include ) Fixing headers into /opt/gcc/second_gcc-4.1.0/gcc-4.1.0/gcc/include for x86_64-pc-linux-gnu target No forbidden identifiers defined by this target rm -f include/syslimits.h if [ -f include/limits.h ]; then \ mv include/limits.h include/syslimits.h; \ else \ cp ../.././gcc/gsyslimits.h include/syslimits.h; \ fi chmod a+r include/syslimits.h echo timestamp > stmp-fixinc rm -f mm_malloc.h cat ../.././gcc/config/i386/pmm_malloc.h > mm_malloc.h if [ -f /opt/gcc/second_gcc-4.1.0//lib/gcc/x86_64-pc-linux-gnu/4.1.0/../../../../x86_64-pc-linux-gnu/sys-include/limits.h ] ; then \ cat ../.././gcc/limitx.h ../.././gcc/glimits.h ../.././gcc/limity.h > tmp-xlimits.h; \ else \ cat ../.././gcc/glimits.h > tmp-xlimits.h; \ fi mv tmp-xlimits.h xlimits.h if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi for file in .. ../.././gcc/ginclude/float.h ../.././gcc/ginclude/iso646.h ../.././gcc/ginclude/stdarg.h ../.././gcc/ginclude/stdbool.h ../.././gcc/ginclude/stddef.h ../.././gcc/ginclude/varargs.h ../.././gcc/config/i386/mmintrin.h ../.././gcc/config/i386/mm3dnow.h ../.././gcc/config/i386/xmmintrin.h ../.././gcc/config/i386/emmintrin.h ../.././gcc/config/i386/pmmintrin.h mm_malloc.h; do \ if [ X$file != X.. ]; then \ realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \ echo timestamp > include/$realfile; \ rm -f include/$realfile; \ cp $file include; \ chmod a+r include/$realfile; \ fi; \ done rm -f include/limits.h cp xlimits.h include/limits.h cp ../.././gcc/unwind-generic.h include/unwind.h chmod a+r include/limits.h rm -f include/README cp ../.././gcc/../fixincludes/README-fixinc include/README chmod a+r include/README echo timestamp > stmp-int-hdrs make[2]: *** No rule to make target `/opt/gcc/second_gcc-4.1.0//bin/x86_64-pc-linux-gnu-as', needed by `stamp-as'. Stop. make[2]: Leaving directory `/opt/gcc/second_gcc-4.1.0/gcc-4.1.0/host-i686-pc-linux-gnu/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/opt/gcc/second_gcc-4.1.0/gcc-4.1.0' make: *** [all] Error 2 thanks tsah Marco Cel - 972-54-5414357 Home - 972-774240642 Fax - 972-77-4240642