Re: Linking glib with gld in Irix
On Sat, 13 Aug 2005 15:22:20 -0500 Albert Chin <[EMAIL PROTECTED]> wrote: > On Fri, Aug 12, 2005 at 03:19:25PM +0200, Magnus Bergman wrote: > > > > That looked quite bad. But several Irix/mips issues has been fixed > > in GCC 4 I was told. The SGI compiler isn't without issues either. > > If I try to use it to compile GTK, the compiler segfaults. And if > > one compiles for the old 32bit ABI (which I sometimes need to do) > > it uses an old, outdated and unmaintained version of the compiler. > > There are certainly less issues with GCC according to my experience. > > We built gtk+-2.6.8 with MIPSpro 7.4.3m without any problems. I use version 7.3 so that's probably what's wrong. ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Fri, Aug 12, 2005 at 03:19:25PM +0200, Magnus Bergman wrote: > > That looked quite bad. But several Irix/mips issues has been fixed in > GCC 4 I was told. The SGI compiler isn't without issues either. If > I try to use it to compile GTK, the compiler segfaults. And if one > compiles for the old 32bit ABI (which I sometimes need to do) it uses > an old, outdated and unmaintained version of the compiler. There > are certainly less issues with GCC according to my experience. We built gtk+-2.6.8 with MIPSpro 7.4.3m without any problems. -- albert chin ([EMAIL PROTECTED]) ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Thu, 11 Aug 2005 14:51:36 -0500 Albert Chin <[EMAIL PROTECTED]> wrote: > On Wed, Aug 10, 2005 at 02:22:17PM +0200, Magnus Bergman wrote: > > On Tue, 9 Aug 2005 14:48:25 -0500 > > Albert Chin <[EMAIL PROTECTED]> wrote: > > > > > On Mon, Aug 08, 2005 at 03:41:19PM +0200, Magnus Bergman wrote: > > > > I have problems building glib (2.6.6) in Irix using GCC, gas > > > > and gld (no, I don't forget to use --with-gnu-ld). It fails > > > > then linking glib-genmarshal against glib because some symbols, > > > > including g_malloc cannot be found. Then I examine the glib > > > > library (using GNU objdump) I see than most symbols are marked > > > > hidden, for example: > > > > > > > > 60017e80 l F *ABS* .hidden IA__g_malloc > > > > > > > > While a few are not, for example: > > > > > > > > 600354bc g F *ABS* g_strcasecmp > > > > > > Is GNU ld even recommended for building GCC no IRIX? I don't > > > think so. GNU ld isn't feature-complete on IRIX: > > > http://sourceware.org/ml/binutils/2005-06/msg00621.html > > > > Yes, I'm well aware of that issue and had to hack around it. It > > happens every time you link to the thread library without linking > > to the mpi library (and if you DO link with the mpi library the > > same thing happens with another library and so on). But there are > > bigger issues then not using gld I think. And I think that gld has > > become the default linker for GCC on Irix recently. > > I think they're only recommending GNU as. You are probably right. > There are certainly issues with GCC 3.4+ with IRIX ld though. We've > run into one so far: > http://lists.gnu.org/archive/html/emacs-devel/2005-06/msg00488.html That looked quite bad. But several Irix/mips issues has been fixed in GCC 4 I was told. The SGI compiler isn't without issues either. If I try to use it to compile GTK, the compiler segfaults. And if one compiles for the old 32bit ABI (which I sometimes need to do) it uses an old, outdated and unmaintained version of the compiler. There are certainly less issues with GCC according to my experience. > > Do you know if these issues (of gld) are related? > > No idea. Why not try linking with /bin/ld to determine if the problem > is GCC or GNU ld? Yes, I will configure the next GCC version I install to use the native ld. (If that works with a multilib configuration which I need.) ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Wed, Aug 10, 2005 at 02:22:17PM +0200, Magnus Bergman wrote: > On Tue, 9 Aug 2005 14:48:25 -0500 > Albert Chin <[EMAIL PROTECTED]> wrote: > > > On Mon, Aug 08, 2005 at 03:41:19PM +0200, Magnus Bergman wrote: > > > I have problems building glib (2.6.6) in Irix using GCC, gas and gld > > > (no, I don't forget to use --with-gnu-ld). It fails then linking > > > glib-genmarshal against glib because some symbols, including > > > g_malloc cannot be found. Then I examine the glib library (using > > > GNU objdump) I see than most symbols are marked hidden, for example: > > > > > > 60017e80 l F *ABS* .hidden IA__g_malloc > > > > > > While a few are not, for example: > > > > > > 600354bc g F *ABS* g_strcasecmp > > > > Is GNU ld even recommended for building GCC no IRIX? I don't think so. > > GNU ld isn't feature-complete on IRIX: > > http://sourceware.org/ml/binutils/2005-06/msg00621.html > > Yes, I'm well aware of that issue and had to hack around it. It happens > every time you link to the thread library without linking to the mpi > library (and if you DO link with the mpi library the same thing > happens with another library and so on). But there are bigger issues > then not using gld I think. And I think that gld has become the > default linker for GCC on Irix recently. I think they're only recommending GNU as. There are certainly issues with GCC 3.4+ with IRIX ld though. We've run into one so far: http://lists.gnu.org/archive/html/emacs-devel/2005-06/msg00488.html > Do you know if these issues (of gld) are related? No idea. Why not try linking with /bin/ld to determine if the problem is GCC or GNU ld? -- albert chin ([EMAIL PROTECTED]) ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Tue, 9 Aug 2005 14:48:25 -0500 Albert Chin <[EMAIL PROTECTED]> wrote: > On Mon, Aug 08, 2005 at 03:41:19PM +0200, Magnus Bergman wrote: > > I have problems building glib (2.6.6) in Irix using GCC, gas and gld > > (no, I don't forget to use --with-gnu-ld). It fails then linking > > glib-genmarshal against glib because some symbols, including > > g_malloc cannot be found. Then I examine the glib library (using > > GNU objdump) I see than most symbols are marked hidden, for example: > > > > 60017e80 l F *ABS* .hidden IA__g_malloc > > > > While a few are not, for example: > > > > 600354bc g F *ABS* g_strcasecmp > > Is GNU ld even recommended for building GCC no IRIX? I don't think so. > GNU ld isn't feature-complete on IRIX: > http://sourceware.org/ml/binutils/2005-06/msg00621.html Yes, I'm well aware of that issue and had to hack around it. It happens every time you link to the thread library without linking to the mpi library (and if you DO link with the mpi library the same thing happens with another library and so on). But there are bigger issues then not using gld I think. And I think that gld has become the default linker for GCC on Irix recently. Do you know if these issues (of gld) are related? ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Mon, Aug 08, 2005 at 03:41:19PM +0200, Magnus Bergman wrote: > I have problems building glib (2.6.6) in Irix using GCC, gas and gld > (no, I don't forget to use --with-gnu-ld). It fails then linking > glib-genmarshal against glib because some symbols, including g_malloc > cannot be found. Then I examine the glib library (using GNU objdump) I > see than most symbols are marked hidden, for example: > > 60017e80 l F *ABS* .hidden IA__g_malloc > > While a few are not, for example: > > 600354bc g F *ABS* g_strcasecmp Is GNU ld even recommended for building GCC no IRIX? I don't think so. GNU ld isn't feature-complete on IRIX: http://sourceware.org/ml/binutils/2005-06/msg00621.html -- albert chin ([EMAIL PROTECTED]) ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Mon, 08 Aug 2005 10:59:15 -0400 Matthias Clasen <[EMAIL PROTECTED]> wrote: > On Mon, 2005-08-08 at 15:41 +0200, Magnus Bergman wrote: > > I have problems building glib (2.6.6) in Irix using GCC, gas and gld > > (no, I don't forget to use --with-gnu-ld). It fails then linking > > glib-genmarshal against glib because some symbols, including > > g_malloc cannot be found. Then I examine the glib library (using > > GNU objdump) I see than most symbols are marked hidden, for example: > > > > 60017e80 l F *ABS* .hidden IA__g_malloc > > > > While a few are not, for example: > > > > 600354bc g F *ABS* g_strcasecmp > > > > I have no idea what that means. I guess it's the reason for the > > failure, but why does it happen? Is it some feature that doesn't > > work as expected on irix, or does it expect some irix feature not > > supported by gld maybe? > > What gcc version is that ? Does it support visibility attributes ? > Does configure think it supports visibility ? Does configuring with > --disable-visibility help ? --disable-visibility made it work. Thanks! The version of gcc is 3.4.0. It seems to me like the compiler supports the feature just fine (which the configure script detects correctly). But that the linker (gld 2.15) doesn't. Perhaps it is as easy as upgrading binutils (I will try that later). At least we can rule out that any part of glib (including the configure script) is to blame, right? ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: Linking glib with gld in Irix
On Mon, 2005-08-08 at 15:41 +0200, Magnus Bergman wrote: > I have problems building glib (2.6.6) in Irix using GCC, gas and gld > (no, I don't forget to use --with-gnu-ld). It fails then linking > glib-genmarshal against glib because some symbols, including g_malloc > cannot be found. Then I examine the glib library (using GNU objdump) I > see than most symbols are marked hidden, for example: > > 60017e80 l F *ABS* .hidden IA__g_malloc > > While a few are not, for example: > > 600354bc g F *ABS* g_strcasecmp > > I have no idea what that means. I guess it's the reason for the > failure, but why does it happen? Is it some feature that doesn't work > as expected on irix, or does it expect some irix feature not supported > by gld maybe? What gcc version is that ? Does it support visibility attributes ? Does configure think it supports visibility ? Does configuring with --disable-visibility help ? Matthias ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list
Linking glib with gld in Irix
I have problems building glib (2.6.6) in Irix using GCC, gas and gld (no, I don't forget to use --with-gnu-ld). It fails then linking glib-genmarshal against glib because some symbols, including g_malloc cannot be found. Then I examine the glib library (using GNU objdump) I see than most symbols are marked hidden, for example: 60017e80 l F *ABS* .hidden IA__g_malloc While a few are not, for example: 600354bc g F *ABS* g_strcasecmp I have no idea what that means. I guess it's the reason for the failure, but why does it happen? Is it some feature that doesn't work as expected on irix, or does it expect some irix feature not supported by gld maybe? ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list