public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
[parent not found: <199709100139.SAA07609@cygnus.com>]
* Re: Shared C++ libs on i386-pc-solaris2.5.1
@ 1997-09-07  5:42 James Macnicol
  1997-09-07 10:11 ` H.J. Lu
  0 siblings, 1 reply; 9+ messages in thread
From: James Macnicol @ 1997-09-07  5:42 UTC (permalink / raw)
  To: egcs

>        Has anyone managed to build egcs under Solaris x86 2.5.1?
>        I cannot get any shared C++ libraries to link (including the
>        libstdc++.so that is built as part of the distribution -- see below),
>
>Looks like this is a bug in the gcc x86/solaris support.  The shared library
>support is not completely correct (a common problem).  I do not have access
>to such a system, so I can't be sure what the correct fix is.  However, just
>comparing against the sparc/solaris support, I am guessing that libgcc.a was
>not compiled PIC.
>
>Does this patch solve your problem?

	Sure does.  Thanks!

	I have now successfully built egcs 970904 on Solaris x86 2.5.1.  Some
comments/observations I have are :

-	I had problems with compiling a certain file in my current project
since the machine would start thrashing and eventually say "virtual
memory
exhausted".  I traced it to a C++ header file which had an inline member
function; moving that out of the header and into the implementation
solved
the problem.  On a better note, this project now builds without the
internal
compiler errors it has with gcc 2.7.2.2.

-	Doing make -j4 MAKE="make -j4" for the egcs build (i.e. a parallel
build)
still causes problems although it seems better than the previous
releases I
tried to build.

-	Tcl 8.0 will not build with egcs-970904 since "__ctype" is not found
by
the linker.  Tcl 8.0 compiles fine with gcc 2.7.2.2.



Thanks.


James


--
James Macnicol
J.Macnicol@student.anu.edu.au
http://goblet.anu.edu.au/~m9305357/home.html

^ permalink raw reply	[flat|nested] 9+ messages in thread
* egcs 970828 and X11 on linux/x86
@ 1997-08-31  2:07 H.J. Lu
  1997-08-31 13:17 ` Shared C++ libs on i386-pc-solaris2.5.1 James Macnicol
  0 siblings, 1 reply; 9+ messages in thread
From: H.J. Lu @ 1997-08-31  2:07 UTC (permalink / raw)
  To: egcs

Hi,

On linux/x86, I bootstapped egcs 970828 with -O -g and used that egcs
to compile egcs with -O6 -fomit-frame-pointer. Then I used that
compiler to compile XFree86 3.3.1 with -O6 -fno-exceptions. I didn't
see any problems with the rebuilt XFree86 3.3.1.

BTW, I applied Jim's patch to i386.c:

Wed Aug 27 14:52:54 1997  Jim Wilson  

	* i386.c (ix86_expand_epilogue): Emit blockage instruction when pic.

Without it, shared libraries may be miscompiled with -O2/-O3 or above.

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1997-09-11 13:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <34096EF5.5768EC4F@student.anu.edu.au>
1997-09-04 15:05 ` Shared C++ libs on i386-pc-solaris2.5.1 Jim Wilson
1997-09-04 16:55   ` Jeffrey A Law
     [not found] <199709100139.SAA07609@cygnus.com>
1997-09-09 19:54 ` James Macnicol
1997-09-10 22:37 ` James Macnicol
1997-09-11 10:01   ` Jeffrey A Law
1997-09-11 13:20     ` Richard Henderson
1997-09-07  5:42 James Macnicol
1997-09-07 10:11 ` H.J. Lu
  -- strict thread matches above, loose matches on Subject: below --
1997-08-31  2:07 egcs 970828 and X11 on linux/x86 H.J. Lu
1997-08-31 13:17 ` Shared C++ libs on i386-pc-solaris2.5.1 James Macnicol

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 read-only IMAP folder(s) and NNTP newsgroup(s).