gcc is installed and works, but cc or icc are not installed: root:/sources/gmp-5.1.90-20130906# gcc -v Reading specs from /tools/lib/gcc/i586-pc-linux-gnu/4.6.3/specs COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i586-pc-linux-gnu/4.6.3/lto-wrapper Target: i586-pc-linux-gnu Configured with: ../gcc-4.6.3/configure --prefix=/tools --build=i686-cross-linux-gnu --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu --with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --enable-cloog-backend=isl Thread model: posix gcc version 4.6.3 (GCC for Cross-LFS 4.6.3.20121105) root:/sources/gmp-5.1.90-20130906# icc -v bash: icc: command not found root:/sources/gmp-5.1.90-20130906# cc -v bash: cc: command not found
2013/9/7 san <[email protected]> > configure:3569: checking whether to enable maintainer-specific portions of > Makefiles > configure:3578: result: no > User: > ABI= > CC= > CFLAGS=(unset) > CPPFLAGS=(unset) > > MPN_PATH= > GMP: > abilist=32 > cclist=gcc icc cc > configure:5560: gcc 2>&1 | grep xlc >/dev/null > configure:5563: $? = 1 > configure:5617: checking compiler gcc -m32 -O2 -pedantic > -fomit-frame-pointer > Test compile: > configure:5631: gcc -m32 -O2 -pedantic -fomit-frame-pointer conftest.c >&5 > configure:5634: $? = 0 > configure:5639: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest > ./configure: line 5640: ./a.out: No such file or directory > ./configure: line 5640: ./b.out: No such file or directory > ./configure: line 5640: ./a.exe: No such file or directory > ./configure: line 5640: ./a_out.exe: No such file or directory > ./configure: line 5640: ./conftest: No such file or directory > configure:5642: $? = 127 > > failed program was: > > int main () { return 0; } > configure:6657: result: no, program does not run > configure:5617: checking compiler gcc -O2 -pedantic -fomit-frame-pointer > Test compile: > configure:5631: gcc -O2 -pedantic -fomit-frame-pointer conftest.c >&5 > configure:5634: $? = 0 > configure:5639: ./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest > ./configure: line 5640: ./a.out: No such file or directory > ./configure: line 5640: ./b.out: No such file or directory > ./configure: line 5640: ./a.exe: No such file or directory > ./configure: line 5640: ./a_out.exe: No such file or directory > ./configure: line 5640: ./conftest: No such file or directory > configure:5642: $? = 127 > > failed program was: > > int main () { return 0; } > configure:6657: result: no, program does not run > configure:5538: icc -c conftest.c >&5 > ./configure: line 5539: icc: command not found > configure:5541: $? = 127 > configure:5560: icc 2>&1 | grep xlc >/dev/null > configure:5563: $? = 1 > configure:5617: checking compiler icc -no-gcc > Test compile: > configure:5631: icc -no-gcc conftest.c >&5 > ./configure: line 5632: icc: command not found > configure:5634: $? = 127 > > failed program was: > > int main () { return 0; } > configure:6657: result: no > configure:5538: cc -c conftest.c >&5 > ./configure: line 5539: cc: command not found > configure:5541: $? = 127 > configure:5560: cc 2>&1 | grep xlc >/dev/null > configure:5563: $? = 1 > configure:5617: checking compiler cc -O > Test compile: > configure:5631: cc -O conftest.c >&5 > ./configure: line 5632: cc: command not found > configure:5634: $? = 127 > > failed program was: > > int main () { return 0; } > configure:6657: result: no > configure:6895: error: could not find a working compiler, see config.log > for details > > > I do not get it. What did i miss? > > > 2013/9/7 san <[email protected]> > >> Nope, it does not work too. >> >> >> 2013/9/7 san <[email protected]> >> >>> I downloaded daily gmp (20130906) and it seems to work. >>> >>> >>> 2013/9/7 san <[email protected]> >>> >>>> Yup! >>>> >>>> root:/sources/gmp-5.1.2# mv -v config{fsf,}.guess >>>> 'configfsf.guess' -> 'config.guess' >>>> root:/sources/gmp-5.1.2# mv -v config{fsf,}.sub >>>> 'configfsf.sub' -> 'config.sub' >>>> >>>> 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 >>>> >>>> >>>> >>>> 2013/9/6 William Harrington <[email protected]> >>>> >>>>> >>>>> On Sep 6, 2013, at 5:08 AM, san wrote: >>>>> >>>>> 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 >>>>> >>>>> >>>>> Okay, >>>>> >>>>> When you built GMP did you read the note about if you are running on a >>>>> different machine than the target and to copy configfsf.guess and >>>>> configfsf.sub ? >>>>> >>>>> http://cross-lfs.org/view/CLFS-2.0.0/x86/final-system/gmp.html >>>>> >>>>> If you are using an i686 host to build an i586 toolchain, your i586 >>>>> toolchain won't be able to run programs unless you do that during GMP, >>>>> because GMP will configure and optimize itself for the current CPU it is >>>>> being built with. If you look in your config.log when after configure >>>>> fails, you will find the error of why the program can't run. It probably >>>>> has illegal instructions or such. >>>>> >>>>> Sincerely, >>>>> >>>>> William Harrington >>>>> >>>>> >>>>> _______________________________________________ >>>>> Clfs-support mailing list >>>>> [email protected] >>>>> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org >>>>> >>>>> >>>> >>>> >>>> -- >>>> [ e-San.info | [email protected] ] >>>> >>> >>> >>> >>> -- >>> [ e-San.info | [email protected] ] >>> >> >> >> >> -- >> [ e-San.info | [email protected] ] >> > > > > -- > [ e-San.info | [email protected] ] > -- [ e-San.info | [email protected] ]
_______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
