This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Wrongfully compiled code
- From: "ariga masahiro" <ariga at link-lab dot co dot jp>
- To: <ecos-discuss at sources dot redhat dot com>, "Dave Lawrence" <dlawrence at ad-holdings dot co dot uk>
- Date: Tue, 12 Feb 2008 10:06:16 +0900
- Subject: Re: [ECOS] Re: Wrongfully compiled code
- References: <001001c85189$461611c0$1c0110ac@ariga> <4782BE28.8030706@mlbassoc.com> <002d01c85192$6fe45850$1c0110ac@ariga> <fmo9qn$u6f$1@ger.gmane.org> <000501c85963$91046d80$1c0110ac@ariga> <47909868.8040905@ad-holdings.co.uk> <001801c866d0$0ce9aa90$1c0110ac@ariga> <47A6F914.4010400@ad-holdings.co.uk>
Hello,Dave,and others,
Thanks to you,
as I applied patch that you taught me,I cleared next error.
checking for shared libgcc... configure: error: Link tests are not
I exulted and expected to succeed,but lastly(I hope)
there happened next error.
checking for C compiler default output file name... configure: error: C
compiler
cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libssp] Error 1
make[1]: Leaving directory `/tmp/build/build_gcc'
make: *** [all] Error 2
make: Leaving directory `/tmp/build/build_gcc'
I searched among many config.logs and found that
\tmp\build\build_gcc\sh-elf\m2a\libssp\config.log
contained above error message.
It says,
configure:2274: $? = 0
configure:2276:
/tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/
-isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem
/usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/
-B/usr/local/sh-elf/sh-elf/lib/ -isystem
/usr/local/sh-elf/sh-elf/include -isystem
/usr/local/sh-elf/sh-elf/sys-include -m2a -v </dev/null >&5
Reading specs from /tmp/build/build_gcc/./gcc/specs
Target: sh-elf
Configured with:
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin
--build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v : (reconfigured)
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin
--build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v : (reconfigured)
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin
--build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v : (reconfigured)
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --host=i686-pc-cygwin
--build=i686-pc-cygwin --prefix=/usr/local/sh-elf --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v : (reconfigured)
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --prefix=/usr/local/sh-elf
--enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v : (reconfigured)
/usr/local/sh-elf/gcc-4.1.1/configure --target=sh-elf --prefix=/usr/local/sh-elf
--enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v
Thread model: single
gcc version 4.1.1
configure:2279: $? = 0
configure:2281:
/tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/
-isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem
/usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/
-B/usr/local/sh-elf/sh-elf/lib/ -isystem
/usr/local/sh-elf/sh-elf/include -isystem
/usr/local/sh-elf/sh-elf/sys-include -m2a -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2284: $? = 1
configure:2307: checking for C compiler default output file name
configure:2310:
/tmp/build/build_gcc/./gcc/xgcc -B/tmp/build/build_gcc/./gcc/ -nostdinc -B/tmp/build/build_gcc/sh-elf/m2a/newlib/
-isystem /tmp/build/build_gcc/sh-elf/m2a/newlib/targ-include -isystem
/usr/local/sh-elf/gcc-4.1.1/newlib/libc/include -B/usr/local/sh-elf/sh-elf/bin/
-B/usr/local/sh-elf/sh-elf/lib/ -isystem
/usr/local/sh-elf/sh-elf/include -isystem
/usr/local/sh-elf/sh-elf/sys-include -m2a -O2 -O2 conftest.c >&5
/tmp/build/build_gcc/sh-elf/m2a/newlib/libc.a: could not read symbols:
Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
configure:2313: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libssp"
| #define PACKAGE_TARNAME "libssp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libssp 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libssp"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2352: error: C compiler cannot create executables
See `config.log' for more details.
I also noticed other config.logs relating to each libssp directories
contained error messages like next.
---
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before
'me'
configure:2749: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2893: checking for style of include used by make
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:3256: $? = 1
configure: failed program was:
| /* confdefs.h. */
---
I do not know why it happened,and what I should do,
would you please help me ?
I append the same config.log and build logs "configgcc.txt","makegcc.txt" in
tar.bz2 format.
Below are my shell scripts.
===============================================
[setup.sh]
export TARGET=sh-elf
export PREFIX=/usr/local/sh-elf
export CFLAGS="-O2"
export CXXFLAGS="-O2"
export CFLAGS_FOR_TARGET="-Os"
export CXXFLAGS_FOR_TARGET="Os"
===============================================
[appendpath.sh]
PATH=$PATH:/usr/local/sh-elf/bin
===============================================
I separated building shell script.
[buildgcc-1.sh]
/usr/local/sh-elf/gcc-4.1.1/configure --target=$TARGET --prefix=$PREFIX --enable-languages=c,c++
--with-gnu-as --with-gnu-ld --with-newlib --with-ggxx-include-dir=/usr/local/sh-elf/sh-elf/include
--with-ecos -v 2>&1 | tee configgcc.txt
[buildgcc-2.sh]
make clean
make -w all install 2>&1 | tee makegcc.txt
===============================================
I am very much obliged to your help.
Thank you in advance.
Masahiro Ariga
Attachment:
log_files.tar.bz2
Description: Binary data
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss