Closed Bug 1178979 Opened 11 years ago Closed 10 years ago

Cannot Compile as PIE on FreeBSD

Categories

(Firefox Build System :: General, defect)

38 Branch
Unspecified
FreeBSD
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: shawn.webb, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36 Steps to reproduce: Edited the www/firefox port in the FreeBSD ports tree to also pass in --enable-pie to the configure script. Actual results: Firefox failed to compile as a Position-Independent Executable (PIE) and failed to install. Expected results: Firefox should have been able to be compiled as a PIE and install successfully.
Patch to www/firefox/Makefile in FreeBSD's ports tree to enable PIE
Jan, is this something you can take a look at?
Component: Untriaged → Build Config
Flags: needinfo?(jbeich)
OS: Unspecified → FreeBSD
Product: Firefox → Core
I can't reproduce and, IIRC, couldn't at the time it was posted on freebsd-gecko@ maillist. Without a stacktrace this is not very useful. Firefox just happens to crash during packaging the most if there's something wrong with the build. FreeBSD binary packages currently don't provide debug symbols at all, so this means rebuilding firefox *and* every shared library it depends with -g, base libraries included. For ports it'd be WITH_DEBUG=1 (also turns off any -O[123] level) or CFLAGS+=-g + STRIP='' + STRIP_CMD=true; for base just DEBUG_FLAGS=-g. Besides, downstream may have its own bugs, so testing vanilla build is preferred: $ pkg install -y mercurial $ hg clone https://hg.mozilla.org/mozilla-central/ $ cd mozilla-central $ rm -f .mozconfig # idiomatic $ echo 'ac_add_options --enable-pie' >.mozconfig $ ./mach bootstrap $ ./mach build $ ./mach run
Flags: needinfo?(jbeich)
Due to comment/response, we will be changing the bug from Unconfirmed to New so that items with a component no longer display unconfirmed
Status: UNCONFIRMED → NEW
Ever confirmed: true
Well, I've just enabled PIE by default in ports: https://svnweb.freebsd.org/changeset/ports/410748
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: