Closed Bug 737781 Opened 12 years ago Closed 12 years ago

Seamonkey 2.8 build aborts on RHEL5 & RHEL6 with gcc4 (SM2.7.2 and below did build fine)

Categories

(SeaMonkey :: Build Config, defect)

SeaMonkey 2.8 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 732764

People

(Reporter: vincent, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14
Build ID: 20110420224920

Steps to reproduce:

Attempting to build seamonkey under RHEL5/RHEL6. I'm using gcc-4.4.x on all platforms.
Build aborts with:
g++44 -o intermOut.o -c   -DANGLE_USE_NSPR -DANGLE_BUILD -DCOMPILER_IMPLEMENTATION -DANGLE_DISABLE_TRACE -DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL0 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_SUITE=1 -DOSTYPE=\"Linux2.6.18-308.1.1\" -DOSARCH=Linux -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/include -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/dist/include/nspr -I/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/dist/include/nss      -fPIC -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -pipe -O3 -fPIC -msse3 -march=core2 -mtune=core2 -fprefetch-loop-arrays -funroll-all-loops -fno-exceptions -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -g -pipe -O3 -fPIC -msse3 -march=core2 -mtune=core2 -fprefetch-loop-arrays -funroll-all-loops -fomit-frame-pointer   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/intermOut.pp /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermOut.cpp
In file included from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermediate.h:20,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/BuiltInFunctionEmulator.h:13,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Compiler.cpp:7:
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h: In member function 'const TString& TType::getTypeName() const':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h:211: error: 'abort' was not declared in this scope
In file included from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermediate.h:20,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/DetectRecursion.h:12,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/DetectRecursion.cpp:7:
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h: In member function 'const TString& TType::getTypeName() const':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h:211: error: 'abort' was not declared in this scope
IntermTraverse.cpp
g++44 -o IntermTraverse.o -c   -DANGLE_USE_NSPR -DANGLE_BUILD -DCOMPILER_IMPLEMENTATION -DANGLE_DISABLE_TRACE -DANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL0 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_SUITE=1 -DOSTYPE=\"Linux2.6.18-308.1.1\" -DOSARCH=Linux -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/include -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src -I/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/dist/include/nspr -I/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/dist/include/nss      -fPIC -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -Wno-long-long -pipe -O3 -fPIC -msse3 -march=core2 -mtune=core2 -fprefetch-loop-arrays -funroll-all-loops -fno-exceptions -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -g -pipe -O3 -fPIC -msse3 -march=core2 -mtune=core2 -fprefetch-loop-arrays -funroll-all-loops -fomit-frame-pointer   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/IntermTraverse.pp /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/IntermTraverse.cpp
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/DetectRecursion.cpp: In destructor 'DetectRecursion::~DetectRecursion()':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/DetectRecursion.cpp:63: warning: comparison between signed and unsigned integer expressions
make[6]: *** [DetectRecursion.o] Error 1
make[6]: *** Waiting for unfinished jobs....
In file included from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermediate.h:20,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/BuiltInFunctionEmulator.h:13,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/ShHandle.h:19,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Initialize.h:11,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Initialize.cpp:13:
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h: In member function 'const TString& TType::getTypeName() const':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h:211: error: 'abort' was not declared in this scope
make[6]: *** [Compiler.o] Error 1
In file included from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermediate.h:20,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/localintermediate.h:11,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermOut.cpp:7:
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h: In member function 'const TString& TType::getTypeName() const':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h:211: error: 'abort' was not declared in this scope
In file included from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/intermediate.h:20,
                 from /usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/IntermTraverse.cpp:7:
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h: In member function 'const TString& TType::getTypeName() const':
/usr/src/redhat/BUILD/seamonkey/src/mozilla/gfx/angle/src/compiler/Types.h:211: error: 'abort' was not declared in this scope
make[6]: *** [IntermTraverse.o] Error 1
make[6]: *** [Initialize.o] Error 1
make[6]: *** [intermOut.o] Error 1
make[6]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/gfx/angle'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir/mozilla/gfx'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir/mozilla'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir/mozilla'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/seamonkey/objdir'
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.1775 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.1775 (%build)



Actual results:

build fails. All builds before 2.8 used to build fine, here's my build list of successful builds:
./seamonkey/seamonkey-2.0.14/RHEL5/x86_64/seamonkey-2.0.14-11.el5.x86_64.rpm
./seamonkey/seamonkey-2.1/RHEL5/x86_64/seamonkey-2.1-12.el5.x86_64.rpm
./seamonkey/seamonkey-2.2/RHEL5/x86_64/seamonkey-2.2-14.el5.x86_64.rpm
./seamonkey/seamonkey-2.3.2/RHEL5/x86_64/seamonkey-2.3.2-17.el5.x86_64.rpm
./seamonkey/seamonkey-2.3.2/RHEL6/x86_64/seamonkey-2.3.2-17.el6.x86_64.rpm
./seamonkey/seamonkey-2.3.3/RHEL5/x86_64/seamonkey-2.3.3-18.el5.x86_64.rpm
./seamonkey/seamonkey-2.3.3/RHEL6/x86_64/seamonkey-2.3.3-18.el6.x86_64.rpm
./seamonkey/seamonkey-2.4.1/RHEL5/x86_64/seamonkey-2.4.1-20.el5.x86_64.rpm
./seamonkey/seamonkey-2.4.1/RHEL6/x86_64/seamonkey-2.4.1-20.el6.x86_64.rpm
./seamonkey/seamonkey-2.5/RHEL5/x86_64/seamonkey-2.5-21.el5.x86_64.rpm
./seamonkey/seamonkey-2.5/RHEL6/x86_64/seamonkey-2.5-21.el6.x86_64.rpm
./seamonkey/seamonkey-2.6.0/RHEL5/x86_64/seamonkey-2.6.0-23.el5.x86_64.rpm
./seamonkey/seamonkey-2.6.0/RHEL6/x86_64/seamonkey-2.6.0-23.el6.x86_64.rpm
./seamonkey/seamonkey-2.6.1/RHEL5/x86_64/seamonkey-2.6.1-24.el5.x86_64.rpm
./seamonkey/seamonkey-2.6.1/RHEL6/x86_64/seamonkey-2.6.1-24.el6.x86_64.rpm
./seamonkey/seamonkey-2.7.1/RHEL5/x86_64/seamonkey-2.7.1-26.el5.x86_64.rpm
./seamonkey/seamonkey-2.7.1/RHEL6/x86_64/seamonkey-2.7.1-26.el6.x86_64.rpm




Expected results:

I should have obtained a successfully compiled Seamonkey.
OS: Windows XP → Linux
Hardware: x86 → x86_64
Version: SeaMonkey 2.0 Branch → SeaMonkey 2.8 Branch
See my previous builds at:
http://vscojot.free.fr/dist/index.php?path=seamonkey
Fixed it by using that patch:
*** mozilla/gfx/angle/src/compiler/Types.h.orig Wed Mar 21 15:51:43 2012
--- mozilla/gfx/angle/src/compiler/Types.h      Wed Mar 21 15:50:15 2012
***************
*** 7,12 ****
--- 7,13 ----
  #ifndef _TYPES_INCLUDED
  #define _TYPES_INCLUDED

+ #include <stdlib.h>
  #include "compiler/BaseTypes.h"
  #include "compiler/Common.h"
  #include "compiler/compilerdebug.h"

I have no idea if this is the proper script but my rpms do build and work properly with this patch.
Almost correct. See Attachment 602738 [details] [diff] in Bug 732764.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Component: General → Build Config
QA Contact: general → build-config
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.