Opened 5 years ago

Last modified 4 years ago

#12719 new defect

gdb builds without ELF support due to incorrect library search order

Reported by: Rafal.Rawicki@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:


This problem is very similar to the ticket #9048 and the same solution works - libiberty is found in the staging directory, but the locally compiled one should be used.

Here's the gdb/config.log:

configure:23001: checking for ELF support in BFD
configure:23025: armeb-openwrt-linux-uclibcgnueabi-gcc -o conftest -Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float  -I.././gdb/../include -I../bfd -I.././gdb/../bfd -I/home/rafal/attitude_adjustment/staging_dir/target-armeb_v5te_uClibc- -I/home/rafal/attitude_adjustment/staging_dir/target-armeb_v5te_uClibc- -I/home/rafal/attitude_adjustment/staging_dir/toolchain-armeb_v5te_gcc-4.6-linaro_uClibc- -I/home/rafal/attitude_adjustment/staging_dir/toolchain-armeb_v5te_gcc-4.6-linaro_uClibc- -L/home/rafal/attitude_adjustment/staging_dir/target-armeb_v5te_uClibc- -L/home/rafal/attitude_adjustment/staging_dir/target-armeb_v5te_uClibc- -L/home/rafal/attitude_adjustment/staging_dir/toolchain-armeb_v5te_gcc-4.6-linaro_uClibc- -L/home/rafal/attitude_adjustment/staging_dir/toolchain-armeb_v5te_gcc-4.6-linaro_uClibc-  -L../bfd -L../libiberty conftest.c -lncurses -lm  -lbfd -liberty  >&5
/home/rafal/attitude_adjustment/staging_dir/toolchain-armeb_v5te_gcc-4.6-linaro_uClibc- could not read symbols: File format not recognized
collect2: ld returned 1 exit status
configure:23031: $? = 1
configure: failed program was:
| /* confdefs.h.  */

Why directories from staging_dir go to LDFLAGS for target binaries? This kind of incorrect linking can be hidden in other packages too.

Tested under svn r34879.

Attachments (0)

Change History (1)

comment:1 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

as new .

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

Note: See TracTickets for help on using tickets.