http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50229



--- Comment #15 from Ray Donnelly <mingw.android at gmail dot com> 2013-01-15 
16:07:45 UTC ---

What brought me here was a desire to add some information about this bug, when

I saw the odcctools comment from Iain I thought I may as well mention my

compilers.



Further Information:



I'm also getting this when trying to build some Android cross compilers in the

Canadian way, with failures when host is either Darwin or Windows. The bug only

happens if --enable-plugins is specified to configure (as that's what triggers

building a gengtype executable for the host machine).



Darwin:

build system type... x86_64-pc-linux-gnu

host system type... i686-apple-darwin

target system type... arm-unknown-linux-androideabi

i686-apple-darwin-gcc -c -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  

-DGENERATOR_FILE -I. -Ibuild

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/build

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../include

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libcpp/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-apple-darwin/temp-prereqs/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-apple-darwin/temp-prereqs/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-apple-darwin/temp-prereqs/include



-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libdecnumber

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libdecnumber/dpd

-I../libdecnumber -o build/genconstants.o

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/genconstants.c

In file included from

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/genconstants.c:29:

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/system.h:459:20:

error: malloc.h: No such file or directory



Windows:

build system type... x86_64-pc-linux-gnu

host system type... i686-w64-mingw32msvc

target system type... arm-unknown-linux-androideabi

i686-w64-mingw32msvc-gcc -c   -Os -fomit-frame-pointer -s -D__USE_MINGW_ACCESS

-DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings

-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute

-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings

-Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I.

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/.

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../include

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libcpp/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-w64-mingw32msvc/temp-prereqs/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-w64-mingw32msvc/temp-prereqs/include

-I/tmp/necessitas/ndk-build/build/host-gcc/i686-w64-mingw32msvc/temp-prereqs/include



-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libdecnumber

-I/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/../libdecnumber/dpd

-I../libdecnumber   

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/genconstants.c

-o genconstants.o

In file included from

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/genconstants.c:29:0:

/tmp/necessitas/android-qt-ndk/toolchain-source/gcc/gcc-4.7/gcc/system.h:351:22:

fatal error: sys/wait.h: No such file or directory



...so as Ruben said, it seems that there's config confusion going on.

Reply via email to