[Pkg-javascript-devel] Bug#667257: libv8: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:10:27 UTC 2012


Package: libv8
Version: 3.7.12.22-3
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/libv8_3.7.12.22-3_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/hydrogen-instructions.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/hydrogen-instructions.o ../src/hydrogen-instructions.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/ic.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/ic.o ../src/ic.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/incremental-marking.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/incremental-marking.o ../src/incremental-marking.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/inspector.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/inspector.o ../src/inspector.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/interpreter-irregexp.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/interpreter-irregexp.o ../src/interpreter-irregexp.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/jsregexp.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/jsregexp.o ../src/jsregexp.cc
  g++ '-DENABLE_DEBUGGER_SUPPORT' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -fomit-frame-pointer -O3  -MMD -MF /«PKGBUILDDIR»/out/x64.release/.deps//«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/isolate.o.d.raw -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -Wno-unused-but-set-variable -c -o /«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/isolate.o ../src/isolate.cc
In file included from ../src/handles.cc:40:0:
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = char; SubjectChar = char]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = char; SubjectChar = short unsigned int]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
cc1plus: all warnings being treated as errors
make[2]: *** [/«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/handles.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from ../src/jsregexp.cc:36:0:
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = char; SubjectChar = char]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = char; SubjectChar = short unsigned int]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = short unsigned int; SubjectChar = char]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
../src/string-search.h: In member function 'void v8::internal::StringSearch<PatternChar, SubjectChar>::PopulateBoyerMooreTable() [with PatternChar = short unsigned int; SubjectChar = short unsigned int]':
../src/string-search.h:401:3: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow]
cc1plus: all warnings being treated as errors
make[2]: *** [/«PKGBUILDDIR»/out/x64.release/obj.target/v8_base/src/jsregexp.o] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»/out'
make[1]: *** [x64.release] Error 2
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the Pkg-javascript-devel mailing list