Re: Trouble Building cross m68k-elf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kai Ruottu wrote, On 05/19/2014 12:18 PM:

The earlier logfile seems to tell your newbie-mistake :

configure:11134: checking for as
configure:11167: result: no
configure:11245: checking for m68k-elf-as
configure:11275: result: no

  So the answer to your second question is that of course you must first
build GNU
binutils, including 'as', which will understand the m68k architecture,
not only
the host x86_64 CPU architecture!



Yes, I'm definitely making newbie mistakes!

Now, I've built the m68k-elf bintools and the cross gcc build gets a lot further. However, know it gets stuck in libssp, details below.

I'm thinking that its not picking up the right header files.

$ /big/objdir/m68k-elf/libssp$ make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/big/gcc-4.8.2/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/bash" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "includedir=/usr/local/include" "AR=/usr/local/m68k-elf/bin/ar" "AS=as" "CC=/big/objdir/./gcc/xgcc -B/big/objdir/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-elf/lib/ -isystem /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-include " "CXX=g++" "LD=/big/objdir/./gcc/collect-ld" "LIBCFLAGS=" "NM=/big/objdir/./gcc/nm" "PICFLAG=" "RANLIB=/usr/local/m68k-elf/bin/ranlib" "DESTDIR=" all-am
make[1]: Entering directory `/big/objdir/m68k-elf/libssp'
/bin/bash ./libtool --tag=CC --mode=compile /big/objdir/./gcc/xgcc -B/big/objdir/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-elf/lib/ -isystem /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.8.2/libssp -Wall -g -O2 -MT ssp.lo -MD -MP -MF .deps/ssp.Tpo -c -o ssp.lo ../../../gcc-4.8.2/libssp/ssp.c libtool: compile: /big/objdir/./gcc/xgcc -B/big/objdir/./gcc/ -B/usr/local/m68k-elf/bin/ -B/usr/local/m68k-elf/lib/ -isystem /usr/local/m68k-elf/include -isystem /usr/local/m68k-elf/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.8.2/libssp -Wall -g -O2 -MT ssp.lo -MD -MP -MF .deps/ssp.Tpo -c ../../../gcc-4.8.2/libssp/ssp.c -o ssp.o
../../../gcc-4.8.2/libssp/ssp.c: In function ‘__guard_setup’:
../../../gcc-4.8.2/libssp/ssp.c:78:3: warning: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
   fd = open ("/dev/urandom", O_RDONLY);
   ^
../../../gcc-4.8.2/libssp/ssp.c:78:30: error: ‘O_RDONLY’ undeclared (first use in this function)
   fd = open ("/dev/urandom", O_RDONLY);
                              ^
../../../gcc-4.8.2/libssp/ssp.c:78:30: note: each undeclared identifier is reported only once for each function it appears in
../../../gcc-4.8.2/libssp/ssp.c:81:7: error: unknown type name ‘ssize_t’
       ssize_t size = read (fd, &__stack_chk_guard,
       ^
../../../gcc-4.8.2/libssp/ssp.c:81:7: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration] ../../../gcc-4.8.2/libssp/ssp.c:83:7: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
       close (fd);
       ^
../../../gcc-4.8.2/libssp/ssp.c: At top level:
../../../gcc-4.8.2/libssp/ssp.c:97:25: error: unknown type name ‘size_t’
 fail (const char *msg1, size_t msg1len, const char *msg3)
                         ^
../../../gcc-4.8.2/libssp/ssp.c: In function ‘__stack_chk_fail’:
../../../gcc-4.8.2/libssp/ssp.c:169:3: warning: implicit declaration of function ‘fail’ [-Wimplicit-function-declaration]
   fail (msg, strlen (msg), "stack smashing detected: terminated");
   ^
../../../gcc-4.8.2/libssp/ssp.c:169:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] ../../../gcc-4.8.2/libssp/ssp.c:169:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
   fail (msg, strlen (msg), "stack smashing detected: terminated");
              ^
../../../gcc-4.8.2/libssp/ssp.c: In function ‘__chk_fail’:
../../../gcc-4.8.2/libssp/ssp.c:176:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
   fail (msg, strlen (msg), "buffer overflow detected: terminated");
              ^
make[1]: *** [ssp.lo] Error 1
make[1]: Leaving directory `/big/objdir/m68k-elf/libssp'
make: *** [all] Error 2








[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux