[uClinux-dev] building gcc 3.4.4

Greg Ungerer gerg at snapgear.com
Thu Jun 11 01:01:08 EDT 2009


Hi Jeff,

Jeff Bacon wrote:
> After searching the list some more, It looks like someone else has run
> into this issue before.
> 
> I will follow the directions referenced in the thread "woo with
> building gcc-3.4.4" to see if those help.

Did they help?

Regards
Greg



> On Thu, Jun 4, 2009 at 6:29 PM, Jeff Bacon <jbac.uc.dev at gmail.com> wrote:
>> Ok, so I've figured out that it has to point to my specific headers to
>> compile, and I've made it through almost all of the steps EXCEPT for
>> one of the last ones, step 8(repeated here):
>>
>> ********************************************************************************************************
>> 8. gcc-3.4.4 (c++, etc)
>>
>>   tar xvzf gcc-3.4.4.tar.gz
>>   cd gcc-3.4.4
>>
>>   cp $(ATTACHED t-linux file) gcc/config/arm/
>>   vi gcc/config/arm/t-linux
>>      - remove all "-Dinhibit_libc" occruances
>>   vi gcc/config/arm/linux-elf.h
>>     -- remove line that defines LIBGCC_SPEC
>>   perl -pi -e 's/int namelen/unsigned int namelen/'
>> libjava/java/net/natInetAddressPosix.cc
>>
>>   mkdir arm-linux
>>   cd arm-linux
>>   ../configure --target=arm-linux --disable-shared \
>>        --prefix=/usr/local --with-headers=linux-2.4.x/include \
>>        --with-gnu-as --with-gnu-ld --enable-multilib
>>   make
>>   make install
>> ********************************************************************************************************
>>
>> The compilation makes it almost all the way through until it hits the
>> section where it's working on libstdc++-v3, where it dies with this
>> error:
>>
>> <snip>
>> checking for float.h... (cached) yes
>> checking for stdint.h... (cached) yes
>> checking for main in -lm... configure: error: Link tests are not
>> allowed after GCC_NO_EXECUTABLES.
>> make: *** [configure-target-libstdc++-v3] Error 1
>> [root at localhost arm-linux]#
>>
>>
>> I'm so close I can taste it, can anyone (Greg??) help me out here? I'm
>> following Greg's instructions EXACTLY, so if anyone else has then they
>> would have had to have seen this error I would think. I'm building it
>> on the recommended Fedora Core 3 machine by the way...
>>
>>
>> -JB
>>
>>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 

-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg at snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com



More information about the uClinux-dev mailing list