-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Andrew,

I try to explain from the beginning.
The original problem:
- 
--------------------------------------------------------------------------------
checking for pid_t... yes
checking for library containing strerror... configure: error: Link tests are not
allowed after GCC_NO_EXECUTABLES.
gmake[1]: *** [configure-target-libiberty] Error 1

The configure.log in hppa64-hp-hpux11.00/libiberty says:

configure:6631: checking for library containing strerror
configure:6639: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
- 
--------------------------------------------------------------------------------

>> Andrew Haley schrieb:
>>> I'm guessing that you have missing target libraries, headers, or somesuch.

Since then I added all languages.

That's the actual configuration:

Configured with: /opt/gnu/src/gcc/gcc-4.4.0/configure
-
--prefix=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0
- --with-gnu-as
-
--with-as=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/bin/hppa64-hp-hpux11.00-as
- --with-gnu-ld
-
--with-ld=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/bin/hppa64-hp-hpux11.00-ld
- --enable-threads=posix --enable-shared --enable-__cxa_atexit
- --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-libgomp
-
--with-gmp-include=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/include
-
--with-gmp-lib=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/lib64
-
--with-mpfr-include=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/include
-
--with-mpfr-lib=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/lib64
-
--with-ppl-include=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/include
-
--with-ppl-lib=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/lib64
-
--with-cloog-include=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/include
-
--with-cloog-lib=/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/lib64
- --with-local-prefix=/opt/tec/devel/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0
- --enable-checking=release --build=x86_64-unknown-linux-gnu
- --host=x86_64-unknown-linux-gnu --target=hppa64-hp-hpux11.00
- --with-sysroot=/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00
- --disable-bootstrap
Thread model: posix
gcc version 4.4.0 20081124 (experimental) [trunk revision 142150] (GCC)

bootstrap fails in libada:

configure: error: C compiler cannot create executables

A look into libada/config.log showed, that ld complains about missing crt0.o
That was true, because the sysroot searchpath for hppa64-hp-hpux11.00 is
sysroot/usr/lib/pa20_64 and there was no crt0.o
The crt0.o files for hpux11.00 are stored in /usr/ccs/lib and
/usr/ccs/lib/pa20_64. /usr/lib/crt0.o is a link to /usr/ccs/lib/crt0.o but the
link from /usr/lib/pa20_64/crt0.o to /usr/ccs/lib/pa20_64/crt0.o was missing.
I added this link manually, that seems consitent.


Now I get the same error, but the message in libada/config.log is different:

configure:1894:
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/xgcc
-
-B/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/
-
-B/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/bin/
-
-B/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/lib/
- -isystem
/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/include
- -isystem
/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/sys-include
- -g -O2     conftest.c  >&5
/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/bin/hppa64-hp-hpux11.00-ld:
/usr/lib/pa20_64/milli.a: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1897: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1935: error: in
`/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/hppa64-hp-hpux11.00/libada':
configure:1938: error: C compiler cannot create executables

So, I changed into the libada directory created the conftest.c manually and
executed the above command manually by adding the -v switch.

The resulting output I posted.

Andrew Haley schrieb:
> 
> All those "ignoring nonexistent directory" messages are bad.  There must be a
> reason why they are missing.

ignoring nonexistent directory
"/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/include"
Installation location, still not installed

ignoring nonexistent directory
"/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/sys-include"
Same here.

ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/hppa64-hp-hpux11.00/4.4.0/include"
ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/hppa64-hp-hpux11.00/4.4.0/include-fixed"
ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/hppa64-hp-hpux11.00/4.4.0/../../../../hppa64-hp-hpux11.00/include"
I don't know, these never exist when building.

ignoring nonexistent directory
"/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00/opt/tec/devel/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/include"
local-prefix

ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/../../lib/gcc/hppa64-hp-hpux11.00/4.4.0/include"
ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/../../lib/gcc/hppa64-hp-hpux11.00/4.4.0/include-fixed"
ignoring nonexistent directory
"/home/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/gcc/../lib/gcc/../../lib/gcc/hppa64-hp-hpux11.00/4.4.0/../../../../hppa64-hp-hpux11.00/include"
I don't know, these never exist when building.


But fetches the right ones:

#include "..." search starts here:
#include <...> search starts here:
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/include
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/include-fixed
/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00/usr/include
End of search list.

That's fine as far as I see.

The COMPILER_PATH and LIBRARY_PATH are also fine.
COLLECT_GCC_OPTIONS I don't know.

Now the interesting, the collect step.
 
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/collect2
- - --sysroot=/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00 -E -u 
main
- - -u __cxa_finalize
/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00/usr/lib/pa20_64/crt0.o
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/crtbegin.o
- -
-
-L/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc
- -
-
-L/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/bin
- -
-
-L/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/hppa64-hp-hpux11.00/lib
- - -L/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00/lib/pa20_64
- - -L/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.11.00/usr/lib/pa20_64
/tmp/ccMHuJkh.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lgcc_stub
/usr/lib/pa20_64/milli.a
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/crtend.o
/opt/gnu/cross-gcc/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/cross/HP-UX/hppa64-hp-hpux11.00/B.11.00/gcc-4.4.0/bin/hppa64-hp-hpux11.00-ld:
/usr/lib/pa20_64/milli.a: No such file: No such file or directory
collect2: ld returned 1 exit status

All fine, except the explicit /usr/lib/pa20_64/milli.a

> 
>> /usr/lib/pa20_64/milli.a is tried to be linked directly instead be searched 
>> in
>> the sysroot.
> 
>> How to fix that?
> 
> I can't tell; you sent no command line.
> 
> Andrew.
> 
> 

I hope that helps.

- --
Mit freundlichen Grüßen / Best Regards

Dipl.-Ing. Rainer Emrich
Dept. Manager IT
TECOSIM Venture GmbH
Ferdinand-Stuttmann-Straße 15
D-65428 Rüsselsheim
Phone  +49 (0) 6142 8272-330
Fax    +49 (0) 6142 8272-249
Mobile +49 (0) 163 5694920
www.tecosim.com
best partner for simulation
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TECOSIM Venture GmbH, Rüsselsheim
Firmensitz: Ferdinand-Stuttmann-Straße 15, 65428 Rüsselsheim
Registergericht: Amtsgericht Darmstadt, HRB 83704
Geschäftsführer: Udo Jankowski, Jürgen Veith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJNVcD3s6elE6CYeURAm6YAKDXVXcsP3VdoVYg0Mp0UWgCDWcwvACgyeUr
QQWeMMuCPa6cK98rr1Wmgsg=
=w467
-----END PGP SIGNATURE-----

Reply via email to