Question about egcs building w/native compiler
nnorwitz@arinc.com
nnorwitz@arinc.com
Wed Jan 14 00:45:00 GMT 1998
Jeff:
Thanks for you input. This is what the final results were:
./configure
make bootstrap
...
...
// stage 1 apparently completes fine
// starts building stage 2 with stage1/xgcc
stage1/xgcc -c *.c // this goes well not the exact command, of course
// but then it tries to link w/cc
cc -o genattr genattr.o alloca.o // and some other .o's
This fails.
So what I did was just tell make to use the xgcc compiler:
make CC=stage1/xgcc CFLAGS='-Bstage1' // I think that's the flags
This built everything. For whatever reason, cc wouldn't link, perhaps
alloca had been compiled with xgcc and couldn't link with cc?
I don't know if fortran and the other languages built or not. Don't
care, either. :-) I did get gcc and g++ built and apparently working.
I was just surprised I had to do the extra step. I looked
(half-heartedly, I admit it) in the docs to try to find info before
asking, but couldn't find anything relevant (I did find the bootstrap
in the home page which was very helpful). It was a little harder to
find info, since the doc structure seemed a little different than what
I'm used to.
This is a just bought computer and possible a very new rev of the cc
compiler on AIX 4.2.1, I can check if you want.
There was one thing I was a little surpised about. I think it
probably is an old "problem." gcc invoked without files, issues the
message: "gcc: No input files" g++ invoked without files, attempts to
link and then the linker provides an error (of course). No crashes or
anything, but I expected similar behaviour between gcc and g++.
I definitely believe in egcs and look forward to using it.
Thanks again,
Neal
--
In message < 0010486F.3227@ccmail.arinc.com >you write:
> I'm trying to build the egcs compiler with the native cc (xlc)
> compiler on an IBM AIX 4.2 box.
>
> I did a plain ./configure, then built with make bootstrap.
> It gets pretty far (builds stage1, but can't build stage2), but
> eventually (in stage2) still tries to compile the fortran src.
Well, it should be trying to build fortran in stage2 :-) And that should
be OK since it should be using stage1/xgcc to build the stage2 compiler.
You might try building in a separate directory from the source using gnu
make (ala the install instructions).
jeff
More information about the Gcc
mailing list