[#7181] Cannot build ALSA library when /usr/lib/libm.so is present on host
Submitted By: Stephan Hoffmann
Open Date
2012-07-02 07:05:35
Priority:
Medium Assignee:
Nobody
Status:
Open Fixed In Release:
N/A
Found In Release:
2011R1-RC3 Release:
Category:
Audio Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Out of Date
Uboot version or rev.:
Toolchain version or rev.:
ADI-2010R1-RC4
App binary format:
N/A
Summary: Cannot build ALSA library when /usr/lib/libm.so is present on host
Details:
Used Host: Ubuntu 10.04 X86 64 Bit
Build output:
libtool: install: warning: relinking `smixer-sbase.la'
(cd /home/stephan/Dokumente/Blackfin/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer/simple; /bin/bash ../../../libtool --silent --tag=CC --mode=relink bfin-linux-uclibc-gcc -g -O2 -W -Wall -pipe -Wall -g -O2 -mcpu=bf537-0.2 -lm -D_GNU_SOURCE -module -avoid-version -mcpu=bf537-0.2 -o smixer-sbase.la -rpath /usr/lib/alsa-lib/smixer sbase.lo ../../../src/libasound.la -inst-prefix-dir /home/stephan/Dokumente/Blackfin/blackfin-linux-dist/staging)
/usr/lib/libm.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Obviously libtool tries to link the host's libm.so.
Removing libm.so fixes this problem, but rises another:
/usr/lib/libdl.so: file not recognized: File format not recognized
After removing libdl.so everything builds o.k.
Follow-ups
--- Stephan Hoffmann 2012-07-02 08:08:05
Addendum:
Use "sudo touch /usr/lib/libm.so" to produce this problem if no
/usr/lib/libm.so exists.
--- Mike Frysinger 2012-07-02 12:18:27
probably needs to apply the relink hack patch as found in lib/pcre/patches
--- Stephan Hoffmann 2012-07-02 13:36:02
Thanks for this hint, it fixes the problem. The patch is already part of the
distribution.
Nevertheless I think it should be fixed in the distribution.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found