Absolute paths to GCC and perl should not be baked into the compiler.
|Reported by:||benl||Owned by:||igloo|
|Type of failure:||Compile-time crash||Test Case:|
|Related Tickets:||Differential Rev(s):|
sh boot ; ./configure ; make leaves me with the following lines in
cGCC = "/export/home/benl/software/gcc-4.1.2/bin/gcc" cGHC_PERL = "/opt/csw/bin/perl"
These absolute paths are baked into the compiler, and if I then do a
make binary-dist the resulting binary distribution is unusable for anyone else.
compiler/main/SysTools.hs:105 says that these vars should not include paths, and rightly so. I'm currently working around this by hacking
mk/config.mk after running
We probably need a better story about which GCC and perl to use for the build, vs which ones to use when compiling programs. I vote that the default should be to use the ones in the PATH unless explicitly configured not to.
Note that on SPARC/Solaris the default system GCC is unusable, so people that do not have root access will always need to run GHC against a privately installed GCC.
Change History (8)
comment:1 Changed 7 years ago by
|Type of failure:||Installing GHC failed → Compile-time crash|