public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/43941]  New: Impossible to build any version beyond 4.2.4
@ 2010-04-29 16:05 h dot m dot brand at xs4all dot nl
  2010-04-30  9:23 ` [Bug target/43941] " rguenth at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2010-04-29 16:05 UTC (permalink / raw)
  To: gcc-bugs

Managed to build gmp-5.0.1, mpfr-2.4.2, and mpc-0.8.1 with gcc-4.2.4/64 (all
-mlp64). Had to set $ABI to 64 to make that pass.

Due to the endless annoying libtool, building with HP C-ANSI-C was impossible.

With that triplet installed, and hand-forced iconv to be unavailable
(--disable-nls does not disable it's use and configure seems to think it is
there where it is not), I had to handcompile version.c because of quotation
errors.
Those are all things I can work around, but here it stops:

/pro/3gl/GNU/gcc/obj/./gcc/xgcc -B/pro/3gl/GNU/gcc/obj/./gcc/
-B/usr/local/ia64/ia64-hp-hpux11.31/bin/
-B/usr/local/ia64/ia64-hp-hpux11.31/lib/ -isystem
/usr/local/ia64/ia64-hp-hpux11.31/include -isystem
/usr/local/ia64/ia64-hp-hpux11.31/sys-include    -g -mlp64 -fPIC -mlp64 -O2  -g
-mlp64 -fPIC -DIN_GCC   -DUSE_LIBUNWIND_EXCEPTIONS -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../../.././gcc -I../../../../src/libgcc
-I../../../../src/libgcc/. -I../../../../src/libgcc/../gcc
-I../../../../src/libgcc/../include  -DHAVE_CC_TLS  -o _popcountsi2.o -MT
_popcountsi2.o -MD -MP -MF _popcountsi2.dep -DL_popcountsi2 -c
../../../../src/libgcc/../gcc/libgcc2.c \

../../../../src/libgcc/../gcc/libgcc2.c: In function '__popcountdi2':
../../../../src/libgcc/../gcc/libgcc2.c:795:1: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

It's your own source, so I don't think I have to include it.

(Even HP's porting center gave up after gcc-4.2.3)


-- 
           Summary: Impossible to build any version beyond 4.2.4
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: h dot m dot brand at xs4all dot nl
 GCC build triplet: ia64-hp-hpux11.31
  GCC host triplet: ia64-hp-hpux11.31
GCC target triplet: ia64-hp-hpux11.31


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
@ 2010-04-30  9:23 ` rguenth at gcc dot gnu dot org
  2010-04-30  9:25 ` h dot m dot brand at xs4all dot nl
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-30  9:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-04-30 09:08 -------
You have at least to state how exactly you configured the compiler.  Please
also specify what host compiler you used.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|bootstrap                   |target
           Keywords|                            |build


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
  2010-04-30  9:23 ` [Bug target/43941] " rguenth at gcc dot gnu dot org
@ 2010-04-30  9:25 ` h dot m dot brand at xs4all dot nl
  2010-04-30 22:55 ` sje at cup dot hp dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2010-04-30  9:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from h dot m dot brand at xs4all dot nl  2010-04-30 09:15 -------
I did state that I use gcc-4.2.4 as host compiler.

configure sequence:
--8<---
export LD_PXDB=/usr/bin/true

export CONFIG_SITE=
export CC=gcc
export CFLAGS="-mlp64 -fPIC"
export CCFLAGS="-mlp64 -fPIC"
export CXXFLAGS="-mlp64 -fPIC"
export PATH=/pro/3gl/GNU/gcc/bin:.:/usr/local/ia64/bin:/pro/local/bin
export PATH=$PATH"":/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/opt/langtools/bin
export PATH=$PATH"":/opt/imake/bin

rm -rf obj
mkdir obj
cd obj
../src/configure \
    --enable-languages=c,c++ \
    --prefix=/usr/local/ia64 --with-local-prefix=/usr/local/ia64 \
    --with-gnu-as --with-as=/usr/local/ia64/bin/as \
    --with-ld=/usr/ccs/bin/ld \
    --disable-shared \
    --disable-nls \
    --with-mpfr=/usr/local/ia64 \
    --with-gmp=/usr/local/ia64 \
    --with-mpc=/usr/local/ia64
-->8---

$ gcc -dumpversion
4.2.4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
  2010-04-30  9:23 ` [Bug target/43941] " rguenth at gcc dot gnu dot org
  2010-04-30  9:25 ` h dot m dot brand at xs4all dot nl
@ 2010-04-30 22:55 ` sje at cup dot hp dot com
  2010-05-05 20:55 ` sje at cup dot hp dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2010-04-30 22:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sje at cup dot hp dot com  2010-04-30 22:55 -------
I've built GCC on IA64 HP-UX 11.31, but never in 64 bit mode.  I build in 32
bit mode (the default for GCC and HP C) and I haven't seen this problem.  I'll
try
building in 64 bit mode to see if I can reproduce the problem but it may take a
while since all the libraries in my BE (gmp, mpfr, etc) are in 32 bit mode and
I'll need to create 64 bit ones.

I haven't tried building GCC with the HP compiler in some time.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
                   ` (2 preceding siblings ...)
  2010-04-30 22:55 ` sje at cup dot hp dot com
@ 2010-05-05 20:55 ` sje at cup dot hp dot com
  2010-05-11 15:55 ` h dot m dot brand at xs4all dot nl
  2010-07-29 21:50 ` sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2010-05-05 20:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sje at cup dot hp dot com  2010-05-05 20:54 -------
I have reproduced this failure, and the problem seems to be in GMP.  You
mention that you set ABI to 64.  I noticed that if I built GMP with the HP
compiler ABI is set to 32 and then when I built GCC with that GMP it failed in
the manner you show in your report.  When I built GMP with GCC, ABI was set to
64 and the compiler I built with that GMP worked fine.  You might want to try
rebuilding GMP with GCC.

Also, you mentioned that the HP Porting Center only has GCC 4.2.3, you can get
newer pre-built GCC versions for HP-UX at http://www.hp.com/go/gcc (though
these are all built in 32 bit mode).

I was able to build GCC using HP C (in 32 bit mode) with no problems and no
changes needed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
                   ` (3 preceding siblings ...)
  2010-05-05 20:55 ` sje at cup dot hp dot com
@ 2010-05-11 15:55 ` h dot m dot brand at xs4all dot nl
  2010-07-29 21:50 ` sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: h dot m dot brand at xs4all dot nl @ 2010-05-11 15:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from h dot m dot brand at xs4all dot nl  2010-05-11 15:54 -------
Subject: Re:  Impossible to build any version beyond 4.2.4

On 5 May 2010 20:54:53 -0000, "sje at cup dot hp dot com"
<gcc-bugzilla@gcc.gnu.org> wrote:

> ------- Comment #4 from sje at cup dot hp dot com  2010-05-05 20:54 -------
> I have reproduced this failure, and the problem seems to be in GMP.  You
> mention that you set ABI to 64.  I noticed that if I built GMP with the HP
> compiler ABI is set to 32 and then when I built GCC with that GMP it failed in
> the manner you show in your report.  When I built GMP with GCC, ABI was set to
> 64 and the compiler I built with that GMP worked fine.  You might want to try
> rebuilding GMP with GCC.
> 
> Also, you mentioned that the HP Porting Center only has GCC 4.2.3, you can get
> newer pre-built GCC versions for HP-UX at http://www.hp.com/go/gcc (though
> these are all built in 32 bit mode).
> 
> I was able to build GCC using HP C (in 32 bit mode) with no problems and no
> changes needed.

I have just rebuilt gmp, mpfr, and mpc with GNU gcc-4.2.4/64 ABI=64

All checks passed for gmp, mpfr, and mpc before I installed

Using the below Conf:
--8<---
export LD_PXDB=/usr/bin/true

export CONFIG_SITE=
export CC=gcc
export CFLAGS="-mlp64 -fPIC"
export CCFLAGS="-mlp64 -fPIC"
export CXXFLAGS="-mlp64 -fPIC"
export PATH=/pro/3gl/GNU/gcc/bin:.:/usr/local/ia64/bin:/pro/local/bin
export PATH=$PATH"":/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/opt/langtools/bin
export PATH=$PATH"":/opt/imake/bin

rm -rf obj
mkdir obj
cd obj
../src/configure \
    --enable-languages=c,c++ \
    --prefix=/usr/local/ia64 --with-local-prefix=/usr/local/ia64 \
    --with-gnu-as --with-as=/usr/local/ia64/bin/as \
    --with-ld=/usr/ccs/bin/ld \
    --disable-shared \
    --disable-nls \
    --with-mpfr=/usr/local/ia64 \
    --with-gmp=/usr/local/ia64 \
    --with-mpc=/usr/local/ia64
# Force 64bit in STAGE1_CFLAGS
perl -pi -e'm/CFLAGS\s*=/ and s/-fkeep-inline-functions/-mlp64
-fkeep-inline-functions/' Makefile
-->8---

Building gcc failed with an internal compiler error for 4.3.4, 4.4.4,
and 4.5.0 (all at a different location btw)

I need a 64bit environment, because I have only 64bit libraries and
need a 64bit libgcc to link with other applications.

I have binutils-2.18 available, for which I had to disable ar and ranlib


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/43941] Impossible to build any version beyond 4.2.4
  2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
                   ` (4 preceding siblings ...)
  2010-05-11 15:55 ` h dot m dot brand at xs4all dot nl
@ 2010-07-29 21:50 ` sje at cup dot hp dot com
  5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2010-07-29 21:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sje at cup dot hp dot com  2010-07-29 21:50 -------
Because the ia64-hp-hpux11.31 compiler generates 32 bit code by default you
cannot do a bootstrap build in 64 bit mode.  From install.texi:

Note that the bootstrap compiler and the resulting GCC must be link
compatible, else the bootstrap will fail with linker errors about
incompatible object file formats.

Since the resulting GCC generates 32 bit code and the bootstrap compiler you
are using generates 64 bit code they are not link compatible.

Note that you can build GCC in 32 bit mode and still use the resulting compiler
to compile programs in 64 bit mode by using the -mlp64 option.


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43941


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-29 21:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-29 16:05 [Bug bootstrap/43941] New: Impossible to build any version beyond 4.2.4 h dot m dot brand at xs4all dot nl
2010-04-30  9:23 ` [Bug target/43941] " rguenth at gcc dot gnu dot org
2010-04-30  9:25 ` h dot m dot brand at xs4all dot nl
2010-04-30 22:55 ` sje at cup dot hp dot com
2010-05-05 20:55 ` sje at cup dot hp dot com
2010-05-11 15:55 ` h dot m dot brand at xs4all dot nl
2010-07-29 21:50 ` sje at cup dot hp dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).