[uClinux-dev] (no subject)

Jason Bardey jbardey at tiscali.co.uk
Wed Aug 3 17:04:29 EDT 2005


>> On 6/21/05, Jason Bardey <jbardey at tiscali.co.uk> wrote:
>> > Hi,
>> > I have been trying to get uclinux and it's toolchain to compile for
>> > about 2 months now.
>> > Have have two problems at the moment.
>> >
>> > 1) The uclinux toolchain won't build past stage 6 (uclibc first  
>> pass).
>> > This is due to missing kernel headers.
>> > Can anyone help rectify this? I can't find kernel headers or the
>> > makefile for darwin.
>>
>> What makes you think a BSD OS should have Linux headers? (o;
>>
>> >
>> > 2) Using the first 5 stages of the toolchain I have the following
>> > problem
>> > [extract from terminal output]
>> >
>> > make[2]: Nothing to be done for `__build'.
>> >    CC      arch/armnommu/mach-nds/arch.o
>> >    CC      arch/armnommu/mach-nds/irq.o
>> >    CC      arch/armnommu/mach-nds/time.o
>> > arch/armnommu/mach-nds/time.c: In function `nds_timer_interrupt':
>> > arch/armnommu/mach-nds/time.c:49: warning: implicit declaration of
>> > function `timer_tick'
>> >    CC      arch/armnommu/mach-nds/button.o
>> > arch/armnommu/mach-nds/button.c:68: warning: initialization from
>> > incompatible pointer type
>> >    CC      arch/armnommu/mach-nds/fifo.o
>> >    LD      arch/armnommu/mach-nds/built-in.o
>> >    AS      arch/armnommu/mach-nds/arm7/head.o
>> >    CC      arch/armnommu/mach-nds/arm7/main.o
>> > arch/armnommu/mach-nds/arm7/main.c: In function `InterruptHandler':
>> > arch/armnommu/mach-nds/arm7/main.c:74: warning: unused variable  
>> `data'
>> > arm-elf-gcc -msoft-float -nostartfiles -nostdlib -o
>> > arch/armnommu/mach-nds/arm7.elf arch/armnommu/mach-nds/arm7/head.o
>> > arch/armnommu/mach-nds/arm7/main.o  -lgcc -T
>> > arch/armnommu/mach-nds/arm7/arm7.lds
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/../../../../arm- 
>> elf/
>> > bin/ld.real: ERROR:
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/ 
>> libgcc.a(_divsi3.o)
>> > uses hardware FP, whereas arch/armnommu/mach-nds/arm7.elf uses  
>> software
>> > FP
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/../../../../arm- 
>> elf/
>> > bin/ld.real: failed to merge target specific data of file
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/ 
>> libgcc.a(_divsi3.o)
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/../../../../arm- 
>> elf/
>> > bin/ld.real: ERROR:
>> > /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/
>> > libgcc.a(_dvmd_tls.o) uses hardware FP, whereas
>> > arch/armnommu/mach-nds/arm7.elf uses software FP
>> >  
>> /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/../../../../arm- 
>> elf/
>> > bin/ld.real: failed to merge target specific data of file
>> > /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/
>> > libgcc.a(_dvmd_tls.o)
>> > /usr/local/arm-uclinux-tools/lib/gcc/arm-elf/3.4.0/
>> > libgcc.a(_divsi3.o)(.text+0x11c):/Users/jason/desktop/sources-
>> >  
>> toolchains/3.4.0-toolchain/gcc-3.4.0/gcc/config/arm/lib1funcs.asm: 
>> 735:
>> > relocation truncated to fit: R_ARM_PLT32 __div0
>> > collect2: ld returned 1 exit status
>> > make[2]: *** [arch/armnommu/mach-nds/arm7.elf] Error 1
>> > make[1]: *** [arch/armnommu/mach-nds] Error 2
>> > make: *** [linux] Error 1
>> >
>> > [end extract]
>> >
>> > I had this problem using a previous toolchain. That one was a  
>> pre-built
>> > binary, from a sourceforge project i think.
>> >
>
> What is unclear with:
>
> "libgcc.a(_divsi3.o) uses hardware FP, whereas
> arch/armnommu/mach-nds/arm7.elf uses software FP"
>
> You didn't tell anything about what target you intend to use...if it  
> has
> FP or not...have you checked you have different wrappers installed
> for hardware/software FP?
>
>
> rick
>
>
>
> http://www.uclinux.net/forum/

Sorry about that. Target platform is the nintendo DS. I think it uses  
software FP as it has no MMU.
The main thing I want to know is a work around for uClibc though. It's  
currently not needed in the project as we are using uc-libc.
Arm-elf-gcc version 3.3.2
GCC 3.4.3

> "You didn't tell anything about what target you intend to use...if it  
> has
> FP or not...have you checked you have different wrappers installed
> for hardware/software FP?"

I wouldn't know how to start checking for this. Any pointers?

Cheers,
	Jason

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 9314 bytes
Desc: not available
URL: <http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20050803/761eb378/attachment.bin>


More information about the uClinux-dev mailing list