helpGCC Compile Farm - Support: sr #2780, Building GCC 4.6.1 on gcc40 and...

Show feedback again

sr #2780: Building GCC 4.6.1 on gcc40 and gcc64

Submitted by:  Julien ÉLIE <iulius>
Submitted on:  Sat Aug 6 12:46:47 2011  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Postponed
Privacy: PublicAssigned to: Laurent GUERBY <guerby>
Open/Closed: ClosedOperating System: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sun Jul 28 20:10:07 2013, comment #9:

Agreed. Changed status to 'Postponed'. Could be re-opened if there's a sparc64 machine running gcc available again in the farm in the future.

Matthieu Herrb <mattthieu>
Project Member
Sun Jul 28 10:43:41 2013, comment #8:

gcc40 is down because of hardware issue.
Now that gcc64 is definitely shutdown (read <>), this ticket can probably be closed.

Julien ÉLIE <iulius>
Project Administrator
Thu Jan 12 21:07:39 2012, comment #7:

For gcc64 (OpenBSD/sparc64) I recommend upgrading to a more recent OpenBSD version first. Then gcc 4.6 may be buildable...

Matthieu Herrb <mattthieu>
Project Member
Tue Nov 29 18:32:12 2011, comment #6:

IIRC on gcc40 I used a recent version of binutils for bootstrapping. Thanks to the people, now we have gcc110, where such tricks are no longer needed. :)


Sat Nov 5 22:18:37 2011, comment #5:

I still did not manage to find out the right configure options to build GCC 4.6.2 on gcc40.
I do not know why I obtain a "lazy binding failed".
I have to investigate further, especially when mentions that a 4.6 version has successfully been built in /home/mik/misc/gcc-4.6/bin (yet, even with the configure flags of that version, I have issues -- strange, I must be doing something wrong).


Julien ÉLIE <iulius>
Project Administrator
Sat Nov 5 21:46:39 2011, comment #4:

Should I close this ticket?

Laurent GUERBY <guerby>
Project AdministratorIn charge of this item.
Mon Aug 15 19:54:20 2011, comment #3:

> A while ago the following did work:
> CC="gcc -m64"

Marvellous! That was enough to succeed in building GCC on gcc40.
Thanks, Laurent.

However, I still do not manage to build GCC on gcc64. I tried "gcc -m64" as well as disabling multilib, nls and using the flags you suggest. Still unsuccessfully. Maybe GMP, MPFR or MPC are not well built.

I obtain the following error:
.1/host-sparc64-unknown-openbsd4.6/gcc/cc1: undefined symbol ''
lazy binding failed!
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.

As I am still puzzled about the reason of this error, I opened as suggested a bug report:

If I have any news, I will obviously report on this ticket.


Julien ÉLIE <iulius>
Project Administrator
Sat Aug 6 12:56:49 2011, comment #2:

For gcc64 I don't remenber trying to build GCC there.

Laurent GUERBY <guerby>
Project AdministratorIn charge of this item.
Sat Aug 6 12:55:49 2011, comment #1:

A while ago the following did work:

CC="gcc -m64"
export CC
../trunk/configure --disable-nls --enable-__cxa_atexit --enable-threads=posix --with-mpfr=/opt/cfarm/mpfr-2.4.1-64 --enable-languages=c,c++,fortran,ada --with-gmp=/opt/cfarm/gmp-4.2.4-64/ --disable-multilib --enable-stage1-checking=release --with-mpc=/opt/cfarm/mpc-0.8-64 -prefix=SOMEWHERE

Likely "--enable-stage1-checking=release" and/or 64 bits build

Laurent GUERBY <guerby>
Project AdministratorIn charge of this item.
Sat Aug 6 12:46:47 2011, original submission:


I do not manage to build GCC 4.6.1 on gcc40 and gcc64.

Is there a trick to build current versions of GCC on these systems?

(If yes, could it be added to the main page of the project?)

gcc40 (powerpc64)

I obtain:

/home/iulius/autobuild/src/gcc-core-4.6.1/host-powerpc64-unknown-linux-gnu/gcc/../.././gcc/vecir.h:28: relocation truncated to fit: R_PPC_REL24 against symbol `memcpy@@GLIBC_2.0' defined in .glink section in /usr/lib/gcc/powerpc-linux-gnu/4.3.2/../../../../lib/crt1.o
c-lang.o: In function `VEC_tree_base_quick_push':
/home/iulius/autobuild/src/gcc-core-4.6.1/host-powerpc64-unknown-linux-gnu/gcc/../.././gcc/vecir.h:28: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status

I tried with the installed system binutils, and with latest binutils.
I also tried with legacy GMP 4.2.4, MPFR 2.3.2 and MPC 0.8.1, even the -64 ones in /opt/cfarm, as well as current versions, but without success.

gcc64 (sparc64)

checking for sparc64-unknown-openbsd4.6-gcc... /home/iulius/autobuild/src/gcc-core-4.6.1/host-sparc64-unknown-openbsd4.6/gcc/xgcc -B/home/iulius/autobuild/src/gcc-core-4.6.1/host-sparc64-unknown-openbsd4.6/gcc/ -B/home/iulius/autobuild/bin/gcc-core-4.6.1/sparc64-unknown-openbsd4.6/bin/ -B/home/iulius/autobuild/bin/gcc-core-4.6.1/sparc64-unknown-openbsd4.6/lib/ -isystem /home/iulius/autobuild/bin/gcc-core-4.6.1/sparc64-unknown-openbsd4.6/include -isystem /home/iulius/autobuild/bin/gcc-core-4.6.1/sparc64-unknown-openbsd4.6/sys-include
checking for suffix of object files... configure: error: in `/home/iulius/autobuild/src/gcc-core-4.6.1/sparc64-unknown-openbsd4.6/libgcc':
configure: error: cannot compute suffix of object files: cannot compile

I am puzzled by this error.
Are a few libraries missing in gcc64?

Also, I do not see any /opt/cfarm directory in gcc64. (Is it intended?) I therefore could not try any other available packages.


Julien ÉLIE <iulius>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mattthieu (Posted a comment)
  • -unavailable- added by guerby (Posted a comment)
  • -unavailable- added by iulius (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jul 28 20:10:07 2013mattthieuStatusNeed Info=>Postponed
    Sat Nov 5 21:46:39 2011guerbyStatusNone=>Need Info
      Assigned toNone=>guerby
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup