Opened 5 years ago

Last modified 2 years ago

#10827 new defect

mips build chain has typo in makefile.

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:


binutils link commands look for _Clibc instead of _uClibc

seems to have broken with update in binutils 2.20.1?

make[8]: Entering directory `/home/build/openwrt/trunk/build_dir/toolchain-mips_r2_gcc-4.5-linaro_uClibc-0.9.32/binutils-2.20.1/binutils'
/bin/bash ./libtool --tag=CC --mode=link i486-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -L/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/usr/lib -L/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/lib -Wl,-rpath -link=/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/lib/ -o size size.o bucomm.o version.o filemode.o ../bfd/ ../libiberty/libiberty.a -lz
libtool: link: i486-linux-gnu-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wl,-rpath -o size size.o bucomm.o version.o filemode.o -L/home/build/openwrt/trunk
staging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/usr/lib -L/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/lib ../bfd/.libs/libbfd.a -link=/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/lib/ ../libiberty/libiberty.a -lz
/usr/bin/ld: cannot find -link=/home/build/openwrt/trunkstaging_dir/toolchain-mips_r2_gcc-4.5-linaro_Clibc-0.9.32/lib/

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by jow

No Makefile issue, this rather looks like a broken libtool. The -Wl,-rpath-link=... flag got broken up in the middle.

comment:2 Changed 5 years ago by anonymous

You're right.


Line 4693

_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags $ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\'' -link -dll~linknames='

I don't understand libtool and m4, but that might be from line 5093 in

Removing the space before -link makes things better.

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

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

Note: See TracTickets for help on using tickets.