public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Building an xscale cross compiler
@ 2002-08-26 13:15 Johnathan Davis
  0 siblings, 0 replies; 3+ messages in thread
From: Johnathan Davis @ 2002-08-26 13:15 UTC (permalink / raw)
  To: wqin; +Cc: gcc-help

Yes.  Good point.  However, if I continue on and try to install newlib 
targeting xscale-elf, it appears that the gcc build step has not yet 
generated the xscale-elf-gcc binary.  The xgcc residing in the 
gcc3_build/gcc directory appears to be unfinished.  That is, an attempt to 
compile with this xgcc does not work, as cc1 still needs to be linked in 
somehow.  Are you suggesting I add gcc3_build/gcc to my path and rename xgcc 
to xscale-elf-gcc in the gcc3_install/bin directory?

thanks again

-j

make[3]: Entering directory 
`/home/kbuza/gcc3newlib/xscale-elf/newlib/libc/stdlib'
xscale-elf-gcc -B/home/kbuza/gcc3newlib/xscale-elf/newlib/ -isystem 
/home/kbuza/gcc3newlib/xscale-elf/newlib/targ-include -isystem 
/home/kbuza/gcc3/newlib-1.10.0/newlib/libc/include -DPACKAGE=\"newlib\" 
-DVERSION=\"1.10.0\"  -I. 
-I../../../../../gcc3/newlib-1.10.0/newlib/libc/stdlib  -O2 -DABORT_PROVIDED 
-DHAVE_GETTIMEOFDAY -DARM_RDI_MONITOR -I../../targ-include 
-I../../../../../gcc3/newlib-1.10.0/newlib/libc/../libc/include -fno-builtin 
      -g -O2 -c 
../../../../../gcc3/newlib-1.10.0/newlib/libc/stdlib/__adjust.c
make[3]: xscale-elf-gcc: Command not found



>From: Wei Qin <wqin@EE.Princeton.EDU>
>To: Johnathan Davis <maxfischer_81@hotmail.com>
>CC: gcc-help@gcc.gnu.org
>Subject: Re: Building an xscale cross compiler
>Date: Mon, 26 Aug 2002 15:31:54 -0400 (EDT)
>
>
>
>I think you can ignore this.
>The configuration file is trying to build binaries with the cross
>compiled gcc and run it. Of course it will fail since your xgcc produces
>xscale binary.
>
>Wei
>
>On Mon, 26 Aug 2002, Johnathan Davis wrote:
>
> > 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
> >




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Building an xscale cross compiler
@ 2002-08-26 12:27 Johnathan Davis
  2002-08-26 12:31 ` Wei Qin
  0 siblings, 1 reply; 3+ messages in thread
From: Johnathan Davis @ 2002-08-26 12:27 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

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

[-- Attachment #2: libiberty_config.log --]
[-- Type: text/plain, Size: 10371 bytes --]

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 <assert.h>
/* 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 <vfork.h>
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-26 20:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-26 13:15 Building an xscale cross compiler Johnathan Davis
  -- strict thread matches above, loose matches on Subject: below --
2002-08-26 12:27 Johnathan Davis
2002-08-26 12:31 ` Wei Qin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).