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] |
"Kai Ruottu" <karuottu@mbnet.fi> writes: >> /home/nedko/cross-tools/i386-mingw32/include >> /home/nedko/cross-tools/i386-mingw32/sys-include >> End of search list. > > Ok, the GCC-build searches the MinGW-headers from these places > ($prefix/$target/*include') and it is surprising that you didn't put them > there before starting to build GCC, as if you hadn't consulted your > fine GCC-manual (RTFM) and the build instructions for cross-GCCs > ever... Also all the target libs must be preinstalled from the MinGW > runtime and w32api packages (into $prefix/$target/lib). The script i've ran do this. I have mingw headers in both /home/nedko/cross-tools/i386-mingw32/include and /home/nedko/cross-tools/i386-mingw32/sys-include the later seems to be copy of first produced by configure build of binutils (already built) or gcc, > Trying the command 'i386-mingw32-cpp -v' should tell the built-in > header search paths (when you have this installed, now the 'cpp' in > your $build/gcc is available for this purpose)... this is what i get (after adding $build/gcc to $PATH) ---------------------------------- # cpp -v Using built-in 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) cpp0 -lang-c -v -iprefix gcc-i386-mingw32/gcc/../lib/gcc-lib/i386-mingw32/3.2.3/ -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__NO_INLINE__ -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)) - GNU CPP version 3.2.3 (mingw special 20030504-1) (cpplib) (80386, BSD syntax) ignoring nonexistent directory "gcc-i386-mingw32/lib/gcc-lib/i386-mingw32/3.2.3/include" ignoring nonexistent directory "gcc-i386-mingw32/lib/gcc-lib/i386-mingw32/3.2.3/../../../../i386-mingw32/sys-include" ignoring nonexistent directory "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" #include "..." search starts here: #include <...> search starts here: /usr/local/include /home/nedko/cross-tools/i386-mingw32/sys-include /home/nedko/cross-tools/i386-mingw32/include End of search list. ---------------------------------- /home/nedko/cross-tools/i386-mingw32/sys-include /home/nedko/cross-tools/i386-mingw32/include are the built-in search paths, right ? MinGW headers are there. > There is now a mess with the use of the '$prefix/$target/*include' dirs, > so the standard headers 'limits.h', 'stdlib.h' and 'unistd.h' must be seen > also in the 'sys-include', so please symlink them there before starting to > build your GCC. Please send your complaint about this issue to the > 'gcc-bug' sys-include has same contents as incude plus additional file COPIED with contents /home/nedko/cross-tools/i386-mingw32/include Your message (thanks), has cleared some things to me so now I'm sure that the problem is that MinGW gcc searches sys/times.h but it is not available in MingW headres. But MinGW headers are same when building Linux hosted and OpenBSD hosted gcc for MinGW. So the problem is why MinGW gcc searches for header (sys/times.h) that is not available in MinGW headers directories ($prefix/$target/*inculde). I suppose that this is because I have such header in /usr/include (OpenBSD native gcc headers). Am I right ? Next is output of running configure for gcc: Links are now set up to build a cross-compiler for i386-pc-mingw32 from i386-unknown-openbsd3.3. -i386-mingw32 Configuring libiberty... creating cache ../config.cache checking whether to enable maintainer-specific portions of Makefiles... no checking for makeinfo... makeinfo checking for perl... perl checking host system type... i386-unknown-openbsd3.3 checking build system type... i386-unknown-openbsd3.3 checking for ar... ar checking for ranlib... ranlib checking for gcc... gcc checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for POSIXized ISC... no checking for working const... yes checking for inline... inline checking for a BSD compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for sys/file.h... yes checking for sys/param.h... yes checking for limits.h... yes checking for stdlib.h... yes checking for string.h... yes checking for unistd.h... yes checking for strings.h... yes checking for sys/time.h... yes checking for time.h... yes checking for sys/resource.h... yes checking for sys/stat.h... yes checking for sys/mman.h... yes checking for fcntl.h... yes checking for alloca.h... no checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking whether errno must be declared... no checking for ANSI C header files... yes checking for uintptr_t... no checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking for asprintf... yes checking for atexit... yes checking for basename... yes checking for bcmp... yes checking for bcopy... yes checking for bsearch... yes checking for bzero... yes checking for calloc... yes checking for clock... yes checking for ffs... yes checking for getcwd... yes checking for getpagesize... yes checking for index... yes checking for insque... no checking for memchr... yes checking for memcmp... yes checking for memcpy... yes checking for memmove... yes checking for memset... yes checking for mkstemps... yes checking for putenv... yes checking for random... yes checking for rename... yes checking for rindex... yes checking for setenv... yes checking for sigsetmask... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for strtoul... yes checking for tmpnam... yes checking for vasprintf... yes checking for vfprintf... yes checking for vprintf... yes checking for vsprintf... yes checking for waitpid... yes checking whether alloca needs Cray hooks... no checking stack direction for C alloca... -1 checking for pid_t... yes checking for vfork.h... no checking for working vfork... yes checking for _doprnt... no checking for sys_errlist... yes checking for sys_nerr... yes checking for sys_siglist... yes checking for getrusage... yes checking for on_exit... no checking for psignal... yes checking for strerror... yes checking for strsignal... yes checking for sysconf... yes checking for times... yes checking for sbrk... yes checking for gettimeofday... yes checking for unistd.h... (cached) yes checking for getpagesize... (cached) yes checking for working mmap... yes checking for working strncmp... yes updating cache ../config.cache creating ./config.status creating Makefile creating testsuite/Makefile creating config.h Configuring gcc... loading cache ../config.cache checking LIBRARY_PATH variable... ok checking GCC_EXEC_PREFIX variable... ok checking host system type... i386-unknown-openbsd3.3 checking target system type... i386-pc-mingw32 checking build system type... i386-unknown-openbsd3.3 checking for gcc... (cached) gcc checking whether the C compiler (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether gcc and cc understand -c and -o together... yes checking for gnatbind... no checking for compiler driver that understands Ada... no checking whether gcc accepts -Wno-long-long... yes checking how to run the C preprocessor... (cached) gcc -E checking for inline... (cached) inline checking for volatile... yes checking for long double... yes checking for long long int... yes checking for __int64... no checking for built-in _Bool... no checking size of short... 2 checking size of int... 4 checking size of long... 4 checking size of long long... 8 checking execution character set... ASCII checking whether make sets ${MAKE}... yes checking whether a default assembler was specified... no checking whether a default linker was specified... no checking for GNU C library... no checking for mawk... no checking for gawk... no checking for nawk... nawk checking whether ln works... yes checking whether ln -s works... yes checking for ranlib... (cached) ranlib checking for a BSD compatible install... (cached) /usr/bin/install -c checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for working stdbool.h... yes checking whether string.h and strings.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for limits.h... (cached) yes checking for stddef.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for stdlib.h... (cached) yes checking for time.h... (cached) yes checking for fcntl.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/file.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/param.h... (cached) yes checking for sys/times.h... yes checking for sys/stat.h... (cached) yes checking for direct.h... no checking for malloc.h... no checking for langinfo.h... yes checking for thread.h... no checking for pthread.h... yes checking for CHAR_BIT... yes checking byte ordering... little-endian checking floating point format... IEEE (little-endian) checking for mktemp... yes checking for makeinfo... (cached) makeinfo checking for modern makeinfo... yes checking for recent Pod::Man... yes checking for flex... flex checking for bison... false checking for collect2 libraries... none required checking for library containing exc_resume... no checking for preprocessor stringizing operator... yes checking for inttypes.h... no checking for times... (cached) yes checking for clock... (cached) yes checking for dup2... yes checking for kill... yes checking for getrlimit... yes checking for setrlimit... yes checking for atoll... yes checking for atoq... no checking for sysconf... (cached) yes checking for strsignal... (cached) yes checking for putc_unlocked... yes checking for fputc_unlocked... no checking for fputs_unlocked... no checking for fwrite_unlocked... no checking for fprintf_unlocked... no checking for getrusage... (cached) yes checking for nl_langinfo... yes checking for lstat... yes checking for ssize_t... yes checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking whether the printf functions support %p... yes checking for pid_t... (cached) yes checking for vfork.h... (cached) no checking for working vfork... (cached) yes checking for getpagesize... (cached) yes checking for working mmap from /dev/zero... yes checking for working mmap with MAP_ANON(YMOUS)... yes checking for working mmap of a file... yes checking for iconv... no, consider installing GNU libiconv checking whether getenv is declared... yes checking whether atol is declared... yes checking whether sbrk is declared... yes checking whether abort is declared... yes checking whether atof is declared... yes checking whether getcwd is declared... yes checking whether getwd is declared... yes checking whether strsignal is declared... yes checking whether putc_unlocked is declared... yes checking whether fputs_unlocked is declared... no checking whether fwrite_unlocked is declared... no checking whether fprintf_unlocked is declared... no checking whether strstr is declared... yes checking whether errno is declared... yes checking whether malloc is declared... yes checking whether realloc is declared... yes checking whether calloc is declared... yes checking whether free is declared... yes checking whether basename is declared... yes checking whether getopt is declared... yes checking whether clock is declared... yes checking whether getrlimit is declared... yes checking whether setrlimit is declared... yes checking whether getrusage is declared... yes checking whether times is declared... yes checking for struct tms... yes checking for clock_t... yes checking if mkdir takes one argument... no Using `/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/gcc/config/i386/i386.c' for machine-specific logic. Using `/home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/gcc/config/i386/i386.md' as machine description file. Using the following target machine macro files: /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/gcc/config/i386/cygming.h /home/nedko/sandbox/cross/source/gcc-3.2.3-20030504-1/gcc/config/i386/mingw32.h checking for library containing strerror... none required checking for working const... (cached) yes checking for off_t... yes checking for size_t... yes checking for working alloca.h... (cached) no checking for alloca... yes checking whether we are using the GNU C Library 2.1 or newer... no checking for argz.h... no checking for limits.h... (cached) yes checking for locale.h... yes checking for nl_types.h... yes checking for malloc.h... (cached) no checking for stddef.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... (cached) yes checking for feof_unlocked... no checking for fgets_unlocked... no checking for getcwd... (cached) yes checking for getegid... yes checking for geteuid... yes checking for getgid... yes checking for getuid... yes checking for mempcpy... no checking for munmap... yes checking for putenv... (cached) yes checking for setenv... (cached) yes checking for setlocale... yes checking for stpcpy... no checking for strchr... (cached) yes checking for strcasecmp... (cached) yes checking for strdup... (cached) yes checking for strtoul... (cached) yes checking for tsearch... yes checking for __argz_count... no checking for __argz_stringify... no checking for __argz_next... no checking for iconv... (cached) no, consider installing GNU libiconv checking for nl_langinfo and CODESET... no checking for LC_MESSAGES... yes checking whether NLS is requested... yes checking whether included gettext is requested... no checking for libintl.h... no checking for msgfmt... /usr/local/bin/msgfmt checking for gmsgfmt... /usr/local/bin/msgfmt checking for xgettext... /usr/local/bin/xgettext checking for bison... no checking for catalogs to be installed... da el es fr ja nl sv tr checking what assembler to use... /home/nedko/cross-tools/i386-mingw32/bin/as checking what linker to use... /home/nedko/cross-tools/i386-mingw32/bin/ld checking what nm to use... i386-mingw32-nm checking what objdump to use... i386-mingw32-objdump checking assembler alignment features... .p2align including maximum skip checking assembler subsection support... no checking assembler weak support... yes checking assembler hidden support... no checking assembler leb128 support... yes checking assembler eh_frame optimization... bad checking assembler section merging support... no checking assembler instructions... filds fists checking assembler GOTOFF in data directives... yes checking assembler dwarf2 debug_line support... yes checking assembler --gdwarf2 support... yes checking assembler --gstabs support... yes checking linker PT_GNU_EH_FRAME support... no Using ggc-page for garbage collection. checking whether to enable maintainer-specific portions of Makefiles... no updating cache ../config.cache creating ./config.status creating Makefile creating intl/Makefile creating fixinc/Makefile creating gccbug creating mklibgcc creating auto-host.h Configuring etc... No configuration information in etc -- 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] |