unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: add etc/PROBLEMS entry for building 32-bit exe on 64-bit system
Date: Tue, 09 Jan 2007 19:25:05 -0500	[thread overview]
Message-ID: <yvfyajk9su.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <je8xgbx289.fsf@sykes.suse.de> (Andreas Schwab's message of "Tue,  09 Jan 2007 23:30:14 +0100")

Andreas Schwab wrote:

> Richard Stallman <rms@gnu.org> writes:
>
>>     The right thing to do is to pass --build=i386-linux-gnu when configuring.
>>
>> If you do that, does it work correctly?
>
> I can't test myself, but it certainly works for ppc vs ppc64.


I wasn't aware of this method, so thanks for telling me about it.

By itself, it does not work for me. The build process just goes on to
call "gcc" as normal, which compiles x86_64 objects rather than i386
ones.

I found I had to do:

i) export CFLAGS=-m32; export LDFLAGS=-m32
    (to get i386 objects)

ii) Add "--build=i386-linux-gnu --x-libraries=/usr/X11R6/lib --without-sound"

to configure's arguments. This is on RHEL4 x86_64. The --x option is
needed to stop the build trying to use the 64-bit libraries from
/usr/X11R6/lib64. The --sound option is I think needed just to work
around a RHEL bug (there seems to be no x86_64 package that provides a
32-bit libasound).


I imagine it's reasonable to expect configure to just Do The Right
Thing for all of these but the sound issue, without so much user
intervention? Actually, I guess it should auto-detect no compatible
sound libraries as well...

  reply	other threads:[~2007-01-10  0:25 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09  1:44 add etc/PROBLEMS entry for building 32-bit exe on 64-bit system Glenn Morris
2007-01-09  9:58 ` Andreas Schwab
2007-01-09 21:08   ` Richard Stallman
2007-01-09 22:30     ` Andreas Schwab
2007-01-10  0:25       ` Glenn Morris [this message]
2007-01-10  4:14         ` Glenn Morris
2007-01-10 15:28           ` Stefan Monnier
2007-01-10 20:17             ` Glenn Morris
2007-01-10 20:36             ` Eli Zaretskii
2007-01-10 23:28               ` Stefan Monnier
2007-01-16  1:22                 ` Glenn Morris
2007-01-16  9:58                   ` Andreas Schwab
2007-01-16 14:40                   ` Stefan Monnier
2007-01-10 23:05           ` Richard Stallman
2007-01-11  1:52             ` Glenn Morris
2007-01-14 23:23           ` Richard Stallman
2007-01-15  6:23           ` Giorgos Keramidas
2007-01-10  9:41         ` Andreas Schwab
2007-01-10 19:31           ` Glenn Morris
2007-01-10 20:00             ` Andreas Schwab
2007-01-10 20:14               ` Glenn Morris
2007-01-10 20:23                 ` Andreas Schwab
2007-01-10 20:16             ` Stuart D. Herring
2007-01-10 20:42             ` Eli Zaretskii
2007-01-10 18:46         ` Richard Stallman
2007-01-13  2:26           ` Glenn Morris
2007-01-09 17:57 ` Richard Stallman
2007-01-15  6:21 ` Giorgos Keramidas
2007-01-15  9:54   ` Andreas Schwab
2007-01-15 20:27   ` Glenn Morris
2007-01-15 23:28   ` Richard Stallman
2007-01-15 23:33     ` Giorgos Keramidas
2007-01-19 15:36       ` Giorgos Keramidas

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=yvfyajk9su.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).