[LLVMdev] Trying to build Firefox on OSX with LLVM 2.2

Simon Strandman simon.strandman at telia.com
Sat Mar 8 06:29:53 PST 2008


Hello

I'm trying to build Firefox with LLVM 2.2 and llvm-gcc 4.2 but I can't 
get it working. I've tried with Firefox 2.0.0.12 and 3.0 from CVS. The 
build error from Firefox 2 is this:

usr/local/bin/llvm-gcc -o host_mar.o -c -DXP_UNIX -DXP_MACOSX -DNO_X11 
-O   -I../../../dist/include/libmar -I../../../dist/include/mar 
-I../../../dist/include -I../../../dist/include/nspr    
-I../../../dist/sdk/include -I../../../dist/include/nspr 
/Users/simon/Desktop/mozilla/firefox2/mozilla/modules/libmar/tool/mar.c
/usr/local/bin/llvm-gcc -o mar -DXP_UNIX -DXP_MACOSX -DNO_X11 -O   
host_mar.o ../../../dist/host/lib/libhostmar.a
ld: warning in ../../../dist/host/lib/libhostmar.a, file is not of 
required architecture
Undefined symbols:
  "_mar_open", referenced from:
      _main in host_mar.o
  "_mar_enum_items", referenced from:
      _main in host_mar.o
  "_mar_extract", referenced from:
      _main in host_mar.o
  "_mar_close", referenced from:
      _main in host_mar.o
  "_mar_create", referenced from:
      _main in host_mar.o
ld: symbol(s) not found
collect2: ld returnerade avslutningsstatus 1
gmake[4]: *** [mar] Fel 1
gmake[4]: Leaving directory 
`/Users/simon/Desktop/mozilla/firefox2/mozilla/obj-ff/modules/libmar/tool'
gmake[3]: *** [libs] Fel 2
gmake[3]: Leaving directory 
`/Users/simon/Desktop/mozilla/firefox2/mozilla/obj-ff/modules/libmar'
gmake[2]: *** [tier_1] Fel 2
gmake[2]: Leaving directory 
`/Users/simon/Desktop/mozilla/firefox2/mozilla/obj-ff'
make[1]: *** [default] Error 2
make: *** [build] Error 2

Disabling optimizations doesn't make a difference. Firefox 3 fails with 
the same error but on a different file and with different symbols. This 
is on OSX 10.5.2 with xcode 3.0. Any ideas?

I hope this is the correct list to ask about this!

Thanks,
Simon



More information about the llvm-dev mailing list