Linux MIPS Architecture development
 help / color / mirror / Atom feed
* gcc compilation errors(c++)
@ 2007-09-22 23:52 tasos
  2007-09-23  0:26 ` tasos
  0 siblings, 1 reply; 2+ messages in thread
From: tasos @ 2007-09-22 23:52 UTC (permalink / raw)
  To: linux-mips

Hello people and nice to meet you.
I need your help please.
I'm trying to build a new firmware for my router.
http://broadband.eip.siemens.ch/public/GPL_source/OSS_Component.htm
I have built binutils and now i have problems with gcc(specifically on c++).
At some point i get:

checking float.h usability... no
checking float.h presence... yes
configure: WARNING: float.h: present but cannot be compiled
configure: WARNING: float.h: check for missing prerequisite headers?
configure: WARNING: float.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for float.h... yes
checking for endian.h... (cached) no
checking for inttypes.h... (cached) no
checking locale.h usability... no
checking locale.h presence... no
checking for locale.h... no
checking for float.h... (cached) yes
checking for stdint.h... (cached) no
checking for main in -lm... configure: error: Link tests are not allowed 
after GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

I'm using:
binutils-2.15.94.0.2.2 and gcc-3.4.2

bunzip2 -dc ../gcc-3.4.2-300-pr15526.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-600-gcc34-arm-ldm-peephole.patch.bz2 | patch -p1
bunzip2 -dc  ../gcc-3.4.2-300-pr17541.patch.bz2 | patch -p1
bunzip2 -dc  ../gcc-3.4.2-300-pr17976.patch.bz2 | patch -p1
bunzip2 -dc  ../gcc-3.4.2-810-arm-bigendian-uclibc.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-700-pr15068-fix.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-402-mips-pr17770.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-300-libstdc++-pic.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-602-sdk-libstdc++-includes.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-200-uclibc-locale.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-400-mips-delay-slot.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-100-uclibc-conf.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-401-ppc-eabi-typo.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-900-install-info.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-601-gcc34-arm-ldm.patch.bz2 | patch -p1
bunzip2 -dc ../gcc-3.4.2-800-arm-bigendian.patch.bz2 | patch -p1

bunzip2 -dc 
../binutils-2.15.94.0.2.2-400-mips-ELF_MAXPAGESIZE-4K.patch.bz2 | patch -p1
bunzip2 -dc ../binutils-2.15.94.0.2.2-210-cflags.patch.bz2 | patch -p1
bunzip2 -dc ../binutils-2.15.94.0.2.2-100-uclibc-conf.patch.bz2 | patch -p1
bunzip2 -dc 
../binutils-2.15.94.0.2.2-320_mips_xgot_multigot_workaround.patch.bz2 | 
patch -p1
bunzip2 -dc 
../binutils-2.15.94.0.2.2-312_check_ldrunpath_length.patch.bz2 | patch -p1
bunzip2 -dc ../binutils-2.15.94.0.2.2-306_better_file_error.patch.bz2 | 
patch -p1
bunzip2 -dc 
../binutils-2.15.94.0.2.2-702-binutils-skip-comments.patch.bz2 | patch -p1
bunzip2 -dc ../binutils-2.15.94.0.2.2-301_ld_makefile_patch.patch.bz2 | 
patch -p1


./configure --target=$TARGET --prefix=$PREFIX \
  --enable-languages=c,c++ --without-headers \
  --with-gnu-ld --with-gnu-as \
  --disable-shared --disable-threads

basically i'm using the tutorial at
http://www.linux-mips.org/wiki/Toolchains

They exist in 
http://broadband.eip.siemens.ch/public/GPL_source/GPL_source_CL_SL_SLI_series_consumer_release.tar 

so i don't find a reason not to use them.
Can you please help me?I'm the first time i'm building a kernel for 
another architecture.
Thank you in advance!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc compilation errors(c++)
  2007-09-22 23:52 gcc compilation errors(c++) tasos
@ 2007-09-23  0:26 ` tasos
  0 siblings, 0 replies; 2+ messages in thread
From: tasos @ 2007-09-23  0:26 UTC (permalink / raw)
  To: linux-mips

tasos wrote:
> Hello people and nice to meet you.
> I need your help please.
> I'm trying to build a new firmware for my router.
> http://broadband.eip.siemens.ch/public/GPL_source/OSS_Component.htm
> I have built binutils and now i have problems with gcc(specifically on 
> c++).
> At some point i get:
>
> checking float.h usability... no
> checking float.h presence... yes
> configure: WARNING: float.h: present but cannot be compiled
> configure: WARNING: float.h: check for missing prerequisite headers?
> configure: WARNING: float.h: proceeding with the preprocessor's result
> configure: WARNING:     ## ------------------------------------ ##
> configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
> configure: WARNING:     ## ------------------------------------ ##
> checking for float.h... yes
> checking for endian.h... (cached) no
> checking for inttypes.h... (cached) no
> checking locale.h usability... no
> checking locale.h presence... no
> checking for locale.h... no
> checking for float.h... (cached) yes
> checking for stdint.h... (cached) no
> checking for main in -lm... configure: error: Link tests are not 
> allowed after GCC_NO_EXECUTABLES.
> make: *** [configure-target-libstdc++-v3] Error 1
>
> I'm using:
> binutils-2.15.94.0.2.2 and gcc-3.4.2
>
> bunzip2 -dc ../gcc-3.4.2-300-pr15526.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-600-gcc34-arm-ldm-peephole.patch.bz2 | patch -p1
> bunzip2 -dc  ../gcc-3.4.2-300-pr17541.patch.bz2 | patch -p1
> bunzip2 -dc  ../gcc-3.4.2-300-pr17976.patch.bz2 | patch -p1
> bunzip2 -dc  ../gcc-3.4.2-810-arm-bigendian-uclibc.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-700-pr15068-fix.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-402-mips-pr17770.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-300-libstdc++-pic.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-602-sdk-libstdc++-includes.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-200-uclibc-locale.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-400-mips-delay-slot.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-100-uclibc-conf.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-401-ppc-eabi-typo.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-900-install-info.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-601-gcc34-arm-ldm.patch.bz2 | patch -p1
> bunzip2 -dc ../gcc-3.4.2-800-arm-bigendian.patch.bz2 | patch -p1
>
> bunzip2 -dc 
> ../binutils-2.15.94.0.2.2-400-mips-ELF_MAXPAGESIZE-4K.patch.bz2 | 
> patch -p1
> bunzip2 -dc ../binutils-2.15.94.0.2.2-210-cflags.patch.bz2 | patch -p1
> bunzip2 -dc ../binutils-2.15.94.0.2.2-100-uclibc-conf.patch.bz2 | 
> patch -p1
> bunzip2 -dc 
> ../binutils-2.15.94.0.2.2-320_mips_xgot_multigot_workaround.patch.bz2 
> | patch -p1
> bunzip2 -dc 
> ../binutils-2.15.94.0.2.2-312_check_ldrunpath_length.patch.bz2 | patch 
> -p1
> bunzip2 -dc ../binutils-2.15.94.0.2.2-306_better_file_error.patch.bz2 
> | patch -p1
> bunzip2 -dc 
> ../binutils-2.15.94.0.2.2-702-binutils-skip-comments.patch.bz2 | patch 
> -p1
> bunzip2 -dc ../binutils-2.15.94.0.2.2-301_ld_makefile_patch.patch.bz2 
> | patch -p1
>
>
> ./configure --target=$TARGET --prefix=$PREFIX \
>  --enable-languages=c,c++ --without-headers \
>  --with-gnu-ld --with-gnu-as \
>  --disable-shared --disable-threads
>
> basically i'm using the tutorial at
> http://www.linux-mips.org/wiki/Toolchains
>
> They exist in 
> http://broadband.eip.siemens.ch/public/GPL_source/GPL_source_CL_SL_SLI_series_consumer_release.tar 
>
> so i don't find a reason not to use them.
> Can you please help me?I'm the first time i'm building a kernel for 
> another architecture.
> Thank you in advance!
>
>
Some more info.
This is where i get the error

echo "$as_me:$LINENO: checking for main in -lm" >&5
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
if test "${ac_cv_lib_m_main+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lm  $LIBS"
if test x$gcc_no_link = xyes; then
  { { echo "$as_me:$LINENO: error:  Link tests are not allowed after 
GCC_NO_EXECUTABLES." >&5
echo "$as_me: error:  Link tests are not allowed after 
GCC_NO_EXECUTABLES." >&2;}
   { (exit 1); exit 1; }; }
fi
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */


and more specifically *
*if test x$gcc_no_link = xyes; then


Thanks in advance!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-23  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-22 23:52 gcc compilation errors(c++) tasos
2007-09-23  0:26 ` tasos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox