From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15104 invoked by alias); 26 Aug 2002 19:27:18 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15097 invoked from network); 26 Aug 2002 19:27:18 -0000 Received: from unknown (HELO hotmail.com) (64.4.19.105) by sources.redhat.com with SMTP; 26 Aug 2002 19:27:18 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 26 Aug 2002 12:27:18 -0700 Received: from 192.18.42.10 by lw12fd.law12.hotmail.msn.com with HTTP; Mon, 26 Aug 2002 19:27:17 GMT X-Originating-IP: [192.18.42.10] From: "Johnathan Davis" To: gcc-help@gcc.gnu.org Bcc: Subject: Building an xscale cross compiler Date: Mon, 26 Aug 2002 12:27:00 -0000 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_7902_156f_a5" Message-ID: X-OriginalArrivalTime: 26 Aug 2002 19:27:18.0057 (UTC) FILETIME=[973AA190:01C24D36] X-SW-Source: 2002-08/txt/msg00215.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_7902_156f_a5 Content-Type: text/plain; format=flowed Content-length: 1077 Hi, I'm currently attempting to build a (gcc3.0.4) cross compiler for Linux on XScale. I am trying to build this cross compiler on an x86 Linux machine. My approach has been the following: build binutils: binutils> ../binutils/configure --target=xscale-elf --prefix=/gcc3_install binutils> make all install build gcc gcc3_build> ../gcc304/configure --target=xscale-elf --prefix=/gcc3_install gcc3_build> make all install This invariably results in the following error: checking whether the C compiler (/gcc3_build/gcc/xgcc -B/gcc3_build/gcc/ -B/gcc3_install/xscale-elf/bin/ -B/gcc3_install/xscale-elf/lib/ -isystem /gcc3_install/xscale-elf/include -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. make: *** [configure-target-libiberty] Error 1 The associated config.log file is attached. What am I failing to configure correctly? thanks -j _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com ------=_NextPart_000_7902_156f_a5 Content-Type: text/plain; name="libiberty_config.log"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="libiberty_config.log" Content-length: 10371 This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:591: checking host system type configure:614: checking build system type configure:640: checking for ar configure:672: checking for ranlib configure:741: checking for gcc configure:820: checking whether we are using GNU C configure:829: gcc -E conftest.c configure:845: checking whether gcc accepts -g configure:876: checking for POSIXized ISC configure:897: checking for working const configure:951: gcc -c -g -O2 conftest.c 1>&5 configure:972: checking for inline configure:986: gcc -c -g -O2 conftest.c 1>&5 configure:1029: checking for a BSD compatible install configure:1090: checking how to run the C preprocessor configure:1111: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/file.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/param.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for limits.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for stdlib.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for string.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for unistd.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for strings.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/time.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for time.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/resource.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/stat.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for sys/mman.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1173: checking for fcntl.h configure:1183: gcc -E conftest.c >/dev/null 2>conftest.out configure:1210: checking for sys/wait.h that is POSIX.1 compatible configure:1231: gcc -c -g -O2 conftest.c 1>&5 configure:1252: checking whether time.h and sys/time.h may both be included configure:1266: gcc -c -g -O2 conftest.c 1>&5 configure:1288: checking whether errno must be declared configure:1300: gcc -c -g -O2 conftest.c 1>&5 configure:1934: checking whether the C compiler (gcc -g -O2 ) works configure:1950: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1976: checking whether the C compiler (gcc -g -O2 ) is a cross-compiler configure:1983: checking for asprintf configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for atexit configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for basename configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for bcmp configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1995: warning: conflicting types for built-in function `bcmp' configure:1983: checking for bcopy configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for bsearch configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for bzero configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1995: warning: conflicting types for built-in function `bzero' configure:1983: checking for calloc configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for clock configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for getcwd configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for getpagesize configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for index configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for insque configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for memchr configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for memcmp configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1995: warning: conflicting types for built-in function `memcmp' configure:1983: checking for memcpy configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1995: warning: conflicting types for built-in function `memcpy' configure:1983: checking for memmove configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for memset configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1995: warning: conflicting types for built-in function `memset' configure:1983: checking for mkstemps configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/cc8ZEJOo.o: In function `main': /home/kbuza/gcc3_build/libiberty/configure:2005: undefined reference to `mkstemps' collect2: ld returned 1 exit status configure: failed program was: #line 1988 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char mkstemps(); below. */ #include /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mkstemps(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_mkstemps) || defined (__stub___mkstemps) choke me #else mkstemps(); #endif ; return 0; } configure:1983: checking for putenv configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for random configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for rename configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for rindex configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for setenv configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for sigsetmask configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strcasecmp configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strchr configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strdup configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strncasecmp configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strrchr configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strstr configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strtod configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strtol configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for strtoul configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for tmpnam configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/ccteU1ZS.o: In function `main': /home/kbuza/gcc3_build/libiberty/configure:2005: the use of `tmpnam' is dangerous, better use `mkstemp' configure:1983: checking for vasprintf configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for vfprintf configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for vprintf configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for vsprintf configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:1983: checking for waitpid configure:2011: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2058: checking for working alloca.h configure:2070: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2091: checking for alloca configure:2124: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2293: checking for ANSI C header files configure:2306: gcc -E conftest.c >/dev/null 2>conftest.out configure:2373: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2397: checking for pid_t configure:2431: checking for vfork.h configure:2441: gcc -E conftest.c >/dev/null 2>conftest.out configure:2437:19: vfork.h: No such file or directory configure: failed program was: #line 2436 "configure" #include "confdefs.h" #include configure:2466: checking for working vfork configure:2617: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2644: checking for sys_errlist configure:2656: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:2652: warning: assignment from incompatible pointer type configure:2644: checking for sys_nerr configure:2656: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:2652: warning: assignment from incompatible pointer type configure:2644: checking for sys_siglist configure:2656: gcc -o conftest -g -O2 conftest.c 1>&5 configure: In function `main': configure:2652: warning: assignment from incompatible pointer type configure:2682: checking for getrusage configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for on_exit configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for psignal configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for strerror configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for strsignal configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for sysconf configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for times configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for sbrk configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2682: checking for gettimeofday configure:2710: gcc -o conftest -g -O2 conftest.c 1>&5 configure:2740: checking for unistd.h configure:2779: checking for getpagesize configure:2832: checking for working mmap configure:2980: gcc -o conftest -g -O2 conftest.c 1>&5 configure:3004: checking for working strncmp configure:3073: gcc -o conftest -g -O2 conftest.c 1>&5 ------=_NextPart_000_7902_156f_a5--