OpenWrt Forum Archive

Topic: error compiling trunk

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi I'm trying to compile the trunk revision 11721 (Broadcom BCM947xx/953xx [2.6]) and I'm getting following error:

make[3]: Entering directory `/home/oconnor/Desktop/trunk/package/libnl'
WARNING: skipping libnl -- package not selected
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -ffunction-sections  -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -ffunction-sections  -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/include -I/home/oconnor/Desktop/trunk/staging_dir/mipsel/include " LDFLAGS="-L/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib -L/home/oconnor/Desktop/trunk/staging_dir/mipsel/usr/lib -L/home/oconnor/Desktop/trunk/staging_dir/mipsel/lib " make -C /home/oconnor/Desktop/trunk/build_dir/mipsel/libnl-1.1/. AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy OBJDUMP=mipsel-linux-uclibc-objdump SIZE=mipsel-linux-uclibc-size CROSS="mipsel-linux-uclibc-" ARCH="mipsel" ;
make[4]: Entering directory `/home/oconnor/Desktop/trunk/build_dir/mipsel/libnl-1.1'
Entering lib
  MAKE libnl.so.1.1
  LD libnl.so.1.1
  LN libnl.so.1.1 libnl.so.1
  LN libnl.so.1 libnl.so
make[6]: `libnl.a' is up to date.
Entering include
Entering doc
Entering src
  LD nl-addr-add
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/bin/ld: nl-addr-add: hidden symbol `__clz_tab' in /home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/libgcc.a(_clz.o) is referenced by DSO
/home/oconnor/Desktop/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/lib/gcc/mipsel-linux-uclibc/4.1.2/../../../../mipsel-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[5]: *** [nl-addr-add] Error 1
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/oconnor/Desktop/trunk/build_dir/mipsel/libnl-1.1'
make[3]: *** [/home/oconnor/Desktop/trunk/build_dir/mipsel/libnl-1.1/.built] Error 2
make[3]: Leaving directory `/home/oconnor/Desktop/trunk/package/libnl'
make[2]: *** [package/libnl/compile] Error 2
make[2]: Leaving directory `/home/oconnor/Desktop/trunk'
make[1]: *** [/home/oconnor/Desktop/trunk/staging_dir/mipsel/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/oconnor/Desktop/trunk'
make: *** [world] Fehler 2

Hi Oconnor wink,
just built r11721 from scratch, no special config (bcm947xxx 2.6/wgt634u) - works for me.
Maybe you should clean up old build-fragments or update your software on your hostsystem.

Regards,
moh

Hmm, alride I do have more packages as only the standart package of the trunk. And it looks like that I need the package "libnl-1.1" that does not compile.

Hmm, I did a

make package/libnl-clean

and after it, it compiled.

The discussion might have continued from here.