grub-0.97 compile issues

Stan Sander ssande at sandia.gov
Tue Nov 1 14:13:15 PST 2005


Jim Gifford wrote:

> Your target is correct.
>
> Your patch is causing your problem. You can't build grub with -m64, it 
> will not build at all.
>
OK, fair enough.  So what I'll end up with is a 32/64 bit system that 
can execute either type?  That's what I'm wanting.

As for the original problem then, of configure balking about the 
compiler -- what's the best solution for that and/or what might I have 
done wrong to create this problem?

Again here is the output from configure and config.log on this:

siren /lfs/sources/grub-0.97 >./configure --prefix=/lfs/usr 
--host=x86_64-pc-linux-gnu
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking build system type... i686-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot create executables
See `config.log' for more details.

configure:2421: checking for C compiler default output file name
configure:2424: x86_64-pc-linux-gnu-gcc -m32    conftest.c  >&5
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
skipping incompatible 
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/./libgcc.a 
when searching for -lgcc
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
skipping incompatible 
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/libgcc.a when 
searching for -lgcc
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
skipping incompatible 
/cross-tools/lib/gcc/x86_64-pc-linux-gnu/4.0.2/./libgcc.a when searching 
for -lgcc
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
skipping incompatible 
/cross-tools/lib/gcc/x86_64-pc-linux-gnu/4.0.2/libgcc.a when searching 
for -lgcc
/lfs/cross-tools/bin/../lib/gcc/x86_64-pc-linux-gnu/4.0.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lgcc
collect2: ld returned 1 exit status
configure:2427: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.97"
| #define PACKAGE_STRING "GRUB 0.97"
| #define PACKAGE_BUGREPORT "bug-grub at gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2466: error: C compiler cannot create executables
See `config.log' for more details.



-- 
Stan Sander - CSU Special Projects  (505)284-4915
ASAP, LLC, Contractor assigned to Sandia National Laboratories
Unix Systems/Server Administrator 

Microsoft: You've got questions. We've got a dancing paperclip.





More information about the cross-lfs mailing list