[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[issues] [Build eglibc] missing --with-glibc option



Hello,


I am currently building my first cross-compile tool chain.
I have followed the guide found in EGLIBC.cross-building, and I obtain the following message when I configure eglibc:


configure:1318: error: missing --with-glibc option



If I add the --with-glibc option, then I have an other error message:


configure:1339: error: cannot find install-sh or install.sh in /home/olivier/tmp/eglibc/src/elibc-2.6/libc /home/olivier/tmp/eglibc/src/elibc-2.6/libc/.. /home/olivier/tmp/eglibc/src/elibc-2.6/libc/../..



I have seen that this problem has already been treated in this topic: http://www.eglibc.org/archives/issues/msg00004.html


But I haven't seen any answer that could resolve this problem.



-------------


Informations on my configuration:


build=i686-pc-linux-gnu
host=$build
linux_arch=mips
target=$linux_arch-none-linux-gnu


binutilsv=binutils-2.19 (and I have tried 2.17 too)
gccv=gcc-4.1.1
linuxv=linux-2.6.20 (I have tried with 2.6.19.1 too)



Command that fails:


BUILD_CC=$CC \
CC=$tools/bin/$target-gcc \
CXX=$tools/bin/$target-g++ \
AR=$tools/bin/$target-ar \
RANLIB=$tools/bin/$target-ranlib \
$src/$libcv/configure \
--prefix=/usr \
--with-headers=$sysroot/usr/include \
--build=$build \
--host=$target \
--disable-profile --without-gd --without-cvs --enable-add-ons


With CC=gcc-3.4 (because I wave read that with gcc-4.x if there is warnings the build fails)



I have put as attached files log of the configure script.
One is without the --with-glibc option, and the other is with this option.



This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by glibc build-side support configure (see version.h), which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/olivier/tmp/eglibc/src/elibc-2.6/libc/configure --prefix=/usr --with-headers=/home/olivier/tmp/eglibc/mips/sysroot/usr/include --build=i686-pc-linux-gnu --host=mips-none-linux-gnu --disable-profile --without-gd --without-cvs --enable-add-ons

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

hostname = debian
uname -m = i686
uname -r = 2.6.24-etchnhalf.1-686
uname -s = Linux
uname -v = #1 SMP Fri Dec 26 04:10:16 UTC 2008

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

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

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games


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

configure:1318: error: missing --with-glibc option

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=mips-none-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=mips-none-linux-gnu
ac_cv_host_alias=mips-none-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='glibc build-side support'
PACKAGE_STRING='glibc build-side support (see version.h)'
PACKAGE_TARNAME='glibc-build-side-support'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias='mips-none-linux-gnu'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "glibc build-side support"
#define PACKAGE_STRING "glibc build-side support (see version.h)"
#define PACKAGE_TARNAME "glibc-build-side-support"
#define PACKAGE_VERSION "(see version.h)"

configure: exit 1
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by glibc build-side support configure (see version.h), which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ /home/olivier/tmp/eglibc/src/elibc-2.6/libc/configure --prefix=/usr --with-headers=/home/olivier/tmp/eglibc/mips/sysroot/usr/include --build=i686-pc-linux-gnu --host=mips-none-linux-gnu --disable-profile --without-gd --without-cvs --enable-add-ons --with-glibc=/home/olivier/tmp/eglibc/src/elibc-2.6/libc/

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

hostname = debian
uname -m = i686
uname -r = 2.6.24-etchnhalf.1-686
uname -s = Linux
uname -v = #1 SMP Fri Dec 26 04:10:16 UTC 2008

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

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

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games


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

configure:1339: error: cannot find install-sh or install.sh in /home/olivier/tmp/eglibc/src/elibc-2.6/libc /home/olivier/tmp/eglibc/src/elibc-2.6/libc/.. /home/olivier/tmp/eglibc/src/elibc-2.6/libc/../..

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=mips-none-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=mips-none-linux-gnu
ac_cv_host_alias=mips-none-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='/home/olivier/tmp/eglibc/mips/tools/bin/mips-none-linux-gnu-gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='glibc build-side support'
PACKAGE_STRING='glibc build-side support (see version.h)'
PACKAGE_TARNAME='glibc-build-side-support'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias='mips-none-linux-gnu'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "glibc build-side support"
#define PACKAGE_STRING "glibc build-side support (see version.h)"
#define PACKAGE_TARNAME "glibc-build-side-support"
#define PACKAGE_VERSION "(see version.h)"

configure: exit 1