From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5471 invoked by alias); 19 Jan 2011 14:48:46 -0000 Received: (qmail 5298 invoked by uid 22791); 19 Jan 2011 14:48:43 -0000 X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_CX,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from fmmailgate03.web.de (HELO fmmailgate03.web.de) (217.72.192.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Jan 2011 14:48:37 +0000 Received: from smtp03.web.de ( [172.20.0.65]) by fmmailgate03.web.de (Postfix) with ESMTP id E021B184428D7 for ; Wed, 19 Jan 2011 15:48:34 +0100 (CET) Received: from [194.80.66.254] (helo=[172.16.77.230]) by smtp03.web.de with asmtp (WEB.DE 4.110 #2) id 1PfZKs-0005gW-00 for gcc-help@gcc.gnu.org; Wed, 19 Jan 2011 15:48:34 +0100 Message-ID: <4D36F9D6.5020400@web.de> Date: Wed, 19 Jan 2011 14:48:00 -0000 From: Olumide <50295@web.de> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Compiling gcc-4.1.2 on 64-bit Ubuntu machines Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sender: 50295@web.de X-IsSubscribed: yes 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: 2011-01/txt/msg00279.txt.bz2 Hi all, We are trying to compile the gcc compiler a 64-bit Ubuntu machine -- because that is the version of gcc that Autodesk Maya 2011 is built with and therefore plugins must be compiled against the same version of gcc. See: http://download.autodesk.com/us/maya/2011help/index.html?url=./files/Setting_up_your_build_environment_Linux_compiler_requirement.htm,topicNumber=d0e677620 Following the instructions in this link we ran configure --prefix=/opt/gcc412 --program-suffix=412 --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --disable-libunwind-exceptions --enable-__cxa_atexit followed by make -j 2 bootstrap Unfortunately, the process build with the error /usr/include/gnu/stubs.h:7:27:/usr/include/gnu/stubs.h:7:27: error: error: gnu/stubs-32.h: No such file or directorygnu/stubs-32.h: No such file or directory make[4]: *** [32/crtend.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [32/crtbegin.o] Error 1 make[4]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make[3]: *** [extra32] Error 2 make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make: *** [bootstrap] Error 2 We've tried linking the file stubs.h in /usr/include/gnu/ to stubs-32.h and tried rebuilding, but this time we get the error message: /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status make[3]: *** [32/libgcc_s.so] Error 1 make[3]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/home/oaina/Downloads/gcc412/gcc-build/gcc' make: *** [bootstrap] Error 2 ----------------------------------------------------------- Update: We've set the CFAGS environment variable to m64 and tried rebuilding, and this time the process went much further but did eventually fail with the error message: /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc Thanks, - Olumide