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 06 Aug 2011 12:46:47 PM UTC  
 
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 28 Jul 2013 08:10:07 PM UTC, 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 28 Jul 2013 10:43:41 AM UTC, comment #8:

gcc40 is down because of hardware issue.
Now that gcc64 is definitely shutdown (read <https://mail.gna.org/public/gcc-cfarm-users/2013-05/msg00002.html>), this ticket can probably be closed.

Julien ÉLIE <iulius>
Project Administrator
Thu 12 Jan 2012 09:07:39 PM UTC, 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 29 Nov 2011 06:32:12 PM UTC, 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. :)

mik

Anonymous
Sat 05 Nov 2011 10:18:37 PM UTC, 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 https://gna.org/support/?2812 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

Julien ÉLIE <iulius>
Project Administrator
Sat 05 Nov 2011 09:46:39 PM UTC, comment #4:

Should I close this ticket?

Laurent GUERBY <guerby>
Project AdministratorIn charge of this item.
Mon 15 Aug 2011 07:54:20 PM UTC, 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:
/home/iulius/autobuild/src/gcc-core-4.6.1/host-sparc64-unknown-openbsd4.6/gcc/cc1:/home/iulius/autobuild/src/gcc-core-4.6
.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 <http://gcc.gnu.org/bugs.html> for instructions.

As I am still puzzled about the reason of this error, I opened as suggested a bug report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50064

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

Julien

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

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

Laurent GUERBY <guerby>
Project AdministratorIn charge of this item.
Sat 06 Aug 2011 12:55:49 PM UTC, 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 06 Aug 2011 12:46:47 PM UTC, original submission:

Hi,

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

Julien ÉLIE <iulius>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 28 Jul 2013 08:10:07 PM UTCmattthieuStatusNeed Info=>Postponed
      Open/ClosedOpen=>Closed
    Sat 05 Nov 2011 09:46:39 PM UTCguerbyStatusNone=>Need Info
      Assigned toNone=>guerby
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup