Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Stephen P. Becker" <geoman@gentoo.org>
To: olegol@aport.ru
Cc: linux-mips@linux-mips.org
Subject: Re: GTK/GLIB port for mipsel
Date: Thu, 19 Jan 2006 09:57:32 -0500	[thread overview]
Message-ID: <43CFA8DC.9050904@gentoo.org> (raw)
In-Reply-To: <Vy3HKuPmiEfd4pZ@aport2000.ru>

> I'm trying to install glib 2.8.3 (I do not think it is 
> too much different from 2.8.5). I have little-endian mips 
> architecture (mipsel) and am installing the library on 
> the RedHat Linux with core 2.4 (both on a target and on a 
> host).

Well, my machines use 2.6 kernel and headers, however I don't think that 
is the problem and/or answer in this case.


> I'm using the following parameters with configure:
> ./configure --prefix=<path> --build=mipsel-linux --
> host=i686-linux --with-libiconv=gnu

That shouldn't be a problem as far as I can see.  For what it's worth, 
my glib was configured with:

./configure --prefix=/usr --host=mips64-unknown-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --with-threads=posix 
--disable-gtk-doc --build=mips64-unknown-linux-gnu


> Do you have you gtk/glib compiled from the sources on 
> your machine or just a binaries installed?

Compiled from sources (natively, not cross-compiled).  I do use Gentoo 
after all...


> Do you have a ./glib/gatomic.c file compiled?

Sure do:

cthulhu .libs # file gatomic.o
gatomic.o: ELF 32-bit MSB relocatable, MIPS, N32 MIPS-IV version 1 
(SYSV), not stripped


> I do not quite understand how that can be (I could not see there a 
> section for MIPS/MIPSEL). Also, do you have any of the 
> G_ATOMIC_<platform> macros defined in the config.h file?

I suspect that glib is broken for cross-compile in this way.  It is 
probably detecting that your host i686 install can use asm code for 
atomic operations, and thus enables it, which of course kills your 
build.  Natively, it looks like it does the RightThing(TM):

checking whether to use assembler code for atomic operations... none

-Steve

  reply	other threads:[~2006-01-19 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-19 12:15 GTK/GLIB port for mipsel olegol
2006-01-19 12:30 ` Stephen P. Becker
2006-01-19 13:05   ` olegol
2006-01-19 14:57     ` Stephen P. Becker [this message]
2006-01-19 15:18       ` olegol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43CFA8DC.9050904@gentoo.org \
    --to=geoman@gentoo.org \
    --cc=linux-mips@linux-mips.org \
    --cc=olegol@aport.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox