cross compiler, compiling
Dear Friends,
following is a log i created for myself while compiling a powerpc cross compiler on an i586. i used:
binutils-2.9.1
egcs-1.1.1
newlib-1.8.1
also, i was wondering, i compiled newlib (as indicated above) but i was wondering if i should also compile glib for this cross compiler? if i did compile both wouldn't the second one overwrite the files from the first one?
i know you're all rather busy, but could someone *please* comment on the errors, especially the last (fourth) one.
here's the log:
Quoted 74 lines
*** (1) ********************************************************************* first error from "make cross" trying to build cross-egcs
../../../egcs-1.1.1/libiberty/strerror.c:461: conflicting types forsys_errlist' /usr/local/ppc/powerpc-linux/sys-include/stdio.h:216: previous declaration ofsys_errlist'--- file:
strerror.c-------- line 458 ---------------------------- #ifndefHAVE_SYS_ERRLISTstatic int
sys_nerr;
static const char **sys_errlist;#else
--- file:
stdio.h----------- line 276 ---------------------------- #ifdef__USE_BSD
extern intsys_nerr;
extern const char *const sys_errlist[];
#endif
#ifdef__USE_GNU
extern int_sys_nerr;
extern const char *const _sys_errlist[];
#endiffirst off, why (in
stdio.h) am i getting code from inside a #ifdef block for__USE_BSD? shouldn't__USE_BSDbe undefined and instead shouldn't__USE_GNUbe defined?in my ignorance i change
strerror.cto match what is instdio.hthis leads to more problems so i reverse the changes and leave
strerror.cthe way it was and modifystdio.h
this seems to fix that problem, compile continues...*** (2) ********************************************************************* second error
../../../egcs-1.1.1/libiberty/strsignal.c: In function `psignal':../../../egcs-1.1.1/libiberty/strsignal.c:589: argumentsigno' doesn't match prototype /usr/local/ppc/powerpc-linux/sys-include/signal.h:83: prototype declaration ../../../egcs-1.1.1/libiberty/strsignal.c:589: argumentmessage' doesn't match prototype/usr/local/ppc/powerpc-linux/sys-include/signal.h:83: prototype declaration--- file:
strsignal.c------- line 585 ---------------------------- void
psignal (signo, message)unsigned signo; char *message;--- file:
signal.h---------- line 083 ---------------------------- extern void psignal__P((int__sig,__constchar*__s));changed
signal.hcompile continues...
*** (3) ********************************************************************* In file included from
../../../egcs-1.1.1/libio/iolibio.h:1,from ../../../egcs-1.1.1/libio/libioP.h:40, from ../../../egcs-1.1.1/libio/iogetline.c:26:
../../../egcs-1.1.1/libio/libio.h:168:stdio-lock.h: No such file or directoryfile found in ${INCLUDE_DIR}/g++, copy (-i) most everything from g++ subdir to its parent
compile continues... SUCCESS!!
Quoted 7 lines
*** (4) ********************************************************************* problems installing: (make install LANGUAGES="c c++")
powerpc-linux-ranlib: error in loading shared libraries libc.so.6: ELF file data encoding not little-endian
so i'm not sure if it was installed sufficiently
best regards and thank you very much,
trevor woerner
------------------------------------------------------------
...Senior, for his first selection, will play "A Cup Of
Coffee, A Sandwich, And You" from the opera: Aida
--- Groucho Marx
The Cocoanuts, 1929
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Without describing the directory structure for the cross-tools
source and how it was configured, it is hard to diagnose what might be wrong.
David
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]