[Clfs-support] Can i go chroot?

san san at plusnet.pl
Thu Sep 5 17:25:50 PDT 2013


I got some problems, but it is too late for me to think about it.

I was making test of eglibc with result:

=============================
clfs at clfs:~/logs$ cat eglibc-check-log | grep -i error | grep make
make[2]: *** [/sources/eglibc-build/math/test-ldouble.out] Error 1
make[2]: *** [/sources/eglibc-build/math/test-ildoubl.out] Error 1
make[2]: Target `tests' not remade because of errors.
make[1]: *** [math/tests] Error 2
make[2]: *** [/sources/eglibc-build/stdlib/tst-strtod-overflow.out] Error 1
make[2]: Target `tests' not remade because of errors.
make[1]: *** [stdlib/tests] Error 2
make[2]: *** [/sources/eglibc-build/stdio-common/bug22.out] Error 1
make[2]: Target `tests' not remade because of errors.
make[1]: *** [stdio-common/tests] Error 2
make[2]: [/sources/eglibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/eglibc-build/crypt/sha512c-test.out] Error 1
make[2]: Target `tests' not remade because of errors.
make[1]: *** [crypt/tests] Error 2
make[2]: *** [/sources/eglibc-build/debug/tst-backtrace6.out] Error 1
make[2]: Target `tests' not remade because of errors.
make[1]: *** [debug/tests] Error 2
make[1]: Target `check' not remade because of errors.
make: *** [check] Error 2
=============================

Hope it was harmless, and have no idea it has something to do with gmp:

Trying to ./configure gmp-5.1.2 (it is only workaround since 5.0.5 does not
work for me), gives me:


=============================
root:/sources/gmp-5.1.2# CPPFLAGS=-fexceptions CC="gcc -isystem
/usr/include" CXX="g++ -isystem /usr/include"
LDFLAGS="-Wl,-rpath-link,/usr/lib:/lib" ./configure --prefix=/usr
--enable-cxx --enable-mpbsd
configure: WARNING: unrecognized options: --enable-mpbsd
checking build system type... i586-pc-linux-gnu
checking host system type... i586-pc-linux-gnu
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /tools/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -isystem /usr/include -m32 -O2 -pedantic
-fomit-frame-pointer -fexceptions... no, program does not run
checking compiler gcc -isystem /usr/include -O2 -pedantic
-fomit-frame-pointer -fexceptions... no, program does not run
configure: error: could not find a working compiler, see config.log for
details
=============================

And LOG file:


=============================
root:/sources/gmp-5.1.2# 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 GNU MP configure 5.1.2, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --enable-cxx --enable-mpbsd

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

hostname = clfs
uname -m = i586
uname -r = 3.5.0-23-generic
uname -s = Linux
uname -v = #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013

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

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

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /tools/bin


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

configure:3063: checking build system type
configure:3077: result: i586-pc-linux-gnu
configure:3097: checking host system type
configure:3110: result: i586-pc-linux-gnu
configure:3147: checking for a BSD-compatible install
configure:3215: result: /tools/bin/install -c
configure:3226: checking whether build environment is sane
configure:3276: result: yes
configure:3417: checking for a thread-safe mkdir -p
configure:3456: result: /tools/bin/mkdir -p
configure:3469: checking for gawk
configure:3485: found /tools/bin/gawk
configure:3496: result: gawk
configure:3507: checking whether make sets $(MAKE)
configure:3529: result: yes
configure:3612: checking whether to enable maintainer-specific portions of
Makefiles
configure:3621: result: no
User:
ABI=
CC=gcc -isystem /usr/include
CFLAGS=(unset)
CPPFLAGS=-fexceptions
MPN_PATH=
GMP:
abilist=32
cclist=gcc icc cc
configure:5506: gcc -isystem /usr/include 2>&1 | grep xlc >/dev/null
configure:5509: $? = 1
configure:5563: checking compiler gcc -isystem /usr/include -m32 -O2
-pedantic -fomit-frame-pointer -fexceptions
Test compile:
configure:5577: gcc -isystem /usr/include -m32 -O2 -pedantic
-fomit-frame-pointer -fexceptions conftest.c >&5
configure:5580: $? = 0
configure:5585: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5586: ./a.out: No such file or directory
./configure: line 5586: ./b.out: No such file or directory
./configure: line 5586: ./a.exe: No such file or directory
./configure: line 5586: ./a_out.exe: No such file or directory
./configure: line 5586: ./conftest: No such file or directory
configure:5588: $? = 127
failed program was:

int main () { return 0; }
configure:6603: result: no, program does not run
configure:5563: checking compiler gcc -isystem /usr/include -O2 -pedantic
-fomit-frame-pointer -fexceptions
Test compile:
configure:5577: gcc -isystem /usr/include -O2 -pedantic
-fomit-frame-pointer -fexceptions conftest.c >&5
configure:5580: $? = 0
configure:5585: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest
./configure: line 5586: ./a.out: No such file or directory
./configure: line 5586: ./b.out: No such file or directory
./configure: line 5586: ./a.exe: No such file or directory
./configure: line 5586: ./a_out.exe: No such file or directory
./configure: line 5586: ./conftest: No such file or directory
configure:5588: $? = 127
failed program was:

int main () { return 0; }
configure:6603: result: no, program does not run
configure:6841: error: could not find a working compiler, see config.log
for details

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

ac_cv_build=i586-pc-linux-gnu
ac_cv_env_ABI_set=
ac_cv_env_ABI_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='gcc -isystem /usr/include'
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-fexceptions
ac_cv_env_CPP_FOR_BUILD_set=
ac_cv_env_CPP_FOR_BUILD_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='g++ -isystem /usr/include'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-rpath-link,/usr/lib:/lib
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_M4_set=
ac_cv_env_M4_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i586-pc-linux-gnu
ac_cv_path_install='/tools/bin/install -c'
ac_cv_path_mkdir=/tools/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes

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

ABI=''
ACLOCAL='${SHELL} /sources/gmp-5.1.2/missing --run aclocal-1.11'
AMTAR='$${TAR-tar}'
AR=''
AS=''
ASMFLAGS=''
AUTOCONF='${SHELL} /sources/gmp-5.1.2/missing --run autoconf'
AUTOHEADER='${SHELL} /sources/gmp-5.1.2/missing --run autoheader'
AUTOMAKE='${SHELL} /sources/gmp-5.1.2/missing --run automake-1.11'
AWK='gawk'
CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
CC='gcc -isystem /usr/include'
CCAS=''
CC_FOR_BUILD=''
CFLAGS=''
CPP=''
CPPFLAGS='-fexceptions'
CPP_FOR_BUILD=''
CXX='g++ -isystem /usr/include'
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFN_LONG_LONG_LIMB=''
DEFS=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_STATIC_FALSE=''
ENABLE_STATIC_TRUE=''
EXEEXT=''
EXEEXT_FOR_BUILD=''
FGREP=''
GMP_LDFLAGS=''
GMP_LIMB_BITS=''
GMP_NAIL_BITS='0'
GREP=''
HAVE_CLOCK_01=''
HAVE_CPUTIME_01=''
HAVE_GETRUSAGE_01=''
HAVE_GETTIMEOFDAY_01=''
HAVE_HOST_CPU_FAMILY_power='0'
HAVE_HOST_CPU_FAMILY_powerpc='0'
HAVE_SIGACTION_01=''
HAVE_SIGALTSTACK_01=''
HAVE_SIGSTACK_01=''
HAVE_STACK_T_01=''
HAVE_SYS_RESOURCE_H_01=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-rpath-link,/usr/lib:/lib'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBCURSES=''
LIBGMPXX_LDFLAGS=''
LIBGMP_DLL=''
LIBGMP_LDFLAGS=''
LIBM=''
LIBM_FOR_BUILD=''
LIBOBJS=''
LIBREADLINE=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /sources/gmp-5.1.2/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/tools/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='gmp'
PACKAGE_BUGREPORT='gmp-bugs at gmplib.org, see
http://gmplib.org/manual/Reporting-Bugs.html'
PACKAGE_NAME='GNU MP'
PACKAGE_STRING='GNU MP 5.1.2'
PACKAGE_TARNAME='gmp'
PACKAGE_URL='http://www.gnu.org/software/gmp/'
PACKAGE_VERSION='5.1.2'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SPEED_CYCLECOUNTER_OBJ='pentium.lo'
STRIP=''
TAL_OBJECT=''
TUNE_LIBS=''
TUNE_SQR_OBJ=''
U_FOR_BUILD=''
VERSION='5.1.2'
WANT_CXX_FALSE=''
WANT_CXX_TRUE=''
WITH_READLINE_01=''
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__isrc=''
am__leading_dot='.'
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='i586-pc-linux-gnu'
build_alias=''
build_cpu='i586'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
gmp_srclinks=''
host='i586-pc-linux-gnu'
host_alias=''
host_cpu='i586'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /sources/gmp-5.1.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/tools/bin/mkdir -p'
mpn_objects=''
mpn_objs_in_libgmp=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "GNU MP"
#define PACKAGE_TARNAME "gmp"
#define PACKAGE_VERSION "5.1.2"
#define PACKAGE_STRING "GNU MP 5.1.2"
#define PACKAGE_BUGREPORT "gmp-bugs at gmplib.org, see
http://gmplib.org/manual/Reporting-Bugs.html"
#define PACKAGE_URL "http://www.gnu.org/software/gmp/"
#define PACKAGE "gmp"
#define VERSION "5.1.2"
#define WANT_ASSEMBLY 1
#define WANT_FFT 1
#define HAVE_HOST_CPU_i586 1

configure: exit 1
=============================

And to make check if c does work:

=============================
root:/sources/gmp-5.1.2# echo 'main(){}' > dummy.c
root:/sources/gmp-5.1.2# gcc -isystem /usr/include -fexceptions dummy.c
root:/sources/gmp-5.1.2# readelf -l a.out | grep ': /lib'
      [Requesting program interpreter: /lib/ld-linux.so.2]
=============================

Best regards!

p.s. i'm new on mailinglist. can i simply attach logs as files?


2013/9/5 William Harrington <kb0iic at berzerkula.org>

>
> On Sep 5, 2013, at 3:13 PM, san wrote:
>
> I just want to be sure can i go chroot. Building on i686 for i586.
> Cross-Compiled Linux From Scratch - Version 2.0.0-x86
>
>
> Yes. what you should have done was go ahead and chroot. If ou got errors
> then contact the list.
>
> Sincerely,
>
> William Harrington
>
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>
>


-- 
[ e-San.info | San at plusnet.pl ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20130906/38f59aab/attachment-0001.htm>


More information about the Clfs-support mailing list