can't build firefox-53.0.3+build1

RESOLVED INVALID

Status

()

Core
Build Config
RESOLVED INVALID
5 months ago
5 months ago

People

(Reporter: fedecupe, Unassigned)

Tracking

53 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 months ago
Created attachment 8872102 [details]
firefox-build.log

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce:

Tried to apt-build install firefox


Actual results:

did not build (log excerpt)

-----> Downloading source firefox (53.0.3+build1-0ubuntu0.16.04.2) <-----
-----> Building firefox <-----
 dpkg-source --before-build firefox-53.0.3+build1
 debian/rules clean
make[1]: ***  Nessuna regola per generare l'obiettivo "cleansrcdir".
make: [makefile-clean] Errore 2 (ignorato)
 debian/rules build
/usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING:    DEB_DH_STRIP_ARGS is deprecated since 0.4.85
client.mk:204: /var/cache/apt-build/build/firefox-53.0.3+build1/obj-x86_64-linux-gnu/.mozconfig.mk: File o directory non esistente
/var/cache/apt-build/build/firefox-53.0.3+build1/old-configure: 14979: test: Illegal number: 
/var/cache/apt-build/build/firefox-53.0.3+build1/old-configure: 15039: test: Illegal number: 
Creating config.status
Reticulating splines...
Finished reading 1219 moz.build files in 2.66s
Read 124 gyp files in parallel contributing 0.00s to total wall time
Processed into 9293 build config descriptors in 2.51s
RecursiveMake backend executed in 4.18s
  2904 total backend files; 2904 created; 0 updated; 0 unchanged; 0 deleted; 50 -> 1102 Makefile
FasterMake backend executed in 0.22s
  10 total backend files; 10 created; 0 updated; 0 unchanged; 0 deleted
Total wall time: 10.03s; CPU time: 9.97s; Efficiency: 99%; Untracked: 0.46s
Makefile:52: codegen.pp: File o directory non esistente
warning: interface 'nsISelectionPrivate' is scriptable but derives from non-scriptable 'nsISelection', ../../../dist/idl/nsISelectionPrivate.idl line 31:0
interface nsISelectionPrivate : nsISelection
^
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
warning: [const] doesn't make sense on builtin types., <class 'xpidl.xpidl.BuiltinLocation'>
Executing: /usr/lib/apt-build/g++ -std=gnu++11 -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -fno-lifetime-dse -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -g -freorder-blocks -Os -fomit-frame-pointer -fPIC -shared -Wl,-z,defs -Wl,--gc-sections -Wl,-h,libnptestjava.so -o libnptestjava.so /var/cache/apt-build/build/firefox-53.0.3+build1/obj-x86_64-linux-gnu/dom/plugins/test/testplugin/javaplugin/tmpkGwLv2.list -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -Wl,-rpath-link,/var/cache/apt-build/build/firefox-53.0.3+build1/obj-x86_64-linux-gnu/dist/bin -Wl,-rpath-link,/usr/lib -ldl -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfontconfig -lfreetype -lgdk-x11-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lX11-xcb -lxcb-shm -lxcb -lX11 -lXext
/var/cache/apt-build/build/firefox-53.0.3+build1/obj-x86_64-linux-gnu/dom/plugins/test/testplugin/javaplugin/tmpkGwLv2.list:
    INPUT("Unified_cpp_javaplugin0.o")

/usr/bin/ld.bfd.real: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcairo.a(cairo.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcairo.a: error adding symbols: Valore errato
collect2: error: ld returned 1 exit status
make[6]: *** [libnptestjava.so] Errore 1
make[5]: *** [dom/plugins/test/testplugin/javaplugin/target] Errore 2
make[5]: *** Attesa per i processi non terminati....
make[4]: *** [compile] Errore 2
make[3]: *** [default] Errore 2
make[2]: *** [realbuild] Errore 2
make[1]: *** [build] Errore 2
make: *** [debian/stamp-makefile-build] Errore 2
dpkg-buildpackage: Errore: debian/rules build gave error exit status 2
----> Cleaning up object files <-----
make[1]: ***  Nessuna regola per generare l'obiettivo "cleansrcdir".
make: [makefile-clean] Errore 2 (ignorato)
Error while building firefox!
Sorry, no package to install.



Expected results:

should have built with no errors

Updated

5 months ago
Component: Untriaged → Build Config
Product: Firefox → Core

Comment 1

5 months ago
glandium: could you please triage? I recall you fixing an fPIC bug lately that you didn't think anyone was hitting. This may be related.
Flags: needinfo?(mh+mozilla)
Somehow this is trying to link a system static library for cairo, and that static library is not built as PIC. Seems like there's something wrong in your build environment (there should be a shared library for system cairo) and/or the build script used for the Firefox Ubuntu package.

If you can reproduce by taking the plain sources for Firefox 53.0.3 and building them with the Mozilla instructions (i.e. not using the Ubuntu build scripts), please reopen this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 months ago
Flags: needinfo?(mh+mozilla)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.