This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Failed to build gcc 3.3 for mingw32 target


Hi,

I am no longer able to build a C++ cross-compiler from i686-pc-linux-gnu to i686-pc-mingw32 using the latest version of the 
GCC sources (unpatched, straight from FSF) - GCC 3.3

I have built binutils 2.13.2 for the target,  a minimal C cross-compiler (3.3), 
and built (and installed) w32api 2.3 and mingw runtime 3.0 with it from source.

When attempting to build a full C/C++ cross-compiler with these configure options

../gcc-3.3/configure --prefix=/work/pthyseba/cross-tools/i686-pc-mingw32 --host=i686-pc-linux-gnu --target=i686-pc-mingw32 
--build=i686-pc-linux-gnu --enable-threads --enable-languages=c,c++

the make process dies while building libstdc++ in basic_file.cc:

/work/pthyseba/build-gcc/gcc/xgcc -shared-libgcc -B/work/pthyseba/build-gcc/gcc/
 -nostdinc++ -L/work/pthyseba/build-gcc/i686-pc-mingw32/libstdc++-v3/src -L/work
/pthyseba/build-gcc/i686-pc-mingw32/libstdc++-v3/src/.libs -B/work/pthyseba/cros
s-tools/i686-pc-mingw32/i686-pc-mingw32/bin/ -B/work/pthyseba/cross-tools/i686-p
c-mingw32/i686-pc-mingw32/lib/ -isystem /work/pthyseba/cross-tools/i686-pc-mingw
32/i686-pc-mingw32/include -nostdinc++ -I/work/pthyseba/build-gcc/i686-pc-mingw3
2/libstdc++-v3/include/i686-pc-mingw32 -I/work/pthyseba/build-gcc/i686-pc-mingw3
2/libstdc++-v3/include -I../../../../gcc-3.3/libstdc++-v3/libsupc++ -I../../../.
./gcc-3.3/libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format
-W -Wwrite-strings -fdiagnostics-show-location=once -c basic_file.cc -o basic_fi
le.o
basic_file.cc: In member function `streamsize
   std::__basic_file<char>::showmanyc_helper()':
basic_file.cc:245: error: `ioctl' undeclared (first use this function)
basic_file.cc:245: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[3]: *** [basic_file.lo] Error 1
make[3]: Leaving directory `/work/pthyseba/build-gcc/i686-pc-mingw32/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/pthyseba/build-gcc/i686-pc-mingw32/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/work/pthyseba/build-gcc/i686-pc-mingw32/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

basic_file.cc is a symlink to /work/pthyseba/gcc-3.3/libstdc++-v3/config/io/basic_file_stdio.cc

Any thoughts on this?

Pieter



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]