I am building a cross compiler from linux for hppa64. ld searches for /usr/lib/pa20_64/milli.a and not in my sysroot but in my local /usr/lib/. The complete error message is: /usr/local/xcompile/lib/gcc/hppa64-hp-hpux11/4.1.1/../../../../hppa64-hp-hpux11/bin/ld: /usr/lib/pa20_64/milli.a: No such file: No such file or directory The work around is to use a symbolic link.
Hi Bernard, Please could you check to see if this problem still exists with the mainline sources. If it does, please could you put together a simple, small testcase to allow us to reproduce the problem locally. Cheers Nick
I bet it will. Replace the string /usr/lib/pa20_64/milli.a with -lmilli in ld/configure.host. Does that help?
Sorry the problem looks to be in gcc and not in ld. The string is hard coded in: gcc/config/pa/pa64-hpux.h closing this as an invalid bug.