YAQ on /usr/bin/ld
Labitt, Bruce
labittb1 at tycoelectronics.com
Wed Jul 23 09:36:21 EDT 2008
You all must be tired of me by now, but I've got YAQ (yet another
question) on ld. (At least I have been bringing up new topics to the
list, and they are linux related.)
I have been trying to compile octave for a while and am stumbling on an
odd failure (I think) with ld.
About 20 minutes into the make I get a failure which I believe is
related to ld. The two lines before the failure are:
g++ -c -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc
-DHAVE_CONFIG_H -Wall -W -Wshadow -Wold-style-cast -g -O2
./DLD-FUNCTIONS/regexp.cc -o pic/regexp.o
g++ -shared -o regexp.oct pic/regexp.o -L../libcruft -lcruft
-L../liboctave -loctave -L. -loctinterp -llapack -lblas -lfftw3
-lreadline -lncurses -ldl -lz -lm -L/lib64 -L/usr/lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64 -lz -lgfortranbegin -lgfortran -lm
-lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching
for -lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for
-lpcre
/usr/bin/ld: cannot find -lpcre
collect2: ld returned 1 exit status
make[2]: *** [regexp.oct] Error 1
make[2]: Leaving directory `/home/BDLabitt/octave-3.0.1/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/home/BDLabitt/octave-3.0.1'
make: *** [all] Error 2
libpcre.so and libpcre.a are in /lib64. Why doesn't ld find it?,
especially since I did pass the argument -L/lib64 ?
Or am I looking in the wrong place?
For giggles I tried /usr/bin/ld -L/lib64 -lpcre and get
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching
for -lpcre
/usr/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for
-lpcre
/usr/bin/ld: cannot find -lpcre
My old OS SL5.1 did not have this problem...
I do have both 32 & 64 bit versions of lpcre installed. Parts of kde
seem to depend on it, otherwise I'd get rid of it. 32 bit lpcre is in
/lib, 64 bit pcre is in /lib64.
Regards,
Bruce
More information about the gnhlug-discuss
mailing list