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]

Re: install stuff


At 15:34 01.12.97 , Jeffrey A Law wrote:
>
>  In message <199712010928.BAA13558@cygnus.com>you write:
>  > configure:
>  > Make sure cc (gcc is _not_ enough, eventually make a symlink from gcc to
>  > cc) is in your PATH or start configure with "CC=/path/to/your/ccompiler
>  > configure", otherwise config.guess will guess wrong for some native
>  > platforms (notably alpha and powerpc), but configure will success
cause it
>  > finds gcc later.
>Can you have examples of problems this causes?  I've had no problems with
>this on the alpha (either osf or linux).

Ok, eg. for powerpc-unknown-linux-gnulibc1:
- configure calls config.guess before determing the cc to use
- config.guess defaults to ${CC-cc} for the compiler
- if CC is not set and cc is not in the path (gcc only system, egcs also
does not install any symlink from gcc to cc), all compile attempts in
config.guess will fail and some default values will be used.

Examples:
- powerpc-unknown-linux-gnu <-> powerpc-unknown-linux-gnulibc1
- alphaev5 <-> alphaev56 (if I remember correctly)
- and every other check in config.guess that relies on ${CC-cc}

Simple solution:
check for gcc/cc/${CC} in configure before calling config.guess and bail
out if nothing valid is found.

This reminds me of a post-release wish:
- support for install_root= (like glibc) during make install to ease
package building

>  > powerpc-*-linux-gnu*:
>  > You will need binutils-2.8.1.0.17 available from
>  > <ftp://ftp.yggdrasil.com/private/hjl> for a working egcs. It is strongly
>  > recommended to recompile binutils with egcs if you initially built it
with
>  > gcc-2.7.2.*.
>Is this really correct?? -- I know Meissner's been working with a ppc/linux
>box, but I don't know if he's using the new binutils.  Exactly what problems
>does this binutils fix?

Hmm, 2.8.1.0.15 is definitely to old. .17 includes gas-971105 + some
additional patches for Linux + some patches for Linux/PPC from Geoff, which
have not been accepted/included (?) in the gas snapshots in /private/gas.

Bye,
Franz.



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