Hello, While trying to compile for beagleboard a program using cross toolchain downloaded from narcissus, I got stuck with a strange error. After preparing the build environment by running './configure --host=arm-angstrom-linux-gnueabi', the code compiled fine, but during linking stage libtool threw a weird error: ----- cut here ----- /bin/sh ../libtool --tag=CXX --mode=link arm-angstrom-linux-gnueabi-g++ -g -O2 -g -O2 -version-info 0:0:0 -release 1.3git -o libgnuradio-fcd.la -rpath /usr/local/lib fcd_source_c.lo fcd.lo hid-libusb.lo -lboost_thread -lboost_date_time -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm -lgnuradio-audio -lboost_thread -lboost_date_time -lgnuradio-core -lgruel -lfftw3f -lgsl -lgslcblas -lm -lusb-1.0 ../libtool: line 6747: cd: $SDK_PATH/$TARGET_SYS=/usr/lib: No such file or directory libtool: link: warning: cannot determine absolute directory name of `$SDK_PATH/$TARGET_SYS=/usr/lib' /bin/grep: $SDK_PATH/$TARGET_SYS=/usr/lib/libgnuradio-core.la: No such file or directory /bin/sed: can't read $SDK_PATH/$TARGET_SYS=/usr/lib/libgnuradio-core.la: No such file or directory libtool: link: `$SDK_PATH/$TARGET_SYS=/usr/lib/libgnuradio-core.la' is not a valid libtool archive ----- cut here -----
After a lot of head scratching and tinkering, I discovered that the shell variables references that libtool complains about in the error messages, are hardcoded in .la files. Here is the dependency_libs line from libgnuradio-core.la: ----- cut here ----- dependency_libs='$SDK_PATH/$TARGET_SYS $SDK_PATH/$TARGET_SYS-lrt $SDK_PATH/$TARGET_SYS=/usr/lib/libgruel.la $SDK_PATH/$TARGET_SYS-lboost_system $SDK_PATH/$TARGET_SYS-lboost_filesystem $SDK_PATH/$TARGET_SYS-lboost_thread $SDK_PATH/$TARGET_SYS=/usr/lib/libfftw3f.la $SDK_PATH/$TARGET_SYS=/usr/lib/libgsl.la $SDK_PATH/$TARGET_SYS=/usr/lib/libgslcblas.la $SDK_PATH/$TARGET_SYS=/usr/lib/libltdl.la $SDK_PATH/$TARGET_SYS-ldl $SDK_PATH/$TARGET_SYS=/usr/lib/libstdc++.la'$SDK_PATH/$TARGET_SYS ----- cut here ----- I tried to set values for SDK_PATH and TARGET_SYS, but without much success. They do not resolve and no matter what I set there, libtool keep moaning about 'no such file or directory' Next thing I tried was to remove gnuradio-dev package and install again using opkg-target. The unresolved shell variables disappeared from dependency_libs, only to be replaced by a '=' sign: ----- cut here ----- dependency_libs=' -lrt =/usr/lib/libgruel.la -lboost_system -lboost_filesystem -lboost_thread =/usr/lib/libfftw3f.la =/usr/lib/libgsl.la =/usr/lib/libgslcblas.la =/usr/lib/libltdl.la -ldl =/usr/lib/libstdc++.la' ----- cut here ----- Is there a way to fix the '$SDK_PATH/$TARGET_SYS=' errors? Thx, j. -- Given a choice between two theories, take the one which is funnier _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel