Quantcast

Error building Aurora (52.0a2) on CentOS 6

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error building Aurora (52.0a2) on CentOS 6

James Pearson
I'm trying to build Aurora (52.0a2) on CentOS 6 - as the provided
nightly builds don't run on CentOS 6 (CentOS 6 doesn't support GTK3)

I'm using gcc 4.9.2, binutils 2.24 and python 2.7.8 from the
RedHat/CentOS 'Software Collections' (scl)

I've successfully built previous version of firefox using this setup
(e.g. firefox-51.0b8)

My mozconfig contains:

. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-elf-hack --enable-stdcxx-compat
--enable-default-toolkit=cairo-gtk2 --enable-verify-mar
--disable-crashreporter --disable-updater --disable-necko-wifi
--disable-tests --enable-js-shell

However, I'm getting errors that I don't understand - 'mach build'
output snippet (edited for brevity):

[1482151281.535448, "build_output", {"line": "firefox"}]
[1482151281.673129, "build_output", {"line": "Executing:
/opt/rh/devtoolset-3/root/usr/bin/g++ -std=gnu++11 -o firefox -Wall
-Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual
-Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code
-Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized
-Wno-error=deprecated-declarations -Wno-error=array-bounds
-fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
-fno-math-errno -pthread -D_GLIBCXX_USE_CXX11_ABI=0 -pipe -g
-freorder-blocks -Os -fomit-frame-pointer
/disk1/build/firefox-52.0a2/obj-x86_64-pc-linux-gnu/browser/app/tmpo1IdeF.list
-lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -B
../../build/unix/gold -rdynamic
-Wl,-rpath-link,/disk1/build/firefox-52.0a2/obj-x86_64-pc-linux-gnu/dist/bin
-Wl,-rpath-link,/usr/local/lib
../../xpcom/glue/standalone/libxpcomglue.a -ldl -lrt"}]
[1482151281.673783, "build_output", {"line":
"/disk1/build/firefox-52.0a2/obj-x86_64-pc-linux-gnu/browser/app/tmpo1IdeF.list:"}]
...
[1482151281.681194, "build_output", {"line": "../../build/unix/gold/ld:
warning: hidden symbol 'close' in /lib64/libpthread.so.0 is referenced
by DSO /usr/lib/../lib64/librt.so"}]
[1482151281.681455, "build_output", {"line": "../../build/unix/gold/ld:
warning: hidden symbol 'read' in /lib64/libpthread.so.0 is referenced by
DSO /usr/lib/../lib64/librt.so"}]
...
[1482151281.685743, "build_output", {"line":
"/disk1/build/firefox-52.0a2/browser/app/nsBrowserApp.cpp:65: error:
undefined reference to 'stderr'"}]
[1482151281.686029, "build_output", {"line": "../../build/unix/gold/ld:
error: hidden symbol 'access' is not defined locally"}]
[1482151281.686273, "build_output", {"line":
"/disk1/build/firefox-52.0a2/browser/app/nsBrowserApp.cpp:175: error:
undefined reference to 'getenv'"}]
[1482151281.686547, "build_output", {"line": "../../build/unix/gold/ld:
error: hidden symbol 'putenv' is not defined locally"}]
...
[1482151281.723665, "build_output", {"line": "collect2: error: ld
returned 1 exit status"}]
[1482151281.724014, "build_output", {"line": "gmake[5]: *** [firefox]
Error 1"}]
[1482151281.724304, "build_output", {"line": "gmake[4]: ***
[browser/app/target] Error 2"}]
[1482151281.72462, "build_output", {"line": "gmake[3]: *** [compile]
Error 2"}]
[1482151281.724898, "build_output", {"line": "gmake[2]: *** [default]
Error 2"}]
[1482151281.725161, "build_output", {"line": "gmake[1]: *** [realbuild]
Error 2"}]
[1482151281.725475, "build_output", {"line": "gmake: *** [build] Error 2"}]
...

I don't know if the "warning: hidden symbol ..." warnings are a problem ??

However, I don't understand how fundamental symbols like 'stderr',
'getenv', etc can be undefined ?

Any idea on what I might be missing?

I can provide a full build log if required

Thanks

James Pearson
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error building Aurora (52.0a2) on CentOS 6

James Pearson
James Pearson wrote:
> I'm trying to build Aurora (52.0a2) on CentOS 6 - as the provided
> nightly builds don't run on CentOS 6 (CentOS 6 doesn't support GTK3)
>
> I'm using gcc 4.9.2, binutils 2.24 and python 2.7.8 from the
> RedHat/CentOS 'Software Collections' (scl)
>
> I've successfully built previous version of firefox using this setup
> (e.g. firefox-51.0b8)

To answer my own problem - I started afresh and built as a new user -
and the build got past the previous failure

I guess there must have been something in the original build user's
environment or a preference that was causing it to fail? ... not sure
what the issue was

The build fails later - but this time with something I've managed to
work around

James Pearson
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Loading...