Compiling 32-bit js shells on Ubuntu Linux 13.04 Raring Ringtail fails as zconf.h no longer seems to be present in /usr/include/

RESOLVED INVALID

Status

()

--
major
RESOLVED INVALID
6 years ago
5 years ago

People

(Reporter: gkw, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 742032 [details]
Console output of error

Compiling 32-bit js shells on Ubuntu Linux 13.04 Raring Ringtail fails probably because zconf.h is assumed to be in /usr/include (which was correct in 64-bit 12.04 and 32-bit 13.10 as I managed to verify on other machines), but on the new OS, it seems to be at /usr/include/x86_64-linux-gnu/zconf.h

This breaks compilation with `gcc -m32` needed to cross-compile 32-bit shells in a 64-bit Linux OS.
(Reporter)

Comment 1

6 years ago
That said, a simple program, e.g.:

#include <zlib.h>
int main () { return 0; }

also causes an error with `gcc -m32`:

/usr/include/zlib.h:34:19: fatal error: zconf.h: No such file or directory

So I'm not sure if this is a Spidermonkey issue.
And see also bug 866489.
(In reply to Justin Lebar [:jlebar] from comment #3)
> And see also bug 866489.

Yes, just install both zlib1g-dev:{amd64,i386}. That works for B2G, but I'm not sure whether does it solve the problem here as well.
Maybe I'm doing something wrong, but apt-get told me that it was going to remove my whole toolchain if I wanted to install zlib1g-dev:i386.  But let's talk about it in the PR so we don't have to have the discussion twice.  :)

https://github.com/mozilla-b2g/B2G/pull/236#issuecomment-17149521
(Reporter)

Comment 6

6 years ago
The workaround in bug 866489 comment 2 worked around this issue for me.
(Reporter)

Comment 7

5 years ago
Unlikely to be a Mozilla bug.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
(Reporter)

Updated

5 years ago
Severity: blocker → major
You need to log in before you can comment on or make changes to this bug.