Closed Bug 1212362 Opened 9 years ago Closed 6 years ago

Broken toolchain on emulator-x86-l

Categories

(Firefox OS Graveyard :: Emulator, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tzimmermann, Unassigned)

References

Details

Attachments

(1 file)

Attached file config.log
Trying to build emulator-x86-l results in 

> configure: error: installation or configuration problem: C compiler cannot create executables.

Building emulator-l (i.e., the same for ARM) works.
Hi Juan, do you have an idea what might be wrong here? (I'm asking you because you work on toolchains.)
Flags: needinfo?(jgomez)
Might be related to bug 1173590.
See Also: → 1173590
Well, this usually happens when trying to build for an architecture but mixing different architectures in the process. I've never built x86 emulator in any of his flavors (jb,kk,lollipop), but I'll assume that we are trying to build a 32 bit emulator, but using a toolchain which is targeted to build for x86-64 bit architecture by default, so is mixing both architectures in the process.
I'll try to build it by myself and figure out where the problem is.
Flags: needinfo?(jgomez)
Yeah, confirmed. Looks like we need a -m32 flag anywhere in the configure.in script.
I tried to follow the advice in bug 1173590 and set -m32 in .userconfig, but this didn't help.
Oh, it should work.

CXXFLAGS=-m32
ASFLAGS=-m32
CFLAGS=-m32
LDFLAGS=-m32

It's working for me. Anyway, this is just a workaround. I think that we should include these flags into the configure scripts depending on the target - i686-android-linux in this case.
Thanks, I'll try again. Maybe I forgot to set LDFLAGS.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: