Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#31788 closed defect (fixed)

firefox-x11 @7.0.1 - build error

Reported by: gleirsch@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: h.grohne@…, codywohlers@…, ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager)
Port: firefox-x11

Description

Experienced a build error in firefox-x11, working with 10.6.8, Xcode 4.0.2 and llvm-gcc-4.2, see logs:

:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release/toolkit/library'
:info:build rm -f libxul.dylib
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release/config/nsinstall -D ../../dist/sdk/lib
:info:build /opt/local/bin/python2.7 ../../config/pythonpath.py -I../../config ../../config/expandlibs_exec.py --uselist --  /Developer/usr/bin/clang++ -arch x86_64 -I/opt/local/include -fno-rtti -fno-exceptions -Wall -Wpointer-
arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pipe -O2 -arch x86_64 -fno-strict-aliasing -fno-common -pthread -pipe  -DNDEBUG -DTR
IMMED -g -O2 -fPIC  -o libxul.dylib  nsStaticXULComponents.o nsUnicharUtils.o nsBidiUtils.o nsRDFResource.o     -L/opt/local/lib -arch x86_64  -framework ExceptionHandling -Wl,-executable_path,/opt/local/var/macports/build/_opt_
local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release/dist/bin -Wl,-dead_strip ../../toolkit/xre/libxulapp_s.a  ../../staticlib/components/libnecko.a ../../staticlib/compone
nts/libuconv.a ../../staticlib/components/libi18n.a ../../staticlib/components/libchardet.a ../../staticlib/components/libjar50.a ../../staticlib/components/libstartupcache.a ../../staticlib/components/libpref.a ../../staticlib/
components/libhtmlpars.a ../../staticlib/components/libimglib2.a ../../staticlib/components/libgkgfx.a ../../staticlib/components/libgklayout.a ../../staticlib/components/libdocshell.a ../../staticlib/components/libembedcomponen
ts.a ../../staticlib/components/libwebbrwsr.a ../../staticlib/components/libnsappshell.a ../../staticlib/components/libtxmgr.a ../../staticlib/components/libcommandlines.a ../../staticlib/components/libtoolkitcomps.a ../../stati
clib/components/libpipboot.a ../../staticlib/components/libpipnss.a ../../staticlib/components/libappcomps.a ../../staticlib/components/libjsreflect.a ../../staticlib/components/libcomposer.a ../../staticlib/components/libjetpac
k_s.a ../../staticlib/components/libtelemetry.a ../../staticlib/components/libjsctypes.a ../../staticlib/components/libjsperf.a ../../staticlib/components/libgkplugin.a ../../staticlib/components/libunixproxy.a ../../staticlib/c
omponents/libjsd.a ../../staticlib/components/libautoconfig.a ../../staticlib/components/libauth.a ../../staticlib/components/libcookie.a ../../staticlib/components/libpermissions.a ../../staticlib/components/libuniversalchardet
.a ../../staticlib/components/librdf.a ../../staticlib/components/libwindowds.a ../../staticlib/components/libfileview.a ../../staticlib/components/libstoragecomps.a ../../staticlib/components/libplaces.a ../../staticlib/compone
nts/libtkautocomplete.a ../../staticlib/components/libsatchel.a ../../staticlib/components/libpippki.a ../../staticlib/components/libwidget_gtk2.a ../../staticlib/components/libsystem-pref.a ../../staticlib/components/libimgicon
.a ../../staticlib/components/libremoteservice.a ../../staticlib/components/libspellchecker.a ../../staticlib/components/libzipwriter.a ../../staticlib/components/libservices-crypto.a ../../staticlib/libjsipc_s.a ../../staticlib
/libdomipc_s.a ../../staticlib/libdomplugins_s.a ../../staticlib/libmozipc_s.a ../../staticlib/libmozipdlgen_s.a ../../staticlib/libipcshell_s.a ../../staticlib/libgfx2d.a ../../staticlib/libgfxipc_s.a ../../staticlib/libxpcom_c
ore.a ../../staticlib/libucvutil_s.a ../../staticlib/libchromium_s.a ../../staticlib/libmozreg_s.a ../../staticlib/libgtkxtbin.a ../../staticlib/libthebes.a ../../staticlib/libycbcr.a ../../staticlib/libangle.a  ../../dist/lib/l
ibmozsqlite3.a -L../../dist/bin -L../../dist/lib ../../jpeg/libmozjpeg.a ../../modules/libimg/png/libmozpng.a ../../gfx/qcms/libmozqcms.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_p
orts_www_firefox-x11/firefox-x11/work/mozilla-release/dist/lib/libjs_static.a -L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3 -lnssutil3 ../../g
fx/cairo/cairo/src/libmozcairo.a  ../../gfx/cairo/libpixman/src/libmozlibpixman.a  -L/opt/local/lib -lXrender -lfreetype -lfontconfig ../../gfx/harfbuzz/src/libmozharfbuzz.a ../../gfx/ots/src/libmozots.a   ../../modules/zlib/src
/libmozz.a -L../../dist/bin -L../../dist/lib  -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release/dist/lib -lplds4 -lplc4 -lnspr4 -L/o
pt/local/lib ../../dist/lib/libmozalloc.a -framework Carbon -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework IOKit -framework Foundation -framework AppKit  -L/opt/local/lib -ldbus-1 -lpthread   -L/opt
/local/lib -lX11  -lXext  -L/opt/local/lib -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl   -L/opt/local/lib -lgtk-x11-2.0 -latk-1.0 -l
gdk-x11-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lm -lfreetype -lfontconfig -lgio-2.0 -lXfixes -lgobject-2.0 -lgmodule-2.0 -lpng
14 -lgthread-2.0 -lglib-2.0 -lintl -lcairo -lX11   -lXt -lgthread-2.0 -L/opt/local/lib -lfreetype -lz -lbz2  -dylib_file /opt/local/lib/firefox-x11/libplds4.dylib:../../dist/bin/libplds4.dylib  -dylib_file /opt/local/lib/firefox-x11/libplc4.dylib:../../dist/bin/libplc4.dylib  -dylib_file /opt/local/lib/firefox-x11/libnspr4.dylib:../../dist/bin/libnspr4.dylib -dylib_file /opt/local/lib/firefox-x11/libxul.dylib:../../dist/bin/libxul.dylib -dylib_file /op
t/local/lib/firefox-x11/libmozjs.dylib:../../dist/bin/libmozjs.dylib -dynamiclib -install_name /opt/local/lib/firefox-x11/libxul.dylib -compatibility_version 1 -current_version 1 -single_module     
:info:build clang: warning: argument unused during compilation: '-pthread'
:info:build ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
:info:build Undefined symbols for architecture x86_64:
:info:build   "_oc_state_loop_filter_frag_rows_mmxext", referenced from:
:info:build       _th_decode_packetin in decode.o
:info:build   "_oc_restore_fpu_mmx", referenced from:
:info:build       _th_decode_packetin in decode.o
:info:build   "_oc_state_accel_init_x86", referenced from:
:info:build       _oc_state_init in state.o
:info:build   "_oc_loop_filter_init_mmxext", referenced from:
:info:build       _th_decode_packetin in decode.o
:info:build   "_oc_state_frag_recon_mmx", referenced from:
:info:build       _th_decode_packetin in decode.o
:info:build   "_oc_frag_copy_list_mmx", referenced from:
:info:build       _th_decode_packetin in decode.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[3]: *** [libxul.dylib] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release/toolkit/library'
:info:build make[2]: *** [libs_tier_platform] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release'
:info:build make[1]: *** [tier_platform] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_firefox-x11/firefox-x11/work/mozilla-release" && /usr/bin/make -j4 -w all includedir="/opt/local/
include/firefox-x11" idldir="/opt/local/share/idl/firefox-x11" installdir="/opt/local/lib/firefox-x11" sdkdir="/opt/local/lib/firefox-x11" SKIP_COPY_XULRUNNER=1 " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for firefox-x11): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install firefox-x11

Thanks for your help.

Change History (8)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

The log shows you're using clang; the port is programmed to use clang instead of llvm-gcc-4.2.

comment:2 in reply to:  1 Changed 13 years ago by gleirsch@…

Replying to ryandesign@…:

The log shows you're using clang; the port is programmed to use clang instead of llvm-gcc-4.2.

Sorry, of course it was clang. I didn't try any other configuration.

comment:3 Changed 12 years ago by h.grohne@…

I tried to build it with a different compiler. clang-3.1 from macports. It also FTBFS because mozilla employs constructs of the form #define MACRO "string"OTHERMACRO where there is no space between "string" and OTHERMACRO. It also FTBFS with clang-3.0 but, I don't understand the type error displayed.

comment:4 Changed 12 years ago by h.grohne@…

Cc: h.grohne@… added

Cc Me!

comment:5 Changed 12 years ago by codywohlers@…

Cc: codywohlers@… added

Cc Me!

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

#37806 says both clang and llvm-gcc will fail to build firefox-x11 but that using apple-gcc-4.2 will succeed, so please use that.

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

Forced the use of apple-gcc-4.2 in r102099.

comment:8 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.