Hugh Sasse Staff Elec Eng
2004-Jul-19 10:04 UTC
[Fxruby-users] My fox build segfaults on Solaris 9 gcc.
On Wed, 7 Jul 2004, Hugh Sasse Staff Elec Eng wrote:> On Tue, 6 Jul 2004, jeroen wrote: > >> On Tuesday 06 July 2004 10:26 am, Hugh Sasse Staff Elec Eng wrote: >>> The last thing I get on building the Fox library is >>> >>> g++ -shared FX4Splitter.lo FXAccelTable.lo FXApp.lo >>> FXArrowButton.lo FXBMPIcon.lo FXBMPImage.lo FXBitmap.lo > [....] >>> -ldl -lpthread -ljpeg -lpng -lz -lbz2 -lm -lGL -lGLU -lc >>> -Wl,-soname -Wl,libFOX-1.2.so.0 -o .libs/libFOX-1.2.so.0.0.6 >>> collect2: ld terminated with signal 11 [Segmentation Fault], core >>> dumped >>> gmake[1]: *** [libFOX-1.2.la] Error 1 >>> gmake[1]: Leaving directory `/export/home/Scratch/hgs/fox-1.2.6/src'' >>> gmake: *** [all-recursive] Error 1 >>> >> I keep up with FOX compiling on SUN; it should compile out of the >> box using SUN''s own compiler. If you have a problem with compiling > > I''ll give that a go, but Ruby compiles with GCC, so will the > libraries interoperate? There are dire warnings about this in the > changes docs for GCC, and I don''t know enough to test for the > ramificiations in any particular case. >OK, here is what I did #!/bin/sh -vx # vim:sw=2 for ld in /usr/ccs/bin/ld /usr/ucb/ld /usr/local/bin/ld do LD=$ld export LD for cc in gcc /progs/SUNWspro/bin/cc /usr/ucb/cc do CC=$cc export CC for cxx in g++ CC do CXX=$cxx export CXX for make in gmake make do MAKE=$make export MAKE $MAKE distclean ./configure && $MAKE && ( echo $LD $CC $CXX $MAKE >> build.sh.out ) done done done done and the results are: /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make /usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ucb/ld /progs/SUNWspro/bin/cc g++ make /usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake /usr/ucb/ld /progs/SUNWspro/bin/cc CC make /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make # Then with freshly built gcc-3.4.1... /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make /usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ucb/ld /progs/SUNWspro/bin/cc g++ make /usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake /usr/ucb/ld /progs/SUNWspro/bin/cc CC make /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make # Then with /usr/local/lib/sparcv9 added to the path. /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc g++ make /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC gmake /usr/ccs/bin/ld /progs/SUNWspro/bin/cc CC make /usr/ucb/ld /progs/SUNWspro/bin/cc g++ gmake /usr/ucb/ld /progs/SUNWspro/bin/cc g++ make /usr/ucb/ld /progs/SUNWspro/bin/cc CC gmake /usr/ucb/ld /progs/SUNWspro/bin/cc CC make /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ gmake /usr/local/bin/ld /progs/SUNWspro/bin/cc g++ make Basically it never build successfully with gcc. When I rebuilt GCC I build it with Sun''s tools in preference to the existing GCC which didn''t work for Fox. I''m somewhat stuck now. Any suggestions on how to proceed? Hugh
Hugh Sasse Staff Elec Eng
2004-Jul-19 10:43 UTC
[Fxruby-users] My fox build segfaults on Solaris 9 gcc.
Excuse me following up to myself, and so quickly: On Mon, 19 Jul 2004, Hugh Sasse Staff Elec Eng wrote:> > OK, here is what I did >Concurrently with this I''ve been posting to the GCC list about a doc fix, which I now know isn''t needed. I need to rebuild GCC with /bin/ksh instaead of /bin/sh and this should fix problems in libstdc++-v3 and other places that I didn''t know about. I''ll let you know the outcome of this. Hugh
Possibly Parallel Threads
- build failure solaris9x86 with Studio9 (forte)
- Please help: Compiling/configuring OpenSSH on SunOS 5.5.1 with AFS
- openssh 2.9p1 on Solaris 2.6 with AFS
- [Bug 277] New: X11 forwarding problem behind Router/NAT box
- Solaris 10 x64 Compiling issues with Sun Studio 12