Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error building gcc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dima Pasechnik  
View profile  
 More options Jul 28 2012, 5:55 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sat, 28 Jul 2012 02:55:08 -0700 (PDT)
Local: Sat, Jul 28 2012 5:55 am
Subject: Re: [sage-support] Re: Error building gcc

On Saturday, 28 July 2012 15:52:19 UTC+8, kfiz wrote:

> System Software Overview shows '64-bit Kernel and Extensions: Yes'.
> As I said I used to run it with 32-bit but I changed that with a keyboard
> combination. In contrast to the other guys from the link you posted I've
> successfully installed the 64-bit dmg. But building sage 5.1 from source
> code somehow doesn't work for me..

> are you installing Xcode from the official place

https://developer.apple.com/downloads/index.action
(page 5 out of 9, to be precise) ?

If yes, it looks as if you are hitting a bug (of sorts) described here:
https://bugreports.qt-project.org/browse/QTBUG-20619
(symptom: "/usr/bin/ranlib: archive member: libbackend.a(ude) size too
large")

Basically, a static library cannot be bigger that 4GB on your toolchain.
A workaround is to not to build "universal" libraries, i.. anything that
works on
32 as well as on 64 bit (i.e x86 and x86_64) systems.

I cc to sage-devel. Let's continue talking there.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[sage-support] Re: Error building gcc" by Andrea Lazzarotto
Andrea Lazzarotto  
View profile  
 More options Jul 28 2012, 6:07 am
From: Andrea Lazzarotto <andrea.lazzaro...@gmail.com>
Date: Sat, 28 Jul 2012 12:07:29 +0200
Local: Sat, Jul 28 2012 6:07 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

2012/7/28 Dima Pasechnik <dimp...@gmail.com>

> A workaround is to not to build "universal" libraries, i.. anything that
> works on
> 32 as well as on 64 bit (i.e x86 and x86_64) systems.

IIRC universal binaries should also include PPC. Am I right?

--
*Andrea Lazzarotto* - http://andrealazzarotto.com*
*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 28 2012, 6:36 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sat, 28 Jul 2012 03:36:38 -0700 (PDT)
Local: Sat, Jul 28 2012 6:36 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

On Saturday, 28 July 2012 18:07:29 UTC+8, Andrea Lazzarotto wrote:

> 2012/7/28 Dima Pasechnik <dimp...@gmail.com>

>> A workaround is to not to build "universal" libraries, i.. anything that
>> works on
>> 32 as well as on 64 bit (i.e x86 and x86_64) systems.

> IIRC universal binaries should also include PPC. Am I right?

well, it used to be the case. But with Xcode 3.2.6 one has to jump extra
hoops, and with Xcode 4 it seems to be impossible, as there is no OSX 10.5
frameworks for Xcode 4.
(Or maybe it's not quite true, as one can reuse Xcode 3 frameworks with
Xcode 4, but this is getting more an more unpleasant, AFAIK).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 29 2012, 2:27 am
From: kfiz <mitun...@gmx.de>
Date: Sat, 28 Jul 2012 23:27:22 -0700 (PDT)
Local: Sun, Jul 29 2012 2:27 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Samstag, 28. Juli 2012 12:36:38 UTC+2 schrieb Dima Pasechnik:

So, what's the smartest thing to do here..smart meaning without to much effort. ;-).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 29 2012, 3:42 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sun, 29 Jul 2012 00:42:49 -0700 (PDT)
Local: Sun, Jul 29 2012 3:42 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

It could be that Sage is just not tested on your configuration, and you hit
a real bug.
I don't know. Do I get it right that you can't build the gcc that comes
with Sage?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 29 2012, 4:54 am
From: kfiz <mitun...@gmx.de>
Date: Sun, 29 Jul 2012 01:54:51 -0700 (PDT)
Local: Sun, Jul 29 2012 4:54 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Sonntag, 29. Juli 2012 09:42:49 UTC+2 schrieb Dima Pasechnik:

Yes, that's the case.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 29 2012, 5:04 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sun, 29 Jul 2012 02:04:13 -0700 (PDT)
Local: Sun, Jul 29 2012 5:04 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

could you post somewhere the part of your install.log, with the ranlib
error on libbackend.a
you mentioned earlier?
One has to see with which flags the complilation/linking of libbackend.a
 during the installation of gcc spkg is being done. It would be good to see
the actual size of libbackend.a(*) if you still have it somewhere in
SAGE_LOCAL/spkg/build/...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 29 2012, 6:11 am
From: kfiz <mitun...@gmx.de>
Date: Sun, 29 Jul 2012 03:11:02 -0700 (PDT)
Local: Sun, Jul 29 2012 6:11 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Sonntag, 29. Juli 2012 11:04:13 UTC+2 schrieb Dima Pasechnik:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 29 2012, 3:08 pm
From: kfiz <mitun...@gmx.de>
Date: Sun, 29 Jul 2012 12:08:01 -0700 (PDT)
Local: Sun, Jul 29 2012 3:08 pm
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Sonntag, 29. Juli 2012 12:11:02 UTC+2 schrieb kfiz:

ok, so hier is part of the log:

rm -rf libbackend.a
ar rc libbackend.a insn-attrtab.o insn-automata.o insn-emit.o
insn-extract.o insn-modes.o insn-opinit.o insn-output.o insn-peep.o
insn-preds.o insn-recog.o insn-enums.o ggc-page.o alias.o alloc-pool.o
auto-inc-dec.o bb-reorder.o bitmap.o bt-load.o builtins.o caller-save.o
calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfgexpand.o cfghooks.o
cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o cfgrtl.o combine.o
combine-stack-adj.o compare-elim.o convert.o coverage.o cse.o cselib.o
dbxout.o dbgcnt.o dce.o ddg.o debug.o df-core.o df-problems.o df-scan.o
dfp.o diagnostic.o dojump.o dominance.o domwalk.o double-int.o dse.o
dwarf2asm.o dwarf2out.o ebitmap.o emit-rtl.o et-forest.o except.o explow.o
expmed.o expr.o final.o fixed-value.o fold-const.o function.o fwprop.o
gcse.o ggc-common.o gimple.o gimple-iterator.o gimple-fold.o gimple-low.o
gimple-pretty-print.o gimplify.o godump.o graph.o graphds.o graphite.o
graphite-blocking.o graphite-clast-to-gimple.o graphite-cloog-util.o
graphite-dependences.o graphite-flattening.o graphite-interchange.o
graphite-poly.o graphite-ppl.o graphite-scop-detection.o
graphite-sese-to-poly.o gtype-desc.o haifa-sched.o hooks.o hwint.o ifcvt.o
implicit-zee.o init-regs.o input.o integrate.o intl.o ira.o ira-build.o
ira-costs.o ira-conflicts.o ira-color.o ira-emit.o ira-lives.o jump.o
langhooks.o lcm.o lists.o loop-doloop.o loop-init.o loop-invariant.o
loop-iv.o loop-unroll.o loop-unswitch.o lower-subreg.o lto-cgraph.o
lto-streamer-in.o lto-streamer-out.o lto-section-in.o lto-section-out.o
lto-symtab.o lto-opts.o lto-streamer.o lto-compress.o mcf.o
mode-switching.o modulo-sched.o omega.o omp-low.o optabs.o options.o
opts-common.o opts-global.o opts.o params.o passes.o plugin.o pointer-set.o
postreload-gcse.o postreload.o predict.o pretty-print.o print-rtl.o
print-tree.o profile.o real.o realmpfr.o recog.o reg-stack.o regcprop.o
reginfo.o regmove.o regrename.o regstat.o reload.o reload1.o reorg.o
resource.o rtl-error.o rtl.o rtlanal.o rtlhooks.o sbitmap.o sched-deps.o
sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sel-sched-ir.o
sel-sched-dump.o sel-sched.o sese.o simplify-rtx.o sparseset.o sreal.o
stack-ptr-mod.o statistics.o stmt.o stor-layout.o store-motion.o
stringpool.o target-globals.o targhooks.o timevar.o toplev.o tracer.o
tree-affine.o tree-call-cdce.o tree-cfg.o tree-cfgcleanup.o tree-chrec.o
tree-complex.o tree-data-ref.o tree-dfa.o tree-diagnostic.o tree-dump.o
tree-eh.o tree-emutls.o tree-if-conv.o tree-into-ssa.o tree-iterator.o
tree-loop-distribution.o tree-nested.o tree-nrv.o tree-object-size.o
tree-optimize.o tree-outof-ssa.o tree-parloops.o tree-phinodes.o
tree-predcom.o tree-pretty-print.o tree-profile.o tree-scalar-evolution.o
tree-sra.o tree-switch-conversion.o tree-ssa-address.o tree-ssa-alias.o
tree-ssa-ccp.o tree-ssa-coalesce.o tree-ssa-copy.o tree-ssa-copyrename.o
tree-ssa-dce.o tree-ssa-dom.o tree-ssa-dse.o tree-ssa-forwprop.o
tree-ssa-ifcombine.o tree-ssa-live.o tree-ssa-loop-ch.o tree-ssa-loop-im.o
tree-ssa-loop-ivcanon.o tree-ssa-loop-ivopts.o tree-ssa-loop-manip.o
tree-ssa-loop-niter.o tree-ssa-loop-prefetch.o tree-ssa-loop-unswitch.o
tree-ssa-loop.o tree-ssa-math-opts.o tree-ssa-operands.o tree-ssa-phiopt.o
tree-ssa-phiprop.o tree-ssa-pre.o tree-ssa-propagate.o tree-ssa-reassoc.o
tree-ssa-sccvn.o tree-ssa-sink.o tree-ssa-structalias.o tree-ssa-ter.o
tree-ssa-threadedge.o tree-ssa-threadupdate.o tree-ssa-uncprop.o
tree-ssa-uninit.o tree-ssa.o tree-ssanames.o tree-stdarg.o tree-tailcall.o
tree-vect-generic.o tree-vect-patterns.o tree-vect-data-refs.o
tree-vect-stmts.o tree-vect-loop.o tree-vect-loop-manip.o tree-vect-slp.o
tree-vectorizer.o tree-vrp.o tree.o value-prof.o var-tracking.o varasm.o
vec.o version.o vmsdbgout.o web.o xcoffout.o i386.o darwin.o host-darwin.o
host-i386-darwin.o cgraph.o cgraphbuild.o cgraphunit.o cppbuiltin.o
cppdefault.o incpath.o ipa-cp.o ipa-split.o ipa-inline.o ipa-prop.o
ipa-pure-const.o ipa-reference.o ipa-ref.o ipa-struct-reorg.o
ipa-type-escape.o ipa-utils.o ipa.o matrix-reorg.o prefix.o tree-inline.o
tree-nomudflap.o varpool.o
/usr/bin/ranlib: archive member: libbackend.a() size too large (archive
member extends past the end of the file)
ar: internal ranlib command failed
make[5]: *** [libbackend.a] Error 1
make[4]: *** [all-stage1-gcc] Error 2
make[3]: *** [stage1-bubble] Error 2
make[2]: *** [all] Error 2

real 5m27.725s
user 4m28.845s
sys 0m54.509s
************************************************************************
Error installing package gcc-4.6.3

The size of libbackend.a is 24.3 MB.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 30 2012, 12:09 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Sun, 29 Jul 2012 21:09:52 -0700 (PDT)
Local: Mon, Jul 30 2012 12:09 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

sorry, one needs to look at parts before this. That is,  parts where these
.o files are produced by the compiler, gcc, and in particular what switches
it is using.
It would also help to know the sizes of all these .o files, or at least the
maximum size...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 30 2012, 4:18 am
From: kfiz <mitun...@gmx.de>
Date: Mon, 30 Jul 2012 01:18:13 -0700 (PDT)
Local: Mon, Jul 30 2012 4:18 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Montag, 30. Juli 2012 06:09:52 UTC+2 schrieb Dima Pasechnik:

Sorry, so here's the whole log. The biggest o'file is 1.7 MB. In total they
amount to about 43 MB.

  gcc-4.6.3.log
3042K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 30 2012, 10:25 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Mon, 30 Jul 2012 07:25:24 -0700 (PDT)
Local: Mon, Jul 30 2012 10:25 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

If you look for the 1st Error in the log, you will see
--------------------------------------------------------------------------- --------------------
ld: warning: in build/genautomata.o, file was built for unsupported file
format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [build/genautomata] Error 1
make[4]: *** [all-stage1-gcc] Error 2
make[3]: *** [stage1-bubble] Error 2
make[2]: *** [all] Error 2
--------------------------------------------------------------------------- --------------------

IMHO you should set SAGE64=yes and then build.
(i.e. do
export SAGE64=yes
and then do "make build")

Otherwise it looks like that the compiler builds 32-bit object files.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 30 2012, 10:38 pm
From: kfiz <mitun...@gmx.de>
Date: Mon, 30 Jul 2012 19:38:52 -0700 (PDT)
Local: Mon, Jul 30 2012 10:38 pm
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Montag, 30. Juli 2012 16:25:24 UTC+2 schrieb Dima Pasechnik:

  maxima-5.26.0.p0.log
7K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 31 2012, 1:37 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Mon, 30 Jul 2012 22:37:42 -0700 (PDT)
Local: Tues, Jul 31 2012 1:37 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

This log does not say at all why Maxima didn't build.
Could you please cut the relevant (bottom) part of install.log
and post it here?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kfiz  
View profile  
 More options Jul 31 2012, 2:02 am
From: kfiz <mitun...@gmx.de>
Date: Mon, 30 Jul 2012 23:02:11 -0700 (PDT)
Local: Tues, Jul 31 2012 2:02 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

Am Dienstag, 31. Juli 2012 07:37:42 UTC+2 schrieb Dima Pasechnik:

This is the part of install.log that I didn't post before:

make[1]: *** [installed/maxima-5.26.0.p0] Error 1

real 228m36.234s
user 194m48.729s
sys 22m18.712s
Error building Sage.

Did you refer to this?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 31 2012, 3:56 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Tue, 31 Jul 2012 00:56:30 -0700 (PDT)
Local: Tues, Jul 31 2012 3:56 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

I meant that maxima-5.26.0.p0.log you posted does not contain the log of
maxima build, only the fact that it ended in a failure.
In install.log there should be a part that contains a complete log of
maxima build.
It would start off like this:

Now building Maxima; this takes a few minutes.
Since we're on MacOS X and there is a very weird
bug with buffered output while building Maxima,
you will not be able to see the output of the build
as it occurs.  Don't worry, the build process does
not hang.
g++ -c cf_generator.cc -Wall -fno-implicit-templates -I. -I.. -I.
-I/usr/local/src/sage/sage-5.2.rc0/local
-I/usr/local/src/sage/sage-5.2.rc0/local/include -DHAVE_CONFIG_H
-I/usr/local/src/sage/sage-5.2.rc0/local/include
-I/usr/local/src/sage/sage-5.2.rc0/local/include
-I/usr/local/src/sage/sage-5.2.rc0/local/include  -O2 -g -fPIC
-DLIBSINGULAR -o cf_generator.o
In file included from cf_generator.cc:10:0:
[and lots more stuff here]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 31 2012, 5:43 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Tue, 31 Jul 2012 02:43:24 -0700 (PDT)
Local: Tues, Jul 31 2012 5:43 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

sorry, this is not the place...
Please disregard the last message.
I'll ask around how to see what can be done to see the errors...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dima Pasechnik  
View profile  
 More options Jul 31 2012, 7:22 am
From: Dima Pasechnik <dimp...@gmail.com>
Date: Tue, 31 Jul 2012 04:22:47 -0700 (PDT)
Local: Tues, Jul 31 2012 7:22 am
Subject: Re: [sage-devel] Re: [sage-support] Re: Error building gcc

please
see https://groups.google.com/d/msg/sage-devel/asCra9jDbCk/1BiMU6T_lY0J


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »