OpenWrt Forum Archive

Topic: Kamikaze 7.05 : error during compilation :

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear,

I have a problem when I compile Kamikase 7.06 with option : Target images / image option = build grub image.
Below you will find the config.log of grub just after it fails... it seems I have a problem with my compiler (..see below "lc"missing)... but I don't understand exactly what.... I work with Mandriva 2007.1.

Does someone have an explanation?

Thanks
Marc


[marc@localhost grub-0.97]$ cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-auto-linux-mem-opt

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = i686
uname -r = 2.6.17-14mdv
uname -s = Linux
uname -v = #1 SMP Wed May 9 21:11:43 MDT 2007

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/marc/trunk/staging_dir_i386/usr/sbin
PATH: /home/marc/trunk/staging_dir_i386/usr/bin
PATH: /home/marc/trunk/staging_dir_i386/bin
PATH: /home/marc/trunk/staging_dir_i386/usr/sbin
PATH: /home/marc/trunk/staging_dir_i386/usr/bin
PATH: /home/marc/trunk/staging_dir_i386/bin
PATH: /home/marc/trunk/staging_dir_i386/usr/sbin
PATH: /home/marc/trunk/staging_dir_i386/usr/bin
PATH: /home/marc/trunk/staging_dir_i386/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/bin
PATH: /usr/X11R6/bin/
PATH: /usr/games
PATH: /usr/lib/qt3//bin
PATH: /home/marc/bin
PATH: /usr/lib/qt3//bin
PATH: /sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1286: loading site script /home/marc/trunk/include/site/i386-linux-uclibc
| #!/bin/sh
|
| ac_cv_c_littleendian=${ac_cv_c_littleendian=yes}
| ac_cv_c_bigendian=${ac_cv_c_bigendian=no}
|
| ac_cv_sizeof___int64=0
| ac_cv_sizeof_char=1
| ac_cv_sizeof_int=4
| ac_cv_sizeof_int16_t=2
| ac_cv_sizeof_int32_t=4
| ac_cv_sizeof_int64_t=8
| ac_cv_sizeof_long_int=4
| ac_cv_sizeof_long_long=8
| ac_cv_sizeof_long=4
| ac_cv_sizeof_off_t=8
| ac_cv_sizeof_short_int=2
| ac_cv_sizeof_short=2
| ac_cv_sizeof_size_t=4
| ac_cv_sizeof_u_int16_t=2
| ac_cv_sizeof_u_int32_t=4
| ac_cv_sizeof_u_int64_t=8
| ac_cv_sizeof_uint16_t=2
| ac_cv_sizeof_uint32_t=4
| ac_cv_sizeof_uint64_t=8
| ac_cv_sizeof_unsigned_int=4
| ac_cv_sizeof_unsigned_long=4
| ac_cv_sizeof_unsigned_short=2
| ac_cv_sizeof_void_p=4
|
| . $TOPDIR/include/site/linux-uclibc
|
configure:1435: checking for a BSD-compatible install
configure:1490: result: /usr/bin/install -c
configure:1501: checking whether build environment is sane
configure:1544: result: yes
configure:1609: checking for gawk
configure:1625: found /usr/bin/gawk
configure:1635: result: gawk
configure:1645: checking whether make sets $(MAKE)
configure:1665: result: yes
configure:1840: checking build system type
configure:1858: result: i686-pc-linux-gnu
configure:1866: checking host system type
configure:1880: result: i686-pc-linux-gnu
configure:1904: checking whether to enable maintainer-specific portions of Makefiles
configure:1913: result: no
configure:2029: checking for gcc
configure:2045: found /usr/bin/gcc
configure:2055: result: gcc
configure:2113: checking for gcc
configure:2139: result: gcc
configure:2383: checking for C compiler version
configure:2386: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2389: $? = 0
configure:2391: gcc -v </dev/null >&5
Using built-in specs.
Target: i586-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --host=i586-mandriva-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp
Thread model: posix
gcc version 4.1.2 20070302 (prerelease) (4.1.2-1mdv2007.1)
configure:2394: $? = 0
configure:2396: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2399: $? = 1
configure:2422: checking for C compiler default output file name
configure:2425: gcc   -static conftest.c  >&5
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:2428: $? = 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@gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2467: error: C compiler cannot create executables
See `config.log' for more details.

Ooopsss...
It's obviously Kamikaze 7.06...
compiled with X86 option

Regards

Marc

Hi,

FYI: I found the solution: Mandriva 2007.1, don't install per default the glibc-static-devel library even if you select "devlopment" at Mandriva installation time.

The "configure" script of grub check the availability of this library and not the library of the openwrt toolchain.

Therefore the "configure" script failed on my PC

Regards

Marc

The discussion might have continued from here.