* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
@ 2015-09-14 10:13 ` mpolacek at gcc dot gnu.org
2015-09-14 10:43 ` werner at beroux dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-09-14 10:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |mpolacek at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I bet this isn't a gcc fault; just OOM kills the compiler:
g++: internal compiler error: Killed (program cc1plus)
Please try with more memory.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
2015-09-14 10:13 ` [Bug c++/67571] " mpolacek at gcc dot gnu.org
@ 2015-09-14 10:43 ` werner at beroux dot com
2015-09-14 10:48 ` mpolacek at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-14 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #3 from werner at beroux dot com ---
I should clarify that the code being compiled might have changed as well
between the two:
https://github.com/ariya/phantomjs/commits/master
from 2015-06-25T20:16:02.750261Z (working)
to 2015-09-05T08:36:46.296402Z (started breaking)
and 2015-09-14T07:32:46.758499Z (still breaking)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
2015-09-14 10:13 ` [Bug c++/67571] " mpolacek at gcc dot gnu.org
2015-09-14 10:43 ` werner at beroux dot com
@ 2015-09-14 10:48 ` mpolacek at gcc dot gnu.org
2015-09-14 10:56 ` werner at beroux dot com
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-09-14 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
Last reconfirmed| |2015-09-14
Resolution|INVALID |---
Ever confirmed|0 |1
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Ok, reopening then, sorry. Maybe some change caused GCC to eat much more
memory than it really should.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (2 preceding siblings ...)
2015-09-14 10:48 ` mpolacek at gcc dot gnu.org
@ 2015-09-14 10:56 ` werner at beroux dot com
2015-09-14 11:02 ` werner at beroux dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-14 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #5 from werner at beroux dot com ---
I'm trying to build with newer GCC and older code to confirm that (build takes
a while).
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (3 preceding siblings ...)
2015-09-14 10:56 ` werner at beroux dot com
@ 2015-09-14 11:02 ` werner at beroux dot com
2015-09-14 11:20 ` trippels at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-14 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #6 from werner at beroux dot com ---
Humm no sorry I'm building from the same git tag (which is of Jan 24). So it
looks like something caused GCC to use more memory than before.
I did notice a GCC5 compilation fix, probably unrelated, just in case it here:
https://github.com/ariya/phantomjs/commit/fe2c6bb5fdf776b718422a104e6babe67dbf2629
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (4 preceding siblings ...)
2015-09-14 11:02 ` werner at beroux dot com
@ 2015-09-14 11:20 ` trippels at gcc dot gnu.org
2015-09-15 8:07 ` werner at beroux dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-09-14 11:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |trippels at gcc dot gnu.org
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Can you please attach the preprocessed JSBindingsAllInOne.ii file (by
adding -save-temps to the compiler invocation)?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (5 preceding siblings ...)
2015-09-14 11:20 ` trippels at gcc dot gnu.org
@ 2015-09-15 8:07 ` werner at beroux dot com
2015-09-16 15:21 ` werner at beroux dot com
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-15 8:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #8 from werner at beroux dot com ---
Tried to build the exact same just on newer gcc and nothing else should have
changed, and it failed.
I'll try to build on older gcc as well.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (6 preceding siblings ...)
2015-09-15 8:07 ` werner at beroux dot com
@ 2015-09-16 15:21 ` werner at beroux dot com
2015-09-16 15:26 ` trippels at gcc dot gnu.org
2015-09-16 18:53 ` werner at beroux dot com
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-16 15:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #9 from werner at beroux dot com ---
(In reply to Markus Trippelsdorf from comment #7)
> Can you please attach the preprocessed JSBindingsAllInOne.ii file (by
> adding -save-temps to the compiler invocation)?
I added that flag (at least I think it worked) but I find any file of that name
below /tmp/phantomjs (my build directory). Do you know where it's supposed to
be generated at?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (7 preceding siblings ...)
2015-09-16 15:21 ` werner at beroux dot com
@ 2015-09-16 15:26 ` trippels at gcc dot gnu.org
2015-09-16 18:53 ` werner at beroux dot com
9 siblings, 0 replies; 11+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-09-16 15:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #10 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to werner from comment #9)
> (In reply to Markus Trippelsdorf from comment #7)
> > Can you please attach the preprocessed JSBindingsAllInOne.ii file (by
> > adding -save-temps to the compiler invocation)?
>
> I added that flag (at least I think it worked) but I find any file of that
> name below /tmp/phantomjs (my build directory). Do you know where it's
> supposed to be generated at?
In the directory from which you've invoked gcc.
So in your case:
cd /tmp/phantomjs/src/qt/qtwebkit/Source/WebCore
g++ --save-temps -c -Wall -Wextra -Wreturn-type ... (from comment 0)
You'll find JSBindingsAllInOne.ii in
/tmp/phantomjs/src/qt/qtwebkit/Source/WebCore
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/67571] Error: open CFI at the end of file; missing .cfi_endproc directive
2015-09-14 10:05 [Bug c++/67571] New: Error: open CFI at the end of file; missing .cfi_endproc directive werner at beroux dot com
` (8 preceding siblings ...)
2015-09-16 15:26 ` trippels at gcc dot gnu.org
@ 2015-09-16 18:53 ` werner at beroux dot com
9 siblings, 0 replies; 11+ messages in thread
From: werner at beroux dot com @ 2015-09-16 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67571
--- Comment #11 from werner at beroux dot com ---
(In reply to Markus Trippelsdorf from comment #10)
> (In reply to werner from comment #9)
> > (In reply to Markus Trippelsdorf from comment #7)
> > > Can you please attach the preprocessed JSBindingsAllInOne.ii file (by
> > > adding -save-temps to the compiler invocation)?
> >
> > I added that flag (at least I think it worked) but I find any file of that
> > name below /tmp/phantomjs (my build directory). Do you know where it's
> > supposed to be generated at?
>
> In the directory from which you've invoked gcc.
>
> So in your case:
> cd /tmp/phantomjs/src/qt/qtwebkit/Source/WebCore
> g++ --save-temps -c -Wall -Wextra -Wreturn-type ... (from comment 0)
>
> You'll find JSBindingsAllInOne.ii in
> /tmp/phantomjs/src/qt/qtwebkit/Source/WebCore
It's odd, I get another error with -save-temps (correctly passed this time):
> g++: warning: -pipe ignored because -save-temps specified
> In file included from <command-line>:0:0:
> /usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
> #endif
> ^
> /usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
> /usr/include/stdc-predef.h:59:1: fatal error: .pch/Qt5Core: No such file or directory
> compilation terminated.
> Makefile:18187: recipe for target '.obj/harfbuzz-shaper-all.o' failed
> make[2]: *** [.obj/harfbuzz-shaper-all.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> In file included from <command-line>:0:0:
> /usr/include/stdc-predef.h:59:1: error: one or more PCH files were found, but they were invalid
> #endif
> ^
> /usr/include/stdc-predef.h:59:1: error: use -Winvalid-pch for more information
> /usr/include/stdc-predef.h:59:1: fatal error: .pch/Qt5Core: No such file or directory
> compilation terminated.
> Makefile:18301: recipe for target '.obj/qharfbuzz.o' failed
> make[2]: *** [.obj/qharfbuzz.o] Error 1
> In file included from ../3rdparty/pcre/pcre16_exec.c:43:0:
> ../3rdparty/pcre/pcre_exec.c: In function 'match':
> ../3rdparty/pcre/pcre_exec.c:2703:35: warning: 'offset' may be used uninitialized in this function [-Wmaybe-uninitialized]
> length = md->offset_vector[offset+1] - md->offset_vector[offset];
> ^
> In file included from ../3rdparty/pcre/pcre16_compile.c:43:0:
> ../3rdparty/pcre/pcre_compile.c: In function 'compile_regex':
> ../3rdparty/pcre/pcre_compile.c:6748:31: warning: 'name' may be used uninitialized in this function [-Wmaybe-uninitialized]
> if (!IS_DIGIT(name[i]))
> ^
> ../3rdparty/pcre/pcre_compile.c:6511:25: note: 'name' was declared here
> const pcre_uchar *name;
> ^
> ../3rdparty/pcre/pcre_compile.c:6509:26: warning: 'namelen' may be used uninitialized in this function [-Wmaybe-uninitialized]
> int i, set, unset, namelen;
> ^
> ../3rdparty/pcre/pcre_compile.c:6680:26: warning: 'recno' may be used uninitialized in this function [-Wmaybe-uninitialized]
> cd->bracount - recno + 1 : recno + cd->bracount;
> ^
> ../3rdparty/pcre/pcre_compile.c:4453:7: note: 'recno' was declared here
> int recno;
> ^
> make[2]: Leaving directory '/tmp/phantomjs/src/qt/qtbase/src/corelib'
> Makefile:130: recipe for target 'sub-corelib-make_first' failed
> make[1]: *** [sub-corelib-make_first] Error 2
> make[1]: Leaving directory '/tmp/phantomjs/src/qt/qtbase/src'
> Makefile:39: recipe for target 'sub-src-make_first' failed
> make: *** [sub-src-make_first] Error 2
^ permalink raw reply [flat|nested] 11+ messages in thread