Modify

Opened 10 years ago

Closed 9 years ago

Last modified 4 years ago

#2743 closed defect (fixed)

Revision: 9590: libnl fails to compile on atheros

Reported by: jon@… Owned by: nbd
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: Cc:

Description

In addition, should it build even if I don't have it selected?

Thanks,
Jon

WARNING: skipping libnl -- package not selected
gzip -dc /usr/src/Openwrt/trunk/dl/libnl-1.0-pre7.tar.gz | /bin/tar -C /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/.. -xf -

Applying ./patches/100-static.patch using plaintext:
patching file lib/Makefile
touch /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/.prepared_19bdb375d9509c791d1ecbc48584e3ed
(cd /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/./; if [ -x ./configure ]; then cp -fpR /usr/src/Openwrt/trunk/scripts/config.{guess,sub} /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7// && AR=mips-linux-uclibc-ar AS="mips-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mips-linux-uclibc-ld NM=mips-linux-uclibc-nm CC="mips-linux-uclibc-gcc" GCC="mips-linux-uclibc-gcc" CXX=mips-linux-uclibc-g++ RANLIB=mips-linux-uclibc-ranlib STRIP=mips-linux-uclibc-strip OBJCOPY=mips-linux-uclibc-objcopy OBJDUMP=mips-linux-uclibc-objdump SIZE=mips-linux-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts " CPPFLAGS="-I/usr/src/Openwrt/trunk/staging_dir/mips/usr/include -I/usr/src/Openwrt/trunk/staging_dir/mips/include " LDFLAGS="-L/usr/src/Openwrt/trunk/staging_dir/mips/usr/lib -L/usr/src/Openwrt/trunk/staging_dir/mips/lib " PKG_CONFIG_PATH="/usr/src/Openwrt/trunk/staging_dir/mips/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/usr/src/Openwrt/trunk/staging_dir/mips/usr/lib/pkgconfig"  ./configure --target=mips-linux --host=mips-linux --build=i486-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
configure: loading site script /usr/src/Openwrt/trunk/include/site/mips-linux-uclibc
checking for mips-linux-gcc... mips-linux-uclibc-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-linux-uclibc-gcc accepts -g... yes
checking for mips-linux-uclibc-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pow in -lm... yes
configure: creating ./config.status
config.status: creating Makefile.opts
config.status: creating libnl-1.pc
config.status: creating lib/defs.h
config.status: lib/defs.h is unchanged

----------------------------------------------------------------------
SUMMARY:

Included in Compilation:
  libnl:   Yes  -lm

Dependencies:
bmon:
  libm             Yes       (required)
touch /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/.configured
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts  -I/usr/src/Openwrt/trunk/staging_dir/mips/usr/include -I/usr/src/Openwrt/trunk/staging_dir/mips/include " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts  -I/usr/src/Openwrt/trunk/staging_dir/mips/usr/include -I/usr/src/Openwrt/trunk/staging_dir/mips/include " LDFLAGS="-L/usr/src/Openwrt/trunk/staging_dir/mips/usr/lib -L/usr/src/Openwrt/trunk/staging_dir/mips/lib " make -C /usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/. AR=mips-linux-uclibc-ar AS="mips-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts" LD=mips-linux-uclibc-ld NM=mips-linux-uclibc-nm CC="mips-linux-uclibc-gcc" GCC="mips-linux-uclibc-gcc" CXX=mips-linux-uclibc-g++ RANLIB=mips-linux-uclibc-ranlib STRIP=mips-linux-uclibc-strip OBJCOPY=mips-linux-uclibc-objcopy OBJDUMP=mips-linux-uclibc-objdump SIZE=mips-linux-uclibc-size CROSS="mips-linux-uclibc-" ARCH="mips" ;
make[4]: Entering directory `/usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7'
Entering lib
  DEP netfilter/nfnl.c
  DEP netfilter/log_obj.c
  DEP netfilter/log.c
  DEP netfilter/ct_obj.c
  DEP netfilter/ct.c
  DEP fib_lookup/request.c
  DEP fib_lookup/lookup.c
  DEP genl/mngt.c
  DEP genl/genl.c
  DEP genl/family.c
  DEP genl/ctrl.c
  DEP route/cls/u32.c
  DEP route/cls/police.c
  DEP route/cls/fw.c
  DEP route/sch/tbf.c
  DEP route/sch/sfq.c
  DEP route/sch/red.c
  DEP route/sch/prio.c
  DEP route/sch/netem.c
  DEP route/sch/htb.c
  DEP route/sch/fifo.c
  DEP route/sch/dsmark.c
  DEP route/sch/cbq.c
  DEP route/sch/blackhole.c
  DEP route/tc.c
  DEP route/rule.c
  DEP route/rtnl.c
  DEP route/route_utils.c
  DEP route/route_obj.c
  DEP route/route.c
  DEP route/qdisc_obj.c
  DEP route/qdisc_api.c
  DEP route/qdisc.c
  DEP route/nexthop.c
  DEP route/neightbl.c
  DEP route/neigh.c
  DEP route/link.c
  DEP route/cls_obj.c
  DEP route/cls_api.c
  DEP route/classifier.c
  DEP route/class_obj.c
  DEP route/class_api.c
  DEP route/class.c
  DEP route/addr.c
  DEP utils.c
  DEP socket.c
  DEP object.c
  DEP nl.c
  DEP msg.c
  DEP handlers.c
  DEP family.c
  DEP doc.c
  DEP data.c
  DEP cache_mngt.c
  DEP cache_mngr.c
  DEP cache.c
  DEP attr.c
  DEP addr.c
  MAKE libnl.so.1.0-pre6
  CC addr.c
  CC attr.c
  CC cache.c
  CC cache_mngr.c
  CC cache_mngt.c
  CC data.c
  CC doc.c
  CC family.c
  CC handlers.c
  CC msg.c
  CC nl.c
  CC object.c
  CC socket.c
  CC utils.c
  CC route/addr.c
  CC route/class.c
  CC route/class_api.c
  CC route/class_obj.c
  CC route/classifier.c
  CC route/cls_api.c
  CC route/cls_obj.c
  CC route/link.c
  CC route/neigh.c
  CC route/neightbl.c
  CC route/nexthop.c
  CC route/qdisc.c
  CC route/qdisc_api.c
  CC route/qdisc_obj.c
  CC route/route.c
  CC route/route_obj.c
  CC route/route_utils.c
  CC route/rtnl.c
  CC route/rule.c
  CC route/tc.c
  CC route/sch/blackhole.c
  CC route/sch/cbq.c
  CC route/sch/dsmark.c
  CC route/sch/fifo.c
  CC route/sch/htb.c
  CC route/sch/netem.c
  CC route/sch/prio.c
  CC route/sch/red.c
  CC route/sch/sfq.c
  CC route/sch/tbf.c
  CC route/cls/fw.c
  CC route/cls/police.c
  CC route/cls/u32.c
  CC genl/ctrl.c
  CC genl/family.c
  CC genl/genl.c
  CC genl/mngt.c
  CC fib_lookup/lookup.c
  CC fib_lookup/request.c
  CC netfilter/ct.c
  CC netfilter/ct_obj.c
  CC netfilter/log.c
  CC netfilter/log_obj.c
  CC netfilter/nfnl.c
  LD libnl.so.1.0-pre6
  LN libnl.so.1.0-pre6 libnl.so.1
  LN libnl.so.1 libnl.so
  AR libnl.a
Entering include
Entering doc
Entering src
  CC utils.c
  LD nl-addr-add
/usr/src/Openwrt/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/../../../../mips-linux-uclibc/bin/ld: nl-addr-add: hidden symbol `__clz_tab' in /usr/src/Openwrt/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/libgcc.a(_clz.o) is referenced by DSO
/usr/src/Openwrt/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/../../../../mips-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 `/usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7'
make[3]: *** [/usr/src/Openwrt/trunk/build_dir/mips/libnl-1.0-pre7/.built] Error 2
make[3]: Leaving directory `/usr/src/Openwrt/trunk/package/libnl'
make[2]: *** [package/libnl/compile] Error 2
make[2]: Leaving directory `/usr/src/Openwrt/trunk'
make[1]: *** [/usr/src/Openwrt/trunk/staging_dir/mips/stamp/.package_compile] Error 2
make[1]: Leaving directory `/usr/src/Openwrt/trunk'
make: *** [world] Error 2

Attachments (0)

Change History (11)

comment:1 Changed 10 years ago by nbd

  • Owner changed from developers to nbd
  • Status changed from new to assigned

please try the newer version that was committed a while ago

comment:2 Changed 10 years ago by jal2@…

Same error ("hidden symbol ... referenced by DSO") here with svn r10180 compiling for RB133 (ADM5120, mipsel)

comment:3 Changed 10 years ago by Mixasik

Same error with revision 10516

comment:4 Changed 10 years ago by knox

Since libnl is not used on atheros systems a simple workarround to skip this problem is "chmod -r package/libnl/Makefile"

comment:5 Changed 10 years ago by blogic

  • Resolution set to worksforme
  • Status changed from assigned to closed

works with current trunk

comment:6 Changed 10 years ago by cezary@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

No, same error ("hidden symbol ... referenced by DSO"), r10759

make[4]: Entering directory `/opt/xxx/trunk/build_dir/mips/libnl-1.0-pre8'
Entering lib
  MAKE libnl.so.1.0-pre8
  LD libnl.so.1.0-pre8
  LN libnl.so.1.0-pre8 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
/opt/xxx/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/../../../../mips-linux-uclibc/bin/ld: nl-addr-add: hidden symbol `__clz_tab' in /opt/xxx/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/libgcc.a(_clz.o) is referenced by DSO
/opt/xxx/trunk/staging_dir/toolchain-mips_gcc4.1.2/lib/gcc/mips-linux-uclibc/4.1.2/../../../../mips-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 `/opt/xxx/trunk/build_dir/mips/libnl-1.0-pre8'
make[3]: *** [/opt/xxx/trunk/build_dir/mips/libnl-1.0-pre8/.built] Error 2
make[3]: Leaving directory `/opt/xxx/trunk/package/libnl'
make[2]: *** [package/libnl/compile] Error 2
make[2]: Leaving directory `/opt/xxx/trunk'
make[1]: *** [/opt/xxx/trunk/staging_dir/mips/stamp/.package_compile] Error 2
make[1]: Leaving directory `/opt/xxx/trunk'
make: *** [world] Błąd 2


comment:7 Changed 10 years ago by fish

here too, same error, r10790

comment:8 Changed 10 years ago by fish

I've solved that problem for me.

I'v solved that problem by rebuilding my toolchain.
First i tried "make toolchain/gcc-clean". But the next time i ran make results in another error (it tried to use my host systems 'as' for building the kernel package). So i deleted my whole toolchain with

rm -rf build_dir/toolchain-*
rm -rf toolchain/*

after rebuilding (just ran make) everything works fine again.

To you question about why libnl gets build without selecting it in menuconfig:
In my case libnl was build because i selected hostapd and libnl is a _build_ time dependency for (thx nbd for clarify that).

comment:9 Changed 10 years ago by nuitari-openwrt@…

Same error with r11453, even if I delete my toolchain it happens.

comment:10 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:11 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.