EGCS 1.1.1 FYI
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Paul J Schinder" writes:
Paul> So are Gary Thomas' patches still necessary?
The trampoline patch now has become a shared library compatibility
issue for glibc-1.99 support. It only is necessary until LinuxPPC cuts over to glibc-2.1 which will require other binary incompatible changes at the same time.
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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"David" == David Edelsohn <[email protected]> writes:
"Paul J Schinder" writes:
Paul> So are Gary Thomas' patches still necessary?
David> The trampoline patch now has become a shared library
David> compatibility issue for glibc-1.99 support. It only is David> necessary until LinuxPPC cuts over to glibc-2.1 which will David> require other binary incompatible changes at the same time.
Can someone clarify where the problem is exact with native egcs and libc-1.99 ? I use egcs-1.1.1 since the weekend and it seems to work fine. I had no trouble to build some shared lib stuff like in the latest jade or sgml-tools. This packages didn't compile with older version I tried (also Gary's egcs-1.1b), but that were generell compiler issues, I think.
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
Had someone luck to run a recent version of Mozilla at all on LinuxPPC ?
Thanks,
Ralf
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Quoted 10 lines · Ralf Weidemann
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"David" == David Edelsohn <[email protected]> writes:
"Paul J Schinder" writes:Paul> So are Gary Thomas' patches still necessary?
David> The trampoline patch now has become a shared library
David> compatibility issue for glibc-1.99 support. It only is David> necessary until LinuxPPC cuts over to glibc-2.1 which will David> require other binary incompatible changes at the same time.
Quoted 6 lines
Can someone clarify where the problem is exact with native egcs and libc-1.99 ? I use egcs-1.1.1 since the weekend and it seems to work fine. I had no trouble to build some shared lib stuff like in the latest jade or sgml-tools. This packages didn't compile with older version I tried (also Gary's egcs-1.1b), but that were generell compiler issues, I think.
There is a difference of opinion on the difference of the size of the instruction block for trampolines coupled with a coding error in the trampoline support module. Some version of the compiler other than the egcs/fsf compiler has upped the size of the trampolines to be larger than the 40 bytes checked for, and the tramp.asm module check for too small of a block aborts due to the test being backwards. If you don't use trampolines (including running the compiler testsuite), you won't see the problem. If you don't know what trampolines are then you probably aren't using them.
<arrogant opinion>
Trampolines are a botch, and I have encounted problems with them in just above every single GCC platform I have worked on in the last 9 years, but RMS loves them, so they have remained. What they are is a chunk of stack that the compiler puts instructions to load up the static chain, and jump to the real function in the location. This address is then passed when you take the address of a nested (lexically scoped) function.
</arrogant opinion>
Quoted 5 lines
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
If SeaMonkeyBrowser calls through a trampoline inside of static constructors, then yes, this is a symptom.
Signature · 8 lines
Michael Meissner, Cygnus Solutions (Massachusetts office) 4th floor, 955 Massachusetts Avenue, Cambridge, MA 02139, USA [email protected], 617-354-5416 (office), 617-354-7161 (fax) [[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Quoted 5 lines · jeramy
Cygnus released 1.1.1 on Dec. 1 with the following PPC specific improvements.
Quoted 7 lines
Fixed PPC/RS6000
LEGITIMIZE_ADDRESSmacro and bug in conversion from unsigned ints to double precision floats.
Fixed handling of long longs for varargs/stdarg functions on the ppc. Fixed code generation problems with gpr<->fpr copies for 64bit ppc. Makes sure target libraries build with -fPIC for PPC targets.Good to see this much platform specific progress in a x.x.1 release. :)
So are Gary Thomas' patches still necessary? I downloaded his src rpm and applied the patches that would apply to 1.1.1. As I recall, one said it was aIready there, and a couple applied with offsets. I didn't use the rpm itself because after bootstrapping the compiler and running make check the Fortran compiler failed most of its tests, and I need a working Fortran compiler. (And I nearly gave up on the rpm before stumbling across the gperf patch in the contrib directory.) The make check on 1.1.1 failed fewer tests than any egcs build I've done. I'm not that interested in building kernels, but I do need working Fortran. I'm using 2.1.127 and glibc-1.99 on a Performa 6400.
-------
Paul J. Schinder
[email protected]
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
FYI, I get the same problem with glibc-2.0.104... I have an strace, last 50 lines are attached... No time to do anything anymore... <sigh>
-Rob
Quoted 28 lines · Ralf Weidemann
Date: Mon, 7 Dec 1998 23:22:42 +0100 (CET)
From: Ralf Weidemann <[email protected]>
To: LinuxPPC Dev <[email protected]>
Subject: Re: EGCS 1.1.1 FYIQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"David" == David Edelsohn <[email protected]> writes:
"Paul J Schinder" writes:Paul> So are Gary Thomas' patches still necessary?
David> The trampoline patch now has become a shared library
David> compatibility issue for glibc-1.99 support. It only is David> necessary until LinuxPPC cuts over to glibc-2.1 which will David> require other binary incompatible changes at the same time.Can someone clarify where the problem is exact with native egcs and libc-1.99 ? I use egcs-1.1.1 since the weekend and it seems to work fine. I had no trouble to build some shared lib stuff like in the latest jade or sgml-tools. This packages didn't compile with older version I tried (also Gary's egcs-1.1b), but that were generell compiler issues, I think.
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
Quoted 9 lines
Had someone luck to run a recent version of Mozilla at all on LinuxPPC ?
Thanks,
Ralf
fcntl(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(5, F_GETFL) = 0x1 (flags O_WRONLY)
fcntl(5, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
brk(0) = 0x1877000
brk(0x1878000) = 0x1878000
SYS_173(0xd, 0x7fffe408, 0, 0x8, 0x20) = 0
SYS_173(0xe, 0x7fffe408, 0, 0x8, 0x20) = 0
open("/root/.mozilla/cookies", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/root/.mozilla/index.db", 0x7ffff298) = -1 ENOENT (No such file or directory)
stat("/root/.mozilla/index.db", 0x7ffff298) = -1 ENOENT (No such file or directory)
brk(0) = 0x1878000
brk(0x1879000) = 0x1879000
brk(0) = 0x1879000
brk(0x187a000) = 0x187a000
brk(0) = 0x187a000
brk(0x187b000) = 0x187b000
brk(0) = 0x187b000
brk(0x187c000) = 0x187c000
brk(0) = 0x187c000
brk(0x187d000) = 0x187d000
brk(0) = 0x187d000
brk(0x187e000) = 0x187e000
brk(0) = 0x187e000
brk(0x187f000) = 0x187f000
brk(0) = 0x187f000
brk(0x1880000) = 0x1880000
brk(0) = 0x1880000
brk(0x1881000) = 0x1881000
brk(0) = 0x1881000
brk(0x1882000) = 0x1882000
brk(0) = 0x1882000
brk(0x1883000) = 0x1883000
brk(0) = 0x1883000
brk(0x1884000) = 0x1884000
brk(0) = 0x1884000
brk(0x1885000) = 0x1885000
brk(0) = 0x1885000
brk(0x1886000) = 0x1886000
brk(0) = 0x1886000
brk(0x1887000) = 0x1887000
brk(0) = 0x1887000
brk(0x1888000) = 0x1888000
brk(0) = 0x1888000
brk(0x1889000) = 0x1889000
brk(0) = 0x1889000
brk(0x188a000) = 0x188a000
brk(0) = 0x188a000
brk(0x188b000) = 0x188b000--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
In <[email protected]>
Michael Meissner <[email protected]> wrote:test being backwards. If you don't use trampolines (including running the compiler testsuite), you won't see the problem. If you don't know what trampolines are then you probably aren't using them.
glibc-0.961212 uses trampolines for the nsswitch-based name resolver functions (e.g., gethostbyname()). If you use an unpatched egcs-1.1.1 to compile a program using one of those routines, the program will crash on that call.
--Elgin
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Quoted 17 lines · Ralf Weidemann
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"David" == David Edelsohn <[email protected]> writes:
"Paul J Schinder" writes:Paul> So are Gary Thomas' patches still necessary?
David> The trampoline patch now has become a shared library
David> compatibility issue for glibc-1.99 support. It only is David> necessary until LinuxPPC cuts over to glibc-2.1 which will David> require other binary incompatible changes at the same time.Can someone clarify where the problem is exact with native egcs and libc-1.99 ? I use egcs-1.1.1 since the weekend and it seems to work fine. I had no trouble to build some shared lib stuff like in the latest jade or sgml-tools. This packages didn't compile with older version I tried (also Gary's egcs-1.1b), but that were generell compiler issues, I think.
Quoted 8 lines
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
Had someone luck to run a recent version of Mozilla at all on LinuxPPC ?
No. There's a bug that at least one person (Anthony Tong) is working on finding, something with the shared libraries, I think. SeaMonkey has its own set of problems, in addition - I recommend playing with classic mozilla instead.
Dan
/--------------------------------\ /--------------------------------\
| Daniel Jacobowitz |__| CMU, CS class of 2002 | | Debian GNU/Linux Developer __ Part-Time Systems Programmer | | [email protected] | | [email protected] | \--------------------------------/ \--------------------------------/
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
I've tried compiling the mozilla code too, but it aborts due to a failing dynamic linking call in normal startup code... it's particularly odd, as it's trying to dlopen a file with a name parameter of NULL, and it's not even trying to hide it (the last code I saw had a dlopen(NULL,...). I'm *guessing* that on other Linux platforms, such code is well-defined, perhaps to use the "current executable file" to do the opening, or something...but I'm not sure...still kinda odd to me...
-David
Quoted 4 lines · On Mon, 7 Dec 1998 [email protected] wrote:
FYI, I get the same problem with glibc-2.0.104... I have an strace, last 50 lines are attached... No time to do anything anymore... <sigh>
-Rob
Quoted 40 lines
Quoted 37 lines · Ralf Weidemann
Date: Mon, 7 Dec 1998 23:22:42 +0100 (CET)
From: Ralf Weidemann <[email protected]>
To: LinuxPPC Dev <[email protected]>
Subject: Re: EGCS 1.1.1 FYIQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"David" == David Edelsohn <[email protected]> writes:
"Paul J Schinder" writes:Paul> So are Gary Thomas' patches still necessary?
David> The trampoline patch now has become a shared library
David> compatibility issue for glibc-1.99 support. It only is David> necessary until LinuxPPC cuts over to glibc-2.1 which will David> require other binary incompatible changes at the same time.Can someone clarify where the problem is exact with native egcs and libc-1.99 ? I use egcs-1.1.1 since the weekend and it seems to work fine. I had no trouble to build some shared lib stuff like in the latest jade or sgml-tools. This packages didn't compile with older version I tried (also Gary's egcs-1.1b), but that were generell compiler issues, I think.
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
Had someone luck to run a recent version of Mozilla at all on LinuxPPC ?
Thanks,
Ralf
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David T. McWherter [email protected]
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Quoted 11 lines · On 08-Dec-98 Michael Meissner wrote:
Quoted 5 lines · Ralf Weidemann
But on the other side I also tried to run the SeaMonkeyBrowser (Mozilla) from recent cvs-sources. Building went fine, but the beast didn't run. I get only a simple "Aborted" message on the console and it seems to crash somewhere in the startup code. So maybe this is somehow related ?
If SeaMonkeyBrowser calls through a trampoline inside of static constructors, then yes, this is a symptom.
I'm sure that the problem is here. If you've built code with a compiler that *does not have* the trampoline patch (which is what I think you've done with Mozilla) then the startup for 'libstdc++' will fail (amoung others).
I've built a new EGCS-1.1.1 which can be used with existing code until the new GLIBC-2.1.xx is ready. You can get this from:
ftp://ftp.linuxppc.org/pub/gary/redhat/RPMS/ppc
Pick up the 'egcs-1.1-1b*' packages.
------------------------------------------------------------------------
Gary Thomas | email: [email protected] | "Fine wine is a necessity of ... opinions expressed here are mine | life for me" and no one else would claim them! | | Thomas Jefferson
------------------------------------------------------------------------
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Compiler porblems
In reply to David T. McWherterHi all
I've some problem compiling c++ apps under linuxppc with egcs.1.0.2 prerelease:
during compiling this code
"#include <iostream.h>
main
{
} "gcc output are a long series of warnings: invalid type 'void *' for default argument to 'ostream *'
When compiling some applications (that compile fine with gcc 2.8.1 under Intel/Linux) like MidsEye gcc results in internal compiler error, e.g:
In method 'void MatrixImage <float>::drawLine(int, int, int, int, float) Internal compiler error.
Is it a compiler bug or what?
Any suggestion? Note that this code compile under Intel/Linux box.
Thanks
Gianni.
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
RE: Compiler porblems
Quoted 13 lines · On 09-Dec-98 Giovanni Liotine wrote:
Hi all
I've some problem compiling c++ apps under linuxppc with egcs.1.0.2 prerelease:
during compiling this code
"#include <iostream.h>
main{ } "gcc output are a long series of warnings: invalid type 'void *' for default argument to 'ostream *'
Quoted 9 lines
When compiling some applications (that compile fine with gcc 2.8.1 under Intel/Linux) like MidsEye gcc results in internal compiler error, e.g:
In method 'void MatrixImage <float>::drawLine(int, int, int, int, float) Internal compiler error.
Is it a compiler bug or what?
Any suggestion? Note that this code compile under Intel/Linux box.
Try the latest EGCS-1.1.1 available at:
ftp://ftp.linuxppc.org/pub/gary/redhat/RPMS/ppc
Pick up the 'egcs-*1.1-1b*' packages. These are suitable for existing Linux/PPC (pre GLIBC-2.1.xx) systems.
------------------------------------------------------------------------
Gary Thomas | email: [email protected] | "Fine wine is a necessity of ... opinions expressed here are mine | life for me" and no one else would claim them! | | Thomas Jefferson
------------------------------------------------------------------------
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]
Re: Compiler porblems
In reply to Giovanni LiotineWorks fine for me with egcs 1.1.1 and glibc-2.1.104 (linuxppc-pre5 or such). That is, after I changed that from "main" to "main ()" :-)
-Rob H.
Quoted 4 lines · Giovanni Liotine
Date: Wed, 9 Dec 1998 13:36:33 +0100 (CET)
From: Giovanni Liotine <[email protected]>
To: [email protected]
Cc: [email protected], Ralf Weidemann <[email protected]>,
Quoted 17 lines
Subject: Compiler porblems
Hi all
I've some problem compiling c++ apps under linuxppc with egcs.1.0.2 prerelease:
during compiling this code
"#include <iostream.h>
main{ } "gcc output are a long series of warnings: invalid type 'void *' for default argument to 'ostream *'
When compiling some applications (that compile fine with gcc 2.8.1 under Intel/Linux) like MidsEye gcc results in internal compiler error, e.g:
Quoted 9 lines
In method 'void MatrixImage <float>::drawLine(int, int, int, int, float) Internal compiler error.
Is it a compiler bug or what?
Any suggestion? Note that this code compile under Intel/Linux box.Thanks
Gianni.
[[ 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. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]