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]

Cannot build OpenBSD hosted mingw32 targeted cross compiller.Looking for help.


I'm trying to build (on OpenBSD), compiler that runs on OpenBSD and
produces mingw32 (win32) code. Target and host are both i386. I've used
http://www.libsdl.org/extras/win32/cross/build-cross.sh to do
things. Script seems to be tested by author on linux system so I suppose
that problem is related to OpenBSD host rather than mingw target. I've
build binutils without problem. gcc compilation fails when compiling
libiberty/getruntime.c this is what I get when I invoke manualy the same
command but with -v option:

---------------- command line
/home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/xgcc -v -B/home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/ -B/home/nedko/cross-tools/i386-mingw32/bin/ -B/home/nedko/cross-tools/i386-mingw32/lib/ -isystem /home/nedko/cross-tools/i386-mingw32/include -c -DHAVE_CONFIG_H -O2 -g -O2 -I. -I/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/../include  -W -Wall -Wtraditional -pedantic /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c
---------------- output
Reading specs from /home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/specs
Configured with: /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/configure -v --prefix=/home/nedko/cross-tools --target=i386-mingw32 --with-headers=/home/nedko/cross-tools/i386-mingw32/include --with-gnu-as --with-gnu-ld --without-newlib --disable-multilib
Thread model: single
gcc version 3.2.3 (mingw special 20030504-1)
 /home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/cc1 -lang-c -v -I. -I/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/../include -iprefix /home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/../lib/gcc-lib/i386-mingw32/3.2.3/ -isystem /home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/include -isystem /home/nedko/cross-tools/i386-mingw32/bin/include -isystem /home/nedko/cross-tools/i386-mingw32/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -D_WIN32 -D__WIN32 -D__WIN32__ -DWIN32 -D__MINGW32__ -D__MSVCRT__ -DWINNT -D_X86_=1 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WIN32__ -D__MINGW32__ -D__MSVCRT__ -D__WINNT__ -D_X86_=1 -D__WIN32 -D__WINNT -Asystem=winnt -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__attribute__((x)) -DHAVE_CONFIG_H -isystem /home/nedko/cross-tools/i386-mingw32/include /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c -quiet -dumpbase getruntime.c -g -O2 -O2 -W -Wall -Wtraditional -pedantic -version -o /tmp//ccs24395.s
ignoring nonexistent directory "/home/nedko/cross-tools/i386-mingw32/bin/include"
ignoring nonexistent directory "/home/nedko/cross-tools/i386-mingw32/lib/include"
GNU CPP version 3.2.3 (mingw special 20030504-1) (cpplib) (80386, BSD syntax)
GNU C version 3.2.3 (mingw special 20030504-1) (i386-mingw32)
	compiled by GNU C version 2.95.3 20010125 (prerelease, propolice).
ignoring nonexistent directory "/home/nedko/sandbox/cross/gcc-i386-mingw32/lib/gcc-lib/i386-mingw32/3.2.3/include"
ignoring nonexistent directory "/home/nedko/sandbox/cross/gcc-i386-mingw32/lib/gcc-lib/i386-mingw32/3.2.3/../../../../i386-mingw32/sys-include"
ignoring nonexistent directory "/home/nedko/sandbox/cross/gcc-i386-mingw32/lib/gcc-lib/i386-mingw32/3.2.3/../../../../i386-mingw32/include"
ignoring nonexistent directory "/home/nedko/cross-tools/include"
ignoring nonexistent directory "/home/nedko/cross-tools/lib/gcc-lib/i386-mingw32/3.2.3/include"
ignoring duplicate directory "/home/nedko/cross-tools/i386-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/include
 /home/nedko/sandbox/cross/gcc-i386-mingw32/gcc/include
 /home/nedko/cross-tools/i386-mingw32/include
 /home/nedko/cross-tools/i386-mingw32/sys-include
End of search list.
/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c:50:23: sys/times.h: No such file or directory
/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c: In function `get_run_time':
/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c:99: storage size of `tms' isn't known
/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c:101: warning: implicit declaration of function `times'
/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/libiberty/getruntime.c:99: warning: unused variable `tms'

----------------
I have sys/times.h in /usr/include but may be it is not the one that
xgcc is looking for. Any help will be appreciated.
-- 
Nedko Arnaudov



------
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]