Skip to contentSkip to conversation

Error building arm toolchain: undefined reference to `raise'

Buildroot Tor Krill 4 participants 5 messages Oct 26, 2006 – Nov 1, 2006

lore
Share & tools
lore

Tor Krill

author
#0 lore raw

Hi,

I'm trying to build an up to date toolchain for our arm920t board, at91rm9200. However compilation fails with a:

/home/tor/tmp/buildroot/build_arm/staging_dir/bin/arm-linux-uclibc-ld -EL -e _start -z now -Bsymbolic -shared --warn-common --export-dynamic --sort-common -z combreloc --discard-locals --discard-all --no-undefined -s

-soname=ld-uClibc.so.0 \
        -o ld-uClibc-0.9.28.so arm/resolve.o ldso.o

/home/tor/tmp/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.1/libgcc.a /home/tor/tmp/buildroot/build_arm/staging_dir/lib/gcc/arm-linux-uclibc/4.1.1/libgcc.a(_dvmd_lnx.o):
In function `__div0':
/home/tor/tmp/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/config/arm/lib1funcs.asm:1000:
undefined reference to `raise'
make[3]: *** [ld-uClibc-0.9.28.so] Error 1
make[3]: Leaving directory `/home/tor/tmp/buildroot/toolchain_build_arm/uClibc-0.9.28/ldso/ldso'
make[2]: *** [ldso] Error 2
make[2]: Leaving directory `/home/tor/tmp/buildroot/toolchain_build_arm/uClibc-0.9.28/ldso'
make[1]: *** [_dir_ldso] Error 2
make[1]: Leaving directory `/home/tor/tmp/buildroot/toolchain_build_arm/uClibc-0.9.28'

I used latest possible stable versions,
* gcc-4.1.1
* Kernel headers 2.6.12
* Binutils 2.17
* no softfloat
* Busybox snapshot
* Default stable uClibc 0.9.28

Am i missing something here?

Regards

/Tor

#1 lore raw
Quoted 4 lines

Hi,

I'm trying to build an up to date toolchain for our arm920t board, at91rm9200. However compilation fails with a:

[...]

Quoted 2 lines

/home/tor/tmp/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/config/arm/lib1funcs.asm:1000:
undefined reference to `raise'

[...]

Quoted 5 lines

Am i missing something here?

Regards

/Tor

Hi,

Have a look at the gumstix buildroot (www.gumstix.org) for a patch called uClibc-gcc-41-raise-error.patch, I think this will do the trick.

Philippe

author
#2 lore raw

Quoting Philippe Ney <[email protected]>:

Quoted 8 lines
Quoted 3 lines

Hi,

I'm trying to build an up to date toolchain for our arm920t board,

at91rm9200.

Quoted 1 line

However compilation fails with a:

[...]

Quoted 1 line

/home/tor/tmp/buildroot/toolchain_build_arm/gcc-4.1.1/gcc/config/arm/lib1funcs.asm:1000:

Quoted 6 lines
Quoted 1 line

undefined reference to `raise'

[...]

Quoted 1 line

Am i missing something here?

Have a look at the gumstix buildroot (www.gumstix.org) for a patch called uClibc-gcc-41-raise-error.patch, I think this will do the trick.

Thanks Philippe, this solved the compilation error.

/Tor

#3 lore raw
In reply to Philippe Ney
Quoted 3 lines · Philippe Ney

Have a look at the gumstix buildroot (www.gumstix.org) for a patch called uClibc-gcc-41-raise-error.patch, I think this will do the trick.

To save time, here's the exact location of this patch:
http://svn.gumstix.com/gumstix-buildroot/trunk/toolchain/uClibc/uClibc-gcc-41-raise-error.patch

Cheers,

Michael.

Signature · 4 lines
Michael Opdenacker, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1000 pages!)
#4 lore raw
Quoted 7 lines · Michael Opdenacker
Quoted 3 lines · Philippe Ney

Have a look at the gumstix buildroot (www.gumstix.org) for a patch called uClibc-gcc-41-raise-error.patch, I think this will do the trick.

To save time, here's the exact location of this patch:
http://svn.gumstix.com/gumstix-buildroot/trunk/

toolchain/uClibc/uClibc-gcc-41-raise-error.patch

Quoted 5 lines

Cheers,

Michael.

When/How does this patch (and other similar) get incorporated into uClibC.org patches ?
Surely that is the most appropriate location ?

Regards,
MikeW