public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* "No such file error" when compiling powerpc-softfloat-linux-gnu libgfrotran
@ 2008-01-06  7:26 Xiaobo Yan
  0 siblings, 0 replies; only message in thread
From: Xiaobo Yan @ 2008-01-06  7:26 UTC (permalink / raw)
  To: gcc

Hi

After I built powerpc-softfloat-linux-gnu gcc and gfortran compiler,
The c compiler works well and the gfortran show the error like this:
            ..../bin/ld: cannot find -lgfortranbegin

I think it should work after install libgfortran, So I use the the
following configuration to build libgfortran which had been proved ok
when i built gcc and gfortran:

# *********************************************************************
#!/bin/sh

/home/yxb/gcc-4.0.0/configure --prefix=/home/yxb/install
--target=powerpc-softfloat-linux-gnu --disable-altivec
--with-float=soft --disable-nls --without-headers
--enable-languages=c,c++,f95 --with-cpu=405 --disable-multilib
--disable-threads --disable-shared --enable-static
--enable-__cxa-atexit --enable-clocale=gnu
--with-libs=/home/yxb/install/lib --enable-c99 --enable-long-long

make all-target-libgfortran install-target-libgfortran

# *********************************************************************

Then the first error i met was that cannot find stdlib.h string.h ctype.h....

So I modified it into the following:


# *********************************************************************
#!/bin/sh

/home/yxb/gcc-4.0.0/configure --prefix=/home/yxb/install
--target=powerpc-softfloat-linux-gnu --disable-altivec
--with-float=soft --disable-nls --without-headers
--enable-languages=c,c++,f95 --with-cpu=405 --disable-multilib
--disable-threads --disable-shared --enable-static
--enable-__cxa-atexit --enable-clocale=gnu
--with-libs=/home/yxb/install/lib --enable-c99 --enable-long-long

make all-target-libgfortran install-target-libgfortran INCLUDES=-I/usr/include

# *********************************************************************

Now those header files can be found, but another error comes:

make[1]: Entering directory `/home/yxb/build/libiberty'
make[2]: Entering directory `/home/yxb/build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/yxb/build/libiberty/testsuite'
make[1]: Leaving directory `/home/yxb/build/libiberty'
make[1]: Entering directory `/home/yxb/build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/yxb/build/intl'
make[1]: Entering directory `/home/yxb/build/build-i686-pc-linux-gnu/libiberty'
make[2]: Entering directory
`/home/yxb/build/build-i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/yxb/build/build-i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/home/yxb/build/build-i686-pc-linux-gnu/libiberty'
make[1]: Entering directory
`/home/yxb/build/build-i686-pc-linux-gnu/fixincludes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/yxb/build/build-i686-pc-linux-gnu/fixincludes'
make[1]: Entering directory `/home/yxb/build/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/home/yxb/build/libcpp'
make[1]: Entering directory `/home/yxb/build/fixincludes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/yxb/build/fixincludes'
make[1]: Entering directory `/home/yxb/build/gcc'
make \
  CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition  " \
  CONFIG_H="config.h  auto-host.h
/home/yxb/gcc-4.0.0/gcc/../include/ansidecl.h" \
  MAKEOVERRIDES= \
  -f libgcc.mk all
make[2]: Entering directory `/home/yxb/build/gcc'
make GCC_FOR_TARGET="/home/yxb/build/gcc/xgcc -B/home/yxb/build/gcc/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/bin/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/lib/ -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/include -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/sys-include" \
  AR_FOR_TARGET="powerpc-softfloat-linux-gnu-ar" \
  AR_CREATE_FOR_TARGET="powerpc-softfloat-linux-gnu-ar  rc" \
  AR_EXTRACT_FOR_TARGET="powerpc-softfloat-linux-gnu-ar  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="loser-" \
  LANGUAGES="" \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc "  \
  MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o
crtbeginT.o ecrti.o ecrtn.o ncrti.o ncrtn.o crtsavres.o
make[3]: Entering directory `/home/yxb/build/gcc'
make[3]: `crtend.o' is up to date.
make[3]: `crtbeginS.o' is up to date.
make[3]: `crtendS.o' is up to date.
make[3]: `crtbeginT.o' is up to date.
make[3]: `ecrti.o' is up to date.
make[3]: `ecrtn.o' is up to date.
make[3]: `ncrti.o' is up to date.
make[3]: `ncrtn.o' is up to date.
make[3]: `crtsavres.o' is up to date.
make[3]: Leaving directory `/home/yxb/build/gcc'
make[2]: Leaving directory `/home/yxb/build/gcc'
echo timestamp > stmp-multilib
make[1]: Leaving directory `/home/yxb/build/gcc'
Checking multilib configuration...
multilib.out is unchanged
make[1]: Entering directory
`/home/yxb/build/powerpc-softfloat-linux-gnu/libgfortran'
make  all-am
make[2]: Entering directory
`/home/yxb/build/powerpc-softfloat-linux-gnu/libgfortran'
/bin/sh ./libtool --mode=compile /home/yxb/build/gcc/xgcc
-B/home/yxb/build/gcc/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/bin/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/lib/ -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/include -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I/home/yxb/gcc- 4.0.0/libgfortran -I.
-I/usr/include -iquote/home/yxb/gcc-4.0.0/libgfortran/io  -std=gnu99
-O2 -g -O2 -c -o environ.lo `test -f 'runtime/environ.c' || echo
'/home/yxb/gcc-4.0.0/libgfortran/'`runtime/environ.c
/home/yxb/build/gcc/xgcc -B/home/yxb/build/gcc/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/bin/
-B/home/yxb/install/powerpc-softfloat-linux-gnu/lib/ -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/include -isystem
/home/yxb/install/powerpc-softfloat-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I/home/yxb/gcc- 4.0.0/libgfortran -I.
-I/usr/include -iquote/home/yxb/gcc-4.0.0/libgfortran/io -std=gnu99
-O2 -g -O2 -c /home/yxb/gcc-4.0.0/libgfortran/runtime/environ.c -o
environ.o
In file included from /usr/include/stdlib.h:436,
                 from /home/yxb/gcc-4.0.0/libgfortran/runtime/environ.c:32:
/usr/include/sys/types.h:88: error: two or more data types in
declaration specifiers
/usr/include/sys/types.h:88: warning: useless type name in empty declaration
make[2]: *** [environ.lo] Error 1
make[2]: Leaving directory
`/home/yxb/build/powerpc-softfloat-linux-gnu/libgfortran'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/yxb/build/powerpc-softfloat-linux-gnu/libgfortran'
make: *** [all-target-libgfortran] Error 2

Please give some advices to overcome it.

Here is the config.log.

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

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1803: checking for gcc
configure:1916: checking whether the C compiler (gcc  ) works
configure:1932: gcc -o conftest    conftest.c  1>&5
configure:1958: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1963: checking whether we are using GNU C
configure:1991: checking whether gcc accepts -g
configure:2058: checking for gnatbind
configure:2123: checking whether compiler driver understands Ada
configure:2155: checking how to compare bootstrapped objects
configure:2253: checking for correct version of gmp.h
configure:2266: gcc -c -g -O2   conftest.c 1>&5
configure:2279: checking for MPFR
configure:2292: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:2779: checking for bison
configure:2814: checking for bison
configure:2849: checking for gm4
configure:2884: checking for flex
configure:2919: checking for flex
configure:2954: checking for makeinfo
configure:3601: checking for i686-pc-linux-gnu-ar
configure:3634: checking for ar
configure:3673: checking for i686-pc-linux-gnu-as
configure:3706: checking for as
configure:3745: checking for i686-pc-linux-gnu-dlltool
configure:3778: checking for dlltool
configure:3817: checking for i686-pc-linux-gnu-ld
configure:3850: checking for ld
configure:3889: checking for i686-pc-linux-gnu-nm
configure:3922: checking for nm
configure:3961: checking for i686-pc-linux-gnu-ranlib
configure:3994: checking for ranlib
configure:4033: checking for i686-pc-linux-gnu-windres
configure:4066: checking for windres
configure:4105: checking for i686-pc-linux-gnu-objcopy
configure:4138: checking for objcopy
configure:4177: checking for i686-pc-linux-gnu-objdump
configure:4210: checking for objdump
configure:4256: checking for powerpc-softfloat-linux-gnu-ar
configure:4328: checking for powerpc-softfloat-linux-gnu-as
configure:4400: checking for powerpc-softfloat-linux-gnu-dlltool
configure:4472: checking for powerpc-softfloat-linux-gnu-ld
configure:4544: checking for powerpc-softfloat-linux-gnu-nm
configure:4616: checking for powerpc-softfloat-linux-gnu-ranlib
configure:4688: checking for powerpc-softfloat-linux-gnu-windres
configure:4806: checking whether to enable maintainer-specific
portions of Makefiles
configure:4853: checking if symbolic links between directories work



Thank you in advance.

Xiaobo Yan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-06  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-06  7:26 "No such file error" when compiling powerpc-softfloat-linux-gnu libgfrotran Xiaobo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).