[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread nheghathivhistha at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

--- Comment #1 from David Kredba nheghathivhistha at gmail dot com ---
Gcc-4.8.2 compiles Calligra 2.7.91 with the same CFLAGS.


[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2014-01-29
 Ever confirmed|0   |1

--- Comment #2 from Richard Biener rguenth at gcc dot gnu.org ---
The ICE is usually a sign of mismatched compiler versions of LTO objects.  I
cannot reproduce the ICE (but I have to remove -Wl,--no-undefined and the libs
as I don't have them).

Please make sure the libraries do not have LTO bytecode (any of them is
static?)


[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread nheghathivhistha at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

--- Comment #3 from David Kredba nheghathivhistha at gmail dot com ---
Thank you.

sci-libs/vc was build with gcc 4.9 lto a few svn revisions before, other
libraries are not built with LTO at all.

I will try vc first and then this again.


[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread nheghathivhistha at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

--- Comment #4 from David Kredba nheghathivhistha at gmail dot com ---
No, it was not gcc 4.9 lto on vc, it was gcc 4.8.2 lto, so no slim.

I can't build vc with gcc 4.9 lto:

Linking CXX executable c++11_arithmetics_sse
cd /var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3_build/tests 
/usr/bin/cmake -E cmake_link_script
CMakeFiles/c++11_arithmetics_sse.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++   -flto=4 -fuse-linker-plugin -O2 -ggdb -pipe
-march=native -mtune=native  -W -Wall -Wswitch -Wformat -Wchar-subscripts
-Wparentheses -Wmultichar -Wtrigraphs -Wpointer-arith -Wcast-align
-Wreturn-type -Wno-unused-function -pedantic -Wno-long-long -Wshadow -ansi
-Wundef -Wold-style-cast -Wno-variadic-macros -Wno-unused-local-typedefs  
-flto=4 -fuse-linker-plugin -Wl,--as-needed -Wl,-O2 -O2 -ggdb -pipe
-march=native -mtune=native
CMakeFiles/c++11_arithmetics_sse.dir/arithmetics.cpp.o  -o
c++11_arithmetics_sse -rdynamic ../libVc.a
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans0.ltrans.o: In function
`void fmaVc::Scalar::Vectorshort ()':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans0.ltrans.o: In function
`store':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/scalar/vector.h:125: undefined
reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/scalar/vector.h:125: undefined
reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans0.ltrans.o: In function
`void fmaVc::Scalar::Vectorunsigned short ()':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans0.ltrans.o:/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
more undefined references to `Vc::RandomState' follow
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans1.ltrans.o: In function
`isImplementationSupported':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/support.h:90:
undefined reference to `Vc::isImplementationSupported(Vc::Implementation)'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/support.h:91:
undefined reference to `Vc::extraInstructionsSupported()'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/cc8elhuv.ltrans6.ltrans.o: In function
`__base_ctor ':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/version.h:45:
undefined reference to `Vc::checkLibraryAbi(unsigned int, unsigned int, char
const*)'
collect2: error: ld returned 1 exit status
tests/CMakeFiles/arithmetics_scalar.dir/build.make:241: recipe for target
'tests/arithmetics_scalar' failed
make[2]: *** [tests/arithmetics_scalar] Error 1
make[2]: Leaving directory
'/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3_build'
CMakeFiles/Makefile2:1506: recipe for target
'tests/CMakeFiles/arithmetics_scalar.dir/all' failed
make[1]: *** [tests/CMakeFiles/arithmetics_scalar.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans0.ltrans.o: In function
`void fmaVc::Scalar::Vectorshort ()':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans0.ltrans.o: In function
`store':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/scalar/vector.h:125: undefined
reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/scalar/vector.h:125: undefined
reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans0.ltrans.o: In function
`void fmaVc::Scalar::Vectorunsigned short ()':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
undefined reference to `Vc::RandomState'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans0.ltrans.o:/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/tests/arithmetics.cpp:409:
more undefined references to `Vc::RandomState' follow
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans2.ltrans.o: In function
`isImplementationSupported':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/support.h:90:
undefined reference to `Vc::isImplementationSupported(Vc::Implementation)'
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/support.h:91:
undefined reference to `Vc::extraInstructionsSupported()'
/var/tmp/portage/dev-libs/vc-0.7.3/temp/ccA8DzQC.ltrans7.ltrans.o: In function
`__base_ctor ':
/var/tmp/portage/dev-libs/vc-0.7.3/work/vc-0.7.3/include/Vc/version.h:45:
undefined reference to `Vc::checkLibraryAbi(unsigned int, unsigned int, char
const*)'
collect2: error: 

[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

--- Comment #5 from Richard Biener rguenth at gcc dot gnu.org ---
(In reply to David Kredba from comment #3)
 Thank you.
 
 sci-libs/vc was build with gcc 4.9 lto a few svn revisions before, other
 libraries are not built with LTO at all.
 
 I will try vc first and then this again.

Mixing LTO bytecode from different releases (or even different SVN revisions)
isn't supported and in most cases doesn't work (in surprising ways).

Unfortunately GCC doesn't have good measures to defend itself from LTO
bytecode format changes ... :/


[Bug lto/59977] lto1: internal compiler error: bytecode stream: expected tag real_type instead of error_mark

2014-01-29 Thread nheghathivhistha at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59977

David Kredba nheghathivhistha at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #6 from David Kredba nheghathivhistha at gmail dot com ---
It was the vc with gcc 4.8.2 lto.

Thank you.

I still can't compile calligra with gcc-4.9 (with or without lto) but that is
part of another bug.