This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help needed with sparc


Hi Brad,

I recently had the same bootstrap problem, but on a cvs version of gcc I'd
already compiled!  I was trying to recompile my 32-bit sparcv9 gcc into a
64-bit binary, and accidentally used a gcc 3.0.3 instead of my sparcv9 gcc
3.1 as the compiler.  I'd successfully compiled that same source before.

I think (though I'm not certain because I haven't checked) that it happened
because 32 bit gcc was trying to link to the 64 bit libraries I'd already
compiled (because they were in my LD_LIBRARY_PATH... well, technically my
crle -64, but same difference).  If that isn't the case, I can't think of 
any reason that code which compiled without a hitch before would cease to
compile with the same compiler.

As you've clearly compiled gcc-sparcv9 before, perhaps this is your problem
too?  Just a thought.

Oh, as an afterthought: I too gdb'd the offending file but then realized
that my gdb had been configured for sparc-sun-solaris2.8, as yours was.
This implies 32-bit... does this make a difference?  I would imagine it
would, but then I'm not sure because I don't know much about the internals
of debuggers.

> env CC='cc -xarch=v9 -xildoff' ../configure --prefix=/pkgs/gcc-3.1v9 sparcv9-sun-solaris2.8
> ...
> stage1/xgcc -Bstage1/ -B/pkgs/gcc-3.1v9/sparcv9-sun-solaris2.8/bin/ -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
>  gengenrtl.o ../libiberty/libiberty.a
> ./gengenrtl -h > tmp-genrtl.h
> Bus Error
-- 
Alexander Poquet                | We leave the obvious generalizations to the
atpoquet@ucdavis.edu            | reader.                  -- Israel Herstein
Use of PGP preferable in reply  |               Use Linux!

Attachment: msg01458/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]