* [LinuxPPC] cross compiler, compiling
@ 1999-03-28 5:49 Trevor Woerner
1999-03-28 17:04 ` David Edelsohn
0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 1999-03-28 5:49 UTC (permalink / raw)
To: Users LinuxPPC, Developer LinuxPPC, Fred Fish
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:
>*** (1) *********************************************************************
>first error from "make cross" trying to build cross-egcs
>
>../../../egcs-1.1.1/libiberty/strerror.c:461: conflicting types for
>`sys_errlist'
>/usr/local/ppc/powerpc-linux/sys-include/stdio.h:216: previous declaration
>of `sys_errlist'
>
>--- file: strerror.c -------- line 458 ----------------------------
>#ifndef HAVE_SYS_ERRLIST
>
>static int sys_nerr;
>static const char **sys_errlist;
>
>#else
>
>--- file: stdio.h ----------- line 276 ----------------------------
>#ifdef __USE_BSD
>extern int sys_nerr;
>extern const char *const sys_errlist[];
>#endif
>#ifdef __USE_GNU
>extern int _sys_nerr;
>extern const char *const _sys_errlist[];
>#endif
>
>first off, why (in stdio.h) am i getting code from inside a #ifdef
>block for __USE_BSD? shouldn't __USE_BSD be undefined and instead
>shouldn't __USE_GNU be defined?
>
>in my ignorance i change strerror.c to match what is in stdio.h
>
>this leads to more problems so i reverse the changes and leave
>strerror.c the way it was and modify stdio.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: argument `signo' doesn't
>match prototype
>/usr/local/ppc/powerpc-linux/sys-include/signal.h:83: prototype declaration
>../../../egcs-1.1.1/libiberty/strsignal.c:589: argument `message' 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, __const char *__s));
>
>changed signal.h
>
>compile 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
>directory
>
>file found in ${INCLUDE_DIR}/g++, copy (-i) most everything from g++ subdir
>to its parent
>
>compile continues... SUCCESS!!
>
>*** (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. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LinuxPPC] cross compiler, compiling
@ 1999-03-28 17:03 Trevor Woerner
1999-03-28 18:15 ` David Edelsohn
1999-03-31 14:24 ` puetzk6715
0 siblings, 2 replies; 5+ messages in thread
From: Trevor Woerner @ 1999-03-28 17:03 UTC (permalink / raw)
To: David Edelsohn; +Cc: Users LinuxPPC, Developer LinuxPPC, Fred Fish
> Without describing the directory structure for the cross-tools
>source and how it was configured, it is hard to diagnose what might be
>wrong.
would it be enough to say:
target=powerpc-linux
prefix=/usr/local/ppc
includes=/usr/local/ppc/linuxppc-includes/
libraries=/usr/local/ppc/linuxppc-lib
cpu=603e
root# ../egcs-1.1.1/configure --target=$target --prefix=$prefix \
--enable-shared --enable-haifa --with-gnu-as --with-gnu-ld \
--with-headers=$includes --with-libs=$libraries --with-newlib \
--with-cpu=$cpu -v &> configure.log
for the includes i went to my LinuxPPC installation and took everything
from /usr/includes, resolved all links and removed obvious stuff like
X11, for the libs i took everything from /lib and /usr/lib, resolved
all references (which were almost always from /usr/lib to /lib) but
preserved the shared-library version links.
does that help? oh by the way my LinuxPPC kernel was compiled from the
Linux 2.2.1 sources. previous to doing this i had recompiled egcs 1.1.1
and binutils 2.9.1-19b on my x86; on the ppc i just installed the rpms
from Gary Thomas.
please don't hesitate to mention if i forgot anything else.
best regards,
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. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LinuxPPC] cross compiler, compiling
1999-03-28 5:49 [LinuxPPC] cross compiler, compiling Trevor Woerner
@ 1999-03-28 17:04 ` David Edelsohn
0 siblings, 0 replies; 5+ messages in thread
From: David Edelsohn @ 1999-03-28 17:04 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Users LinuxPPC, Developer LinuxPPC, Fred Fish
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. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LinuxPPC] cross compiler, compiling
1999-03-28 17:03 Trevor Woerner
@ 1999-03-28 18:15 ` David Edelsohn
1999-03-31 14:24 ` puetzk6715
1 sibling, 0 replies; 5+ messages in thread
From: David Edelsohn @ 1999-03-28 18:15 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Users LinuxPPC, Developer LinuxPPC, Fred Fish
Did you combine egcs, binutils, and newlib directories together?
You should not use newlib if you are intending to create a LinuxPPC
cross-compiler. You need to point the configuration at the LinuxPPC
headers and libraries.
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. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LinuxPPC] cross compiler, compiling
1999-03-28 17:03 Trevor Woerner
1999-03-28 18:15 ` David Edelsohn
@ 1999-03-31 14:24 ` puetzk6715
1 sibling, 0 replies; 5+ messages in thread
From: puetzk6715 @ 1999-03-31 14:24 UTC (permalink / raw)
To: Trevor Woerner
Cc: David Edelsohn, Users LinuxPPC, Developer LinuxPPC, Fred Fish
Yes - if you're building to LInuxPPC R4, you need to use Gary's SRPMS to
build the cross-compiler, to get fixes for some glibc-1.99 oddity's.
At leat, I htink this is still needed.
On Sun, 28 Mar 1999, Trevor Woerner wrote:
> please don't hesitate to mention if i forgot anything else.
>
> best regards,
> 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. ]]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-03-31 14:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-28 5:49 [LinuxPPC] cross compiler, compiling Trevor Woerner
1999-03-28 17:04 ` David Edelsohn
-- strict thread matches above, loose matches on Subject: below --
1999-03-28 17:03 Trevor Woerner
1999-03-28 18:15 ` David Edelsohn
1999-03-31 14:24 ` puetzk6715
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 NNTP newsgroup(s).