Closed Bug 1580904 Opened 6 years ago Closed 5 years ago

error: compiler is incompatible with sanitize options when building firefox

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: demostanis.worlds.alt, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36

Steps to reproduce:

I tried to build Firefox by doing ./mach build. My .mozconfig is:

ac_add_options --with-macos-sdk=$HOME/SDK-archive/MacOSX10.13.sdk/
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg
ac_add_options --enable-debug

mk_add_options AUTOCONF=/usr/local/Cellar/autoconf@2.13/2.13/bin/autoconf213

Actual results:

I'm getting this error:

0:08.39 DEBUG: Undefined symbols for architecture x86_64:
 0:08.39 DEBUG:   "_exit", referenced from:
 0:08.39 DEBUG:       start in crt1.10.6.o
 0:08.39 DEBUG: ld: symbol(s) not found for architecture x86_64
 0:08.39 DEBUG: clang: error: linker command failed with exit code 1 (use -v to see invocation)
 0:08.39 DEBUG: configure: failed program was:
 0:08.39 DEBUG: #line 5210 "configure"
 0:08.39 DEBUG: #include "confdefs.h"
 0:08.39 DEBUG:
 0:08.39 DEBUG: int main() {
 0:08.39 DEBUG:
 0:08.39 DEBUG: ; return 0; }
 0:08.39 DEBUG: configure: error: compiler is incompatible with sanitize options
 0:08.39 ERROR: old-configure failed
 0:08.41 *** Fix above errors and then restart with               "/Applications/Xcode.app/Contents/Developer/usr/bin/make -f client.mk build"
 0:08.41 make: *** [configure] Error 1

Expected results:

It should have builded Firefox, I guess?

Hi demostaing.worlds.alt,

Thanks for submitting this bug. As a starting point I will add a Product and a Component so the Dev team can take a look at this.

Thanks!

Sebastian

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Version: other → unspecified

Does this build after running ./mach bootstrap? Does it build if you remove the AUTOCONF option from .mozconfig?

Tentatively moving this over to Firefox Build System.

Component: Widget: Cocoa → General
Flags: needinfo?(demostanis.worlds.alt)
Product: Core → Firefox Build System

Removing AUTOCONF from .mozconfig isn't changing anything.
Running ./mach bootstrap gives me this error: CalledProcessError: Command '[u'/usr/local/bin/brew', u'install', u'git']' returned non-zero exit status 1

Flags: needinfo?(demostanis.worlds.alt)

What does obj-ff-dbg/config.log contain after a failed run of configure?

Flags: needinfo?(demostanis.worlds.alt)
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(demostanis.worlds.alt)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.