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]

Build without libgloss?


Hi all,
         I am evaluating replacement compilers for a 68331 based embedded
system to run from windows 2000.  
I managed to persaude my colleagues that gcc was a viable candidate.
However, pressure is building on me to 
drop it from consideration and concentrate on the commercial offerings
because I am unable to build a cross compiler myself or source a prebuilt
version for evaluation purposes.  Can anybody help my champion the open 
source community? (unfortunately persuading my colleagues to switch to linux
is not an option :-) 
   After some tinkering I can get as far as building newlib but it (the
build-crossgcc-sh script) fails whilst building 
libgloss in build-newlib/m68k-coff/m68000/libgloss/m68k with "no targets
specified and no makefile found".  The
configure log seems to suggest its trying to use some functions in libc.a
which we should have just built.  Has
anyone know how to resolve this problem?  
   I don't think we will require any of the routines in libgloss for our
application as we already have our own low level
support code.  Is there some way to build newlib without libgloss or is it
an integral part without which nothing else
will work?  The equivalent of running configure with --without-libgloss
perhaps?
					Regards,
						Bruce A.


host = i686-pc-cygwin
target = m68k-coff          (but I'd be just as happy with elf, maybe even
a-out)

binutils = 2.13
gcc      = 3.2
newlib  = 1.10.0


part of config.log from m68000/libgloss/m68k subdirectory.

configure:860: checking whether the C compiler (m68k-coff-gcc
-B/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/ne
wlib/ -isystem
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/targ-include -isystem
/cygdrive/c/brucea/downloads/gcc/crossgcc/newlib-1.10.0/newlib/libc/include
-m68000 -g -O2 ) works
configure:876: m68k-coff-gcc
-B/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/ne
wlib/ -isystem
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/targ-include -isystem
/cygdrive/c/brucea/downloads/gcc/crossgcc/newlib-1.10.0/newlib/libc/include
-m68000 -o conftest -g -O2   conftest.c  1>&5
/cygdrive/c/gccm68k/bin/../lib/gcc-lib/m68k-coff/3.2/m68000/libgcc.a(__main.
o): In function `__do_global_dtors':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-gcc-core/gcc/../../gcc-3.2-c
ore/gcc/libgcc2.c:1900: undefined reference to `__EH_FRAME_BEGIN__'
/cygdrive/c/gccm68k/bin/../lib/gcc-lib/m68k-coff/3.2/m68000/libgcc.a(__main.
o): In function `__do_global_ctors':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-gcc-core/gcc/../../gcc-3.2-c
ore/gcc/libgcc2.c:1916: undefined reference to `__EH_FRAME_BEGIN__'
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc.a(abort.o): In function `abort':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc/stdlib/../../../../../../newlib-1.10.0/newlib/libc/stdlib/abort.c:63
: undefined reference to `_exit'
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc.a(signalr.o): In function `_kill_r':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc/reent/../../../../../../newlib-1.10.0/newlib/libc/reent/signalr.c:61
: undefined reference to `kill'
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc.a(signalr.o): In function `_getpid_r':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc/reent/../../../../../../newlib-1.10.0/newlib/libc/reent/signalr.c:96
: undefined reference to `getpid'
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc.a(sbrkr.o): In function `_sbrk_r':
/cygdrive/c/brucea/downloads/gcc/crossgcc/build-newlib/m68k-coff/m68000/newl
ib/libc/reent/../../../../../../newlib-1.10.0/newlib/libc/reent/sbrkr.c:60:
undefined reference to `sbrk'
collect2: ld returned 1 exit status
configure: failed program was:

#line 871 "configure"
#include "confdefs.h"

main(){return(0);}




============================================================================
 Any opinions expressed in this e-mail are those of the individual and not
 necessarily those of Tyco Electronic Product Group.

 Any prices for the supply of goods or services are only valid if supported
 by a formal written quotation.

 This e-mail and any files transmitted with it, including replies and
 forwarded copies (which may contain alterations) subsequently transmitted
 from Tyco Electronic Product Group are confidential and solely for the use
 of the intended recipient.

 If you are not the intended recipient or the person responsible for
 delivery to the intended recipient, be advised that you have received this
 e-mail in error and that any use is strictly prohibited.  In this event,
 please notify us via e-mail at 'helpdesk.tepg@tycoint.com' or telephone on 
 0121 255 6499 and then delete the e-mail and any copies of it.
============================================================================






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