-m32 or -m64 unconditionally passed to cc

Bug #767879 reported by R. Matthew Emerson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CFFI
New
Undecided
Unassigned

Bug Description

cffi-grovel::*cpu-word-size-flags* is always set to either ("-m32") or ("-m64").

Not all compiler versions accept these flags. For instance, gcc on ARM does not accept -m32 (or -m64, for that matter).

I see that there's a "FIXME" here; unfortunately, I don't have any really great suggestions on how to detect what flags are appropriate.

Tags: grovel
Revision history for this message
Luís Oliveira (luismbo) wrote :

Well, I suppose we can at least handle ARM specifically. Does setting *CPU-WORD-SIZE-FLAGS* to NIL on ARM work as expected? Also, does ARM support running 32-bit binaries on a 64-bit CPU?

Revision history for this message
R. Matthew Emerson (rme) wrote : Re: [Bug 767879] Re: -m32 or -m64 unconditionally passed to cc

On May 11, 2011, at 3:35 AM, Luís Oliveira wrote:

> Well, I suppose we can at least handle ARM specifically. Does setting
> *CPU-WORD-SIZE-FLAGS* to NIL on ARM work as expected?

Yes.

> Also, does ARM
> support running 32-bit binaries on a 64-bit CPU?

ARM is 32-bit only.

Revision history for this message
Luís Oliveira (luismbo) wrote :

What does CCL push to features? Is it :ARM?

Revision history for this message
Ben Spencer (dangerous-ben) wrote :

:EABI-TARGET :ARM :ARM-TARGET :LINUXARM-TARGET :LINUXARM-HOST :32-BIT-TARGET :32-BIT-HOST

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.