Skip to contentSkip to conversation

Error during make

Buildroot Daniel Endres 2 participants 3 messages Aug 13, 2008 – Aug 18, 2008

lore
Share & tools
lore
#0 lore raw

Hello Guys,

I'm trying to build a toolchain as well as rootfs for a mipsel device.

Therefore I'd like to use buildroot. The problem is that I'm getting some undefined references errors during the awk-build. Obviously the errors are due to a missing math-library.

I've just downloaded the latest snapshot in the first place and tried the svn-version later on.
Both giving me the same errors.

I've just done a "make menuconfig" for buildroot, changed the target to mipsel, exited and hit "make".
I don't know if I'm wrong, but shouldn't a clean build succeed ?

Below I've posted my error-log. Hopefully some could point me in the right direction.
Thanks in advance,

Greetings Daniel

miscutils/lib.a(dc.o): In function `power':
dc.c:(.text.power+0x50): undefined reference to pow' editors/lib.a(awk.o): In function evaluate':
awk.c:(.text.evaluate+0x10ec): undefined reference to cos' awk.c:(.text.evaluate+0x1110): undefined reference to exp' awk.c:(.text.evaluate+0x111c): undefined reference to log' awk.c:(.text.evaluate+0x1140): undefined reference to sin' awk.c:(.text.evaluate+0x1158): undefined reference to sqrt' awk.c:(.text.evaluate+0x16a0): undefined reference to atan2' awk.c:(.text.evaluate+0x27b0): undefined reference to `pow'
collect2: ld returned 1 exit status
make[1]: *** [busybox_unstripped] Error 1
make[1]: Leaving directory `/home/nexus/uclibc/buildroot/project_build_mipsel/uclibc/busybox-1.11.1'
make: *** [/home/nexus/uclibc/buildroot/project_build_mipsel/uclibc/busybox-1.11.1/busybox]

Error 2

#1 lore raw
Quoted 12 lines · Daniel Endres

Hello Guys,

I'm trying to build a toolchain as well as rootfs for a mipsel device.

Therefore I'd like to use buildroot. The problem is that I'm getting some undefined references errors during the awk-build. Obviously the errors are due to a missing math-library.

I've just downloaded the latest snapshot in the first place and tried the svn-version later on.
Both giving me the same errors.

Quoted 6 lines

I've just done a "make menuconfig" for buildroot, changed the target to mipsel, exited and hit "make".
I don't know if I'm wrong, but shouldn't a clean build succeed ?

Below I've posted my error-log. Hopefully some could point me in the right direction.

Well, as you correctly state you need stuff from libm, so configure your libc to provide the required libm functionality.

see docs/README

#2 lore raw

Hello Bernhard,

first of all, thanks for your quick reply.
Ok, missing libm functionaliy seems to be the problem. But how do I configure my libc-library? You did mean "configure your uclibc" didn't you?

I've tried to configure my uclibc as stated in the docs/Readme via "make uclibc-menuconfig", but there isn't any possibility to configure libm support?

Am I digging in the wrong spot ?

Thanks for your help

Greetings, Daniel

Quoted 18 lines · Daniel Endres
Quoted 17 lines

Hello Guys,

I'm trying to build a toolchain as well as rootfs for a mipsel device.

Therefore I'd like to use buildroot. The problem is that I'm getting some undefined references errors during the awk-build. Obviously the errors are due to a missing math-library.

I've just downloaded the latest snapshot in the first place and tried the svn-version later on.
Both giving me the same errors.

I've just done a "make menuconfig" for buildroot, changed the target to mipsel, exited and hit "make".
I don't know if I'm wrong, but shouldn't a clean build succeed ?

Quoted 10 lines
Quoted 3 lines

Below I've posted my error-log. Hopefully some could point me in the right direction.

Well, as you correctly state you need stuff from libm, so configure your libc to provide the required libm functionality.

see docs/README

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080818/387f4810/attachment.htm