libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] arm cross-compile/link errors: undefined reference


From: Allen Hamedany
Subject: Re: [Libunwind-devel] arm cross-compile/link errors: undefined reference to AO_fetch_and_add & AO_fetch_and_add1
Date: Tue, 19 Aug 2014 10:27:18 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0


On 08/18/2014 09:28 PM, Arun Sharma wrote:
On Tue, Aug 19, 2014 at 3:46 AM, Allen Hamedany <address@hidden> wrote:

./configure --host=$HOST --target=$TARGET CC=$ti/*gcc CFLAGS=$CFLAGS
CXX=$ti/*g++ CXXFLAGS=$CXXFLAGS
LDFLAGS="-L<unwind-inst-dir>/libunwind/libunwind-1.1/src/.l
ibs"
Don't think LDFLAGS should be needed. Why not just make install
DESTDIR=<unwind-inst-dir>?


I retried linking my app using the following switches:
-Xlinker -latomic_ops_gpl -latomic_ops -lunwind-arm

However, I still get the above "undefined reference" errors.
Any help is much appreciated.
Did you try running configure after libatomic_ops was installed?
I installed libatomic_ops and then reran configure.

make check still fails as follows:

make[2]: Entering directory `/scratch/home/test/libunwind/libunwind-1.1-arm/tests'
depbase=`echo test-proc-info.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/scratch/ti/AM335x/linux-devkit/bin/*gcc -DHAVE_CONFIG_H -I. -I../include -I../include -D_GNU_SOURCE -DUNW_REMOTE_ONLY -DNDEBUG -std=gnu99 -fexceptions -Wall -Wsign-compare -MT test-proc-info.o -MD -MP -MF $depbase.Tpo -c -o test-proc-info.o test-proc-info.c &&\
    mv -f $depbase.Tpo $depbase.Po
/bin/sh ../libtool --tag=CC --mode=link /scratch/ti/AM335x/linux-devkit/bin/*gcc -std=gnu99 -fexceptions -Wall -Wsign-compare -L/scratch/test/libunwind/libunwind-1.1/src/.libs -o test-proc-info test-proc-info.o ../src/libunwind-arm.la libtool: link: /scratch/ti/AM335x/linux-devkit/bin/arm-arago-linux-gnueabi-gcc -std=gnu99 -fexceptions -Wall -Wsign-compare -o .libs/test-proc-info test-proc-info.o -L/scratch/test/libunwind/libunwind-1.1/src/.libs ../src/.libs/libunwind-arm.so -Wl,-rpath -Wl,/usr/local/lib
../src/.libs/libunwind-arm.so: undefined reference to `AO_fetch_and_add'
../src/.libs/libunwind-arm.so: undefined reference to `AO_fetch_and_add1'
collect2: ld returned 1 exit status
make[2]: *** [test-proc-info] Error 1
make[2]: Leaving directory `/scratch/home/test/libunwind/libunwind-1.1-arm/tests'
make[1]: *** [check-am] Error 2


Many of these are generic autoconf questions. Also suggest trying
mailing lists that are dedicated to this topic.
OK. care to suggest a few relevant mailing lists?
Allen

  -Arun




reply via email to

[Prev in Thread] Current Thread [Next in Thread]