Closed Bug 865856 Opened 11 years ago Closed 11 years ago

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/

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: gkw, Unassigned)

References

Details

Attachments

(1 file)

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.
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.
(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
The workaround in bug 866489 comment 2 worked around this issue for me.
Unlikely to be a Mozilla bug.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Severity: blocker → major
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: