[Bug lto/89260] New: ICE in read_cgraph_and_symbols, at lto/lto.c:2800 while compiling harfbuzz
ohaiziejohwahkeezuoz at xff dot cz
gcc-bugzilla@gcc.gnu.org
Fri Feb 8 17:25:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89260
Bug ID: 89260
Summary: ICE in read_cgraph_and_symbols, at lto/lto.c:2800
while compiling harfbuzz
Product: gcc
Version: 8.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: ohaiziejohwahkeezuoz at xff dot cz
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Target: aarch64-linux-musl
Build: x86_64-linux-unknown
Hello,
I get ICE with gcc 8.2.1 (trunk) rev268702.
gcc was built with:
configure \
--target=$TARGET \
--prefix="$PREFIX" \
--libdir="$PREFIX/lib" \
--enable-languages=$langs \
--disable-werror \
--disable-nls \
--disable-multilib \
--disable-shared \
--enable-tls \
--enable-threads=posix \
--disable-libmudflap \
--disable-libsanitizer \
--disable-gnu-indirect-function \
--disable-libmpx \
--enable-deterministic-archives \
--enable-libstdcxx-time \
--enable-fully-dynamic-string \
--enable-cloog-backend=isl \
--enable-lto \
--enable-libgomp \
--enable-checking=release \
I'm trying to build the upstream harfbuzz 2.3.1 package.
https://www.freedesktop.org/software/harfbuzz/release/
Sorry for not providing preprocessed file, but I'm not sure what to priovide,
given that lto build step fails. Hopefully it will be easily reproducible. Let
me know if I can provide more information.
/bin/sh ../libtool --tag=CXX --mode=link aarch64-linux-musl-g++ -fno-rtti
-g0 -Os -fomit-frame-pointer -flto -save-temps -fno-exceptions
-fno-threadsafe-statics -fvisibility-inlines-hidden
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib -g0 -Os
-fomit-frame-pointer -flto -save-temps -static -all-static -o
hb-ot-shape-closure hb-ot-shape-closure.o options.o ../src/libharfbuzz.la -lm
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
-lglib-2.0 -pthread
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib/../lib64
-lffi -L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
-lfreetype
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib -lz
-lpng16 -lz
libtool: link: aarch64-linux-musl-g++ -fno-rtti -g0 -Os -fomit-frame-pointer
-flto -save-temps -fno-exceptions -fno-threadsafe-statics
-fvisibility-inlines-hidden -g0 -Os -fomit-frame-pointer -flto -save-temps
-static -o hb-subset hb-subset.o options.o -pthread
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
../src/.libs/libharfbuzz.a
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib/../lib64
-lm ../src/.libs/libharfbuzz-subset.a
/workspace/megous.com/apps-c/static-deps/output/arm64-lto/builds/harfbuzz/src/harfbuzz-2.3.1/src/.libs/libharfbuzz.a
-lglib-2.0 -lffi -lfreetype -lpng16 -lz -pthread
libtool: link: aarch64-linux-musl-g++ -fno-rtti -g0 -Os -fomit-frame-pointer
-flto -save-temps -fno-exceptions -fno-threadsafe-statics
-fvisibility-inlines-hidden -g0 -Os -fomit-frame-pointer -flto -save-temps
-static -o hb-shape hb-shape.o options.o -pthread
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
../src/.libs/libharfbuzz.a
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib/../lib64
-lm -lglib-2.0 -lffi -lfreetype -lpng16 -lz -pthread
libtool: link: aarch64-linux-musl-g++ -fno-rtti -g0 -Os -fomit-frame-pointer
-flto -save-temps -fno-exceptions -fno-threadsafe-statics
-fvisibility-inlines-hidden -g0 -Os -fomit-frame-pointer -flto -save-temps
-static -o hb-view hb-view.o options.o ansi-print.o helper-cairo.o
helper-cairo-ansi.o view-cairo.o -pthread -pthread -pthread -pthread -pthread
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
../src/.libs/libharfbuzz.a
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib/../lib64
-lcairo -lgobject-2.0 -lglib-2.0 -lffi -lpixman-1 -lfontconfig -luuid -lxml2
-lm -lfreetype -lpng16 -lz -pthread
libtool: link: aarch64-linux-musl-g++ -fno-rtti -g0 -Os -fomit-frame-pointer
-flto -save-temps -fno-exceptions -fno-threadsafe-statics
-fvisibility-inlines-hidden -g0 -Os -fomit-frame-pointer -flto -save-temps
-static -o hb-ot-shape-closure hb-ot-shape-closure.o options.o -pthread
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib
../src/.libs/libharfbuzz.a
-L/workspace/megous.com/apps-c/static-deps/output/arm64-lto/sys/usr/lib/../lib64
-lm -lglib-2.0 -lffi -lfreetype -lpng16 -lz -pthread
lto1: internal compiler error: in read_cgraph_and_symbols, at lto/lto.c:2800
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: aarch64-linux-musl-g++ returned 1 exit status
compilation terminated.
/workspace/megous.com/apps-c/static-deps/toolchains/aarch64-linux-musl/lib/gcc/aarch64-linux-musl/8.2.1/../../../../aarch64-linux-musl/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:620: hb-subset] Error 1
make[2]: *** Waiting for unfinished jobs....
lto1: internal compiler error: invalid resolution in the resolution file
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: aarch64-linux-musl-g++ returned 1 exit status
compilation terminated.
/workspace/megous.com/apps-c/static-deps/toolchains/aarch64-linux-musl/lib/gcc/aarch64-linux-musl/8.2.1/../../../../aarch64-linux-musl/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:616: hb-shape] Error 1
lto1: internal compiler error: invalid resolution in the resolution file
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: aarch64-linux-musl-g++ returned 1 exit status
compilation terminated.
/workspace/megous.com/apps-c/static-deps/toolchains/aarch64-linux-musl/lib/gcc/aarch64-linux-musl/8.2.1/../../../../aarch64-linux-musl/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:612: hb-ot-shape-closure] Error 1
hb-ot-cff1-table.cc:209:8: warning: type 'struct extents_param_t' violates the
C++ One Definition Rule [-Wodr]
hb-ot-cff2-table.cc:32:8: note: a different type is defined in another
translation unit
hb-ot-cff1-table.cc:223:12: note: the first difference of corresponding
definitions is field 'bounds'
hb-ot-cff2-table.cc:56:12: note: a field with different name is defined in
another translation unit
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: aarch64-linux-musl-g++ returned 1 exit status
compilation terminated.
/workspace/megous.com/apps-c/static-deps/toolchains/aarch64-linux-musl/lib/gcc/aarch64-linux-musl/8.2.1/../../../../aarch64-linux-musl/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:624: hb-view] Error 1
make[2]: Leaving directory
'/workspace/megous.com/apps-c/static-deps/output/arm64-lto/builds/harfbuzz/src/harfbuzz-2.3.1/util'
make[1]: *** [Makefile:517: all-recursive] Error 1
make[1]: Leaving directory
'/workspace/megous.com/apps-c/static-deps/output/arm64-lto/builds/harfbuzz/src/harfbuzz-2.3.1'
make: *** [Makefile:449: all] Error 2
ERROR: Build failed!
More information about the Gcc-bugs
mailing list