Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew, thanks for your quick reply.

Andrew Haley schrieb:
> Rainer Emrich wrote:
> 
>> I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
>> hppa64-hp-hpux11.00 using gcc trunk.
>>
>> Everything wents fine until building of the libraries.
>> libssp is build, but libiberty fails in the configure step:
>>
>> 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.
> 
> I'm guessing that you have missing target libraries, headers, or somesuch.
Yes, that's the cause. My setup is ok, but there was a link to
/usr/ccs/lib/pa20_64/crt0.o missing in the HP-UX sysroot/usr/lib/pa20_64. That
solved by manually setting the link, I run into the next issue.

/usr/lib/pa20_64/milli.a is tried to be linked directly instead be searched in
the sysroot.

Reading specs from
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/specs
Target: hppa64-hp-hpux11.00
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)
COLLECT_GCC_OPTIONS='-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' '-v'
 
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/cc1
- -quiet -v -iprefix
/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/
- -isystem
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/include
- -isystem
/SCRATCH/tmp.ZgrMRs8582/Linux/x86_64-unknown-linux-gnu/openSUSE_10.3/gcc-4.4.0/gcc-4.4.0/./gcc/include-fixed
- -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/hp

Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Andrew Haley
Rainer Emrich wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Andrew, thanks for your quick reply.
> 
> Andrew Haley schrieb:
>> Rainer Emrich wrote:
>>
>>> I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
>>> hppa64-hp-hpux11.00 using gcc trunk.
>>>
>>> Everything wents fine until building of the libraries.
>>> libssp is build, but libiberty fails in the configure step:
>>>
>>> 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.
>> I'm guessing that you have missing target libraries, headers, or somesuch.
> Yes, that's the cause. My setup is ok, but there was a link to
> /usr/ccs/lib/pa20_64/crt0.o missing in the HP-UX sysroot/usr/lib/pa20_64. That
> solved by manually setting the link, I run into the next issue.

All those "ignoring nonexistent directory" messages are bad.  There must be a
reason why they are missing.

> /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.


trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
hppa64-hp-hpux11.00 using gcc trunk.

Everything wents fine until building of the libraries.
libssp is build, but libiberty fails in the configure step:

checking for sys/types.h... yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... yes
checking for stdint.h... (cached) no
checking for unistd.h... (cached) yes
checking for int... yes
checking size of int... 4
checking for uintptr_t... yes
checking for a 64-bit type... unsigned long
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.

Any idea?

Should I file a bug report?

- --
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

iD8DBQFJNQix3s6elE6CYeURAo0vAJ9e2fGLPI7AFpWxXhi//lTKreHh9ACgvhkz
BvST1Nm4Fm84Atl2ZHheJDE=
=oI9N
-END PGP SIGNATURE-


Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Kai Ruottu

Rainer Emrich wrote:


I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
hppa64-hp-hpux11.00 using gcc trunk.


I run into the next issue.

/usr/lib/pa20_64/milli.a is tried to be linked directly instead be searched in
the sysroot.

- --with-sysroot=/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.1100

#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.
 
/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


The target config header 'gcc/config/pa/pa64-hpux.h' (in gcc-4.3.2)
has :

/* The libgcc_stub.a and milli.a libraries need to come last.  */
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "\
  %G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}\
  /usr/lib/pa20_64/milli.a}}"

so this absolute pathname will be given to the linker and it should
interpret it as '$sysroot/usr/lib/pa20_64/milli.a' I think... But
should the '--with-sysroot=$sysroot' do this?  Or only with usual
things like the 'crt*.o', the libraries etc ?  Maybe putting only
the bare 'milli.a' there, assuming a '-L/usr/lib/pa20_64' in the
native case and a '-L$sysroot/usr/lib/pa20_64' in the cross case,
on the link command line, could be the required 'fix'...




Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Andrew Haley
Rainer Emrich wrote:

> I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
> hppa64-hp-hpux11.00 using gcc trunk.
> 
> Everything wents fine until building of the libraries.
> libssp is build, but libiberty fails in the configure step:
> 
> checking for sys/types.h... yes
> checking for sys/stat.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for string.h... (cached) yes
> checking for memory.h... yes
> checking for strings.h... (cached) yes
> checking for inttypes.h... yes
> checking for stdint.h... (cached) no
> checking for unistd.h... (cached) yes
> checking for int... yes
> checking size of int... 4
> checking for uintptr_t... yes
> checking for a 64-bit type... unsigned long
> 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.
> 
> Any idea?
> 
> Should I file a bug report?

I'm guessing that you have missing target libraries, headers, or somesuch.

There will have been a previous error that caused CC_NO_EXECUTABLES
to be set, and it's a matter of looking for it.

Andrew.


Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Rainer Emrich
-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 

Re: Athlon XP segfaults with -fweb -ftracer

2008-12-02 Thread Ian Lance Taylor
Daniel Kasak <[EMAIL PROTECTED]> writes:

> I'm experiencing segfaults with applications that use fontconfig, only
> if fontconfig is compiled with -fweb -ftracer. In full, I used:
>
> -march=athlon-xp -O2 -pipe -fweb -ftracer
>
> I have seen a very similar bugs reported at:
>
> https://bugs.gentoo.org/show_bug.cgi?id=147290
> https://bugs.gentoo.org/show_bug.cgi?id=135632
>
>  ... but they talk about -ftree-vectorize. The symptoms are the same
> anyway.
>
> If I rebuild fontconfig with:
>
> -march=athlon-xp -O2 -pipe
>
>  ... the segfaults are fixed.
>
> Comment #8 in https://bugs.gentoo.org/show_bug.cgi?id=135632 says that
> this is fixed in gcc-4.3, but possibly this was not fixed for athlon-xp?
>
> I can enter a bug with the above info if people want. Should I? Is there
> an existing bug / is it still a known issue? I can also rebuild with
> debugging symbols if it will help.

Your message should probably have been sent to [EMAIL PROTECTED]
rather than to [EMAIL PROTECTED]

You may or may not have found a bug in the compiler.  It's fairly
common for incorrect code to work as expected with some set of options
and fail with a different set of options.  However, since you are
using uncommon options, it could certainly be a compiler bug.

Filing a bug report could be helpful, but in order for us to do
anything with it you will need to provide quite a bit more
information.  For the kind of information we need, please see
http://gcc.gnu.org/bugs.html .  Thanks.

Ian


Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Kai Ruottu

Kai Ruottu wrote:

Rainer Emrich wrote:


I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
hppa64-hp-hpux11.00 using gcc trunk.


I run into the next issue.

/usr/lib/pa20_64/milli.a is tried to be linked directly instead be 
searched in the sysroot.


- --with-sysroot=/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.1100



/usr/lib/pa20_64/milli.a: No such file: No such file or directory
collect2: ld returned 1 exit status


The target config header 'gcc/config/pa/pa64-hpux.h' (in gcc-4.3.2)
has :

/* The libgcc_stub.a and milli.a libraries need to come last.  */
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "\
  %G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}\
  /usr/lib/pa20_64/milli.a}}"

so this absolute pathname will be given to the linker and it should
interpret it as '$sysroot/usr/lib/pa20_64/milli.a' I think... But
should the '--with-sysroot=$sysroot' do this?  Or only with usual
things like the 'crt*.o', the libraries etc ?  Maybe putting only
the bare 'milli.a' there, assuming a '-L/usr/lib/pa20_64' in the
native case and a '-L$sysroot/usr/lib/pa20_64' in the cross case,
on the link command line, could be the required 'fix'...


... or as a workaround the 'milli.a' being renamed to 'libmilli.a' in
the copied libraries for a cross GCC, after which its handling would
be just like usual 'lib*.a' stuff. The spec then being:

 #define LINK_GCC_C_SEQUENCE_SPEC "\
   %G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}\
   -lmilli}}"

for a crosscompiler. The separate case choices:

#ifndef CROSS_DIRECTORY_STRUCTURE
...
#else
...
#endif

then being necessary. Weird name for a library, 'milli.a' in any case...


Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Rainer Emrich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kai Ruottu schrieb:
> Rainer Emrich wrote:
> 
 I try to build a cross compiler host x86_64-unknown-linux-gnu -> target
 hppa64-hp-hpux11.00 using gcc trunk.
>> I run into the next issue.
>>
>> /usr/lib/pa20_64/milli.a is tried to be linked directly instead be searched 
>> in
>> the sysroot.
>>
>> - --with-sysroot=/opt/tec/setup/sys-root/HP-UX/hppa64-hp-hpux11.00/B.1100
>>
>> #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.
>>  
>> /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
> 
> The target config header 'gcc/config/pa/pa64-hpux.h' (in gcc-4.3.2)
> has :
> 
> /* The libgcc_stub.a and milli.a libraries need to come last.  */
> #undef LINK_GCC_C_SEQUENCE_SPEC
> #define LINK_GCC_C_SEQUENCE_SPEC "\
>%G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}\
>/usr/lib/pa20_64/milli.a}}"
> 
> so this absolute pathname will be given to the linker and it should
> interpret it as '$sysroot/usr/lib/pa20_64/milli.a' I think... But
> should the '--with-sysroot=$sysroot' do this?  Or only with usual
> things like the 'crt*.o', the libraries etc ?  Maybe putting only
> the bare 'milli.a' there, assuming a '-L/usr/lib/pa20_64' in the
> native case and a '-L$sysroot/usr/lib/pa20_64' in the cross case,
> on the link command line, could be the required 'fix'...
> 

I Try this first.

- --
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

iD8DBQFJNV7o3s6elE6CYeURArBnAJ9D5V3h+XZLe79g0vLejwJD4cHHzgCeN+7e
tDnHAoYHommtTqGcFPvurT4=
=fmmY
-END PGP SIGNATURE-


Re: trouble building cross compiler: host x86_64-unknown-linux-gnu -> target hppa64-hp-hpux11.00

2008-12-02 Thread Andrew Haley
This is a bug in gcc.

The string is hard coded in: gcc/config/pa/pa64-hpux.h

/* The libgcc_stub.a and milli.a libraries need to come last.  */
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC "\
  %G %L %G %{!nostdlib:%{!nodefaultlibs:%{!shared:-lgcc_stub}\
  /usr/lib/pa20_64/milli.a}}"

Andrew.



New GNU Fortran reviewers.

2008-12-02 Thread Toon Moene

All,

During the IRC meeting of GNU Fortran hackers last Friday, I was asked 
to propose the following contributors to the Fortran compiler and run 
time library for the position of "reviewer" to the Steering Committee:


Daniel Kraft
Janus Weil
Mikael Morin

Of course, given the amount of work these guys (h, Fortran really is 
a "guy" thing, no) have already done, that was an easy request.


So I welcome Daniel, Janus and Mikael in our ranks.

Please add your names in the appropriate place in the MAINTAINERS file.

Kind regards,

--
Toon Moene - e-mail: [EMAIL PROTECTED] (*NEW*) - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg9.html


Re: New GNU Fortran reviewers.

2008-12-02 Thread Janus Weil
> So I welcome Daniel, Janus and Mikael in our ranks.

Thanks for the promotion :)