libf2c
Jeffrey A Law
law@cygnus.com
Wed Feb 11 18:20:00 GMT 1998
In message < rzqsopzt24l.fsf@djlvig.dl.ac.uk >you write:
> >>>>> "Jeff" == Jeffrey A Law <law@hurl.cygnus.com> writes:
>
> >> I can't immediately point to anything mixing
> >> the compilers can break but what work I've done on the runtime has
> >> always assumed the target compiler is used generally.
>
> Jeff> It fails for cross compilers :-)
>
> I assumed without checking that it would DTRT for a cross-compiler :-)
Hmmm, I just watched an x86 native "bootstrap" and it does the right thing
as far as I can tell:
Configuring in libraries/libf2c
creating cache ./config.cache
checking for gcc... /usr/tmp/egcs/egcs/gcc/xgcc -B/usr/tmp/egcs/egcs/gcc/
checking whether the C compiler (/usr/tmp/egcs/egcs/gcc/xgcc -B/usr/tmp/egcs/egcs/gcc/ -g -O2 ) works... yes
checking whether the C compiler (/usr/tmp/egcs/egcs/gcc/xgcc -B/usr/tmp/egcs/egcs/gcc/ -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /usr/tmp/egcs/egcs/gcc/xgcc -B/usr/tmp/egcs/egcs/gcc/ accepts -g... yes
checking how to run the C preprocessor... /usr/tmp/egcs/egcs/gcc/xgcc -B/usr/tmp/egcs/egcs/gcc/ -E
[ ... ]
> Perhaps I should again query the issues for criss-cross building, or
> maybe they're moot now and won't affect new work. I obviously
> misunderstood what people have been saying for years about problems
> with the configuration/build in the face of it working. If I (or lots
> of other keen people!) resume work on the runtime is there anything
> obviously important to get into the proverbial thick skull? Should it
> be straightforward just to add code with autoconfism modelled on
> what's there when the libf2c dir has settled down?
The problems are a whole lot easier to deal with now. Basically when the
libf2c subdir gets configured we should already have a cross compiler,
includes and libraries built. This will allow more of the configuration
process to work in the normal way.
We certainly need to do more work with libf2c (multilib, actually make
sure the cross stuff works, etc). But it's a much easier problem to
start working on now.
jeff
More information about the Gcc
mailing list