all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
Cc: schwab@suse.de, Eli Zaretskii <eliz@gnu.org>,
	rms@gnu.org, emacs-devel@gnu.org
Subject: Re: add etc/PROBLEMS entry for building 32-bit exe on 64-bit system
Date: Mon, 15 Jan 2007 20:22:09 -0500	[thread overview]
Message-ID: <iavej7dav2.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwv64bev57f.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 10 Jan 2007 18:28:13 -0500")

Stefan Monnier wrote:

> PS: IMHO we shouldn't need to specify --build=i386-linux-gnu.  Instead,
> passing CC="gcc -m32" should be sufficient.

This may be a superfluous comment (depending on the meaning of
"should"), but in practice it is not sufficient (RHEL4 x86_64 with all
available relevant 32-bit libs installed):

Using CC="gcc -m32":

1) Configure wrongly picks /usr/X11R6/lib64 for the X windows
   libraries. Manually fix this by passing --x-libraries=/usr/X11R6/lib.

2) Configure wrongly decides sound is available, when it is not
  (there is no standard package for this OS that provides 32-bit
  "libasound.so"). Bootstrap fails trying to create temacs due to the
  lack of compatible libasound.so. Fix this by manually passing
  --without-sound.

3) Configure sets HAVE_X86_64_LIB64_DIR to 1, so linking temacs fails
   because it tries to use /usr/lib64/crt1.o etc rather than
   /usr/lib/crt1.o etc. After correcting this...

4) temacs segfaults after loading subr during dumping.

There are also hundreds of "warning: left shift count >= width of
type" on compilation.


Just using --build=i386-linux-gnu is also not sufficient. The build
just calls "gcc" as usual, which compiles 64-bit objects.


Only the combination of the two methods works for me (still subject to
1 and 2, not 3 or 4). No compilation warnings either.


Quite possibly the fix is trivial for someone who knows what they are
doing. I have nothing else to say as to what the "right" approach is
or how to do it; I can only offer to test any solutions.

  reply	other threads:[~2007-01-16  1:22 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=iavej7dav2.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=schwab@suse.de \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.