Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#5473 closed defect (fixed)

uClibc doesn't compile, due to undefined reference of HIGH_BITS in function posix_fadvise

Reported by: Maddes <maddes_trac@…> Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:


Error message with rev 16733 for CPU Marvell Orion (Kernel

arm-openwrt-linux-uclibcgnueabi-gcc -Wl,-EL -Wl,-shared -Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,relro -Wl,-z,defs    -Wl,-init,__uClibc_init -Wl, -nostdlib -o lib/  -Wl,--whole-archive libc/libc_so.a -Wl,--no-whole-archive ./lib/interp.os ./lib/ ./lib/uclibc_nonshared.a /home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc- 
libc/libc_so.a(posix_fadvise.os): In function `posix_fadvise':
posix_fadvise.c:(.text+0x18): undefined reference to `HIGH_BITS'
collect2: ld returned 1 exit status
make[4]: *** [lib/] Error 1
make[4]: Leaving directory `/home/openwrt/kamikaze-trunk/build_dir/toolchain-arm_gcc-4.1.2_uClibc-'
make[3]: *** [/home/openwrt/kamikaze-trunk/staging_dir/toolchain-arm_gcc-4.1.2_uClibc-] Error 2
make[3]: Leaving directory `/home/openwrt/kamikaze-trunk/toolchain/uClibc'
make[2]: *** [toolchain/uClibc/compile] Error 2

Last working compile after "make distclean" was 16650.

Trunk rev: 16733
Feed "packages" rev: same as trunk, all packages installed
Feed "luci" rev: 5026, all packages installed
Feed "xwrt" rev: 4769, all packages installed

Build Environment:
Debian 5.0


#backup dl directory to save download time, clean everything and restore dl directory
mv dl dl_save
make distclean ; echo -e '\a'   #ring the bell when done
mv dl_save dl

#get latest trunk to be on par with package checkout
svn up
scripts/feeds update packages
scripts/feeds update luci
scripts/feeds update xwrt

#install packages
scripts/feeds install -a -p packages
scripts/feeds install -a -p luci
scripts/feeds install -a -p xwrt

#select packages
make menuconfig
     --> Target System: Marvel Orion (ARM, Kernel 2.6.28)[[BR]]
     --> Target Images: SquashFS image (default)[[BR]]
     --> Global build settings: Select all packages by default[[BR]]

script -f -c 'make V=99 IGNORE_ERRORS=m' compilelog_`svnversion`_`date +%Y%m%d_%H%M%S`.log ; echo -e '\a'
(search for "ERROR:" case-sensitive)

Attachments (1)

compilelog_16733M_20090707_122801.7z (118.0 KB) - added by Maddes <maddes_trac@…> 8 years ago.
Full compile log

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Maddes <maddes_trac@…>

Full compile log

comment:1 Changed 8 years ago by Maddes <maddes_trac@…>

Reason should be r16720

comment:2 Changed 8 years ago by juhosg

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

Fixed with [16735]. Thanks for reporting!

comment:3 Changed 3 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

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

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

Note: See TracTickets for help on using tickets.