https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80090
Bug ID: 80090 Summary: Incorrect assembler - output_addr_const may generate visibility output between op and address constant Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa-unknown-linux-gnu Target: hppa-unknown-linux-gnu Build: hppa-unknown-linux-gnu The build of autodock-vina fails as follows on hppa: g++ -pthread -ansi -Wno-long-long -O3 -DNDEBUG -I /usr/include --lto -o vina main.o cache.o coords.o current_weights.o everything.o grid.o szv_grid.o manifold.o model.o monte_carlo.o mutate.o my_pid.o naive_non_cache.o non_cache.o parallel_mc.o parse_pdbqt.o pdb.o quasi_newton.o quaternion.o random.o ssd.o terms.o weighted_terms.o -l boost_system -l boost_thread -l boost_program_options -lboost_filesystem /tmp/cceWz5Tk.s: Assembler messages: /tmp/cceWz5Tk.s:5010: Error: junk at end of line, first unrecognized character is `_' /tmp/cceWz5Tk.s:5011: Error: Unknown opcode: `_zti14internal_error' /tmp/cceWz5Tk.s:5017: Error: junk at end of line, first unrecognized character is `_' /tmp/cceWz5Tk.s:5018: Error: Unknown opcode: `_zti11parse_error' lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. In more detail, we have: dave@mx3210:~/debian/autodock-vina/autodock-vina-1.1.2/build/linux/release$ cat xx.sh Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/hppa-linux-gnu/6/lto-wrapper Target: hppa-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-9' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=hppa-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libssp --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-hppa/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-hppa --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-hppa --with-arch-directory=parisc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-multiarch --disable-libstdcxx-pch --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu Thread model: posix gcc version 6.3.0 20170316 (Debian 6.3.0-9) COMPILER_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/ COLLECT_GCC_OPTIONS='-pthread' '-ansi' '-Wno-long-long' '-O3' '-D' 'NDEBUG' '-I' '/usr/include' '-flto' '-o' 'vina' '-v' '-save-temps' '-shared-libgcc' /usr/lib/gcc/hppa-linux-gnu/6/collect2 -plugin /usr/lib/gcc/hppa-linux-gnu/6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/hppa-linux-gnu/6/lto-wrapper -plugin-opt=-fresolution=-lm.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -flto --sysroot=/ --build-id --eh-frame-hdr -dynamic-linker /lib/ld.so.1 -o vina /usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/crt1.o /usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/crti.o /usr/lib/gcc/hppa-linux-gnu/6/crtbegin.o -L/usr/lib/gcc/hppa-linux-gnu/6 -L/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu -L/usr/lib/gcc/hppa-linux-gnu/6/../../.. -L/lib/hppa-linux-gnu -L/usr/lib/hppa-linux-gnu main.o cache.o coords.o current_weights.o everything.o grid.o szv_grid.o manifold.o model.o monte_carlo.o mutate.o my_pid.o naive_non_cache.o non_cache.o parallel_mc.o parse_pdbqt.o pdb.o quasi_newton.o quaternion.o random.o ssd.o terms.o weighted_terms.o -lboost_system -lboost_thread -lboost_program_options -lboost_filesystem -lstdc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc /usr/lib/gcc/hppa-linux-gnu/6/crtend.o /usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/crtn.o g++ @/tmp/ccp6Ob4O Using built-in specs. COLLECT_GCC=g++ Target: hppa-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-9' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=hppa-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libssp --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-hppa/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-hppa --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-hppa --with-arch-directory=parisc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-multiarch --disable-libstdcxx-pch --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu Thread model: posix gcc version 6.3.0 20170316 (Debian 6.3.0-9) COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.wpa' '-fltrans-output-list=vina.ltrans.out' '-fwpa' '-fresolution=-lm.res' '-flinker-output=exec' '-shared-libgcc' /usr/lib/gcc/hppa-linux-gnu/6/lto1 -quiet -dumpdir ./ -dumpbase vina.wpa -auxbase main -O3 -O2 -O3 -version -fexceptions -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv -fno-openmp -fno-openacc -fltrans-output-list=vina.ltrans.out -fwpa -fresolution=-lm.res -flinker-output=exec @/tmp/ccoKnHeW GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COMPILER_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/hppa-linux-gnu/:/usr/lib/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.wpa' '-fltrans-output-list=vina.ltrans.out' '-fwpa' '-fresolution=-lm.res' '-flinker-output=exec' '-shared-libgcc' [Leaving LTRANS vina.ltrans.out] g++ @/tmp/ccmUnbPE Using built-in specs. COLLECT_GCC=g++ Target: hppa-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-9' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=hppa-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libssp --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-hppa/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-hppa --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-hppa --with-arch-directory=parisc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-multiarch --disable-libstdcxx-pch --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu Thread model: posix gcc version 6.3.0 20170316 (Debian 6.3.0-9) COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans0' '-fltrans' '-o' 'vina.ltrans0.ltrans.o' '-shared-libgcc' /usr/lib/gcc/hppa-linux-gnu/6/lto1 -quiet -dumpdir ./ -dumpbase vina.ltrans0 -auxbase-strip vina.ltrans0.ltrans.o -O3 -O2 -O3 -version -fexceptions -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv -fno-openmp -fno-openacc -fltrans @/tmp/cckk9932 -o vina.ltrans0.s GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans0' '-fltrans' '-o' 'vina.ltrans0.ltrans.o' '-shared-libgcc' as -v -o vina.ltrans0.ltrans.o vina.ltrans0.s GNU assembler version 2.28 (hppa-linux-gnu) using BFD version (GNU Binutils for Debian) 2.28 COMPILER_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/hppa-linux-gnu/:/usr/lib/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans0' '-fltrans' '-o' 'vina.ltrans0.ltrans.o' '-shared-libgcc' [Leaving LTRANS vina.ltrans0.o] g++ @/tmp/ccGrq0RP Using built-in specs. COLLECT_GCC=g++ Target: hppa-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-9' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=hppa-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libssp --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-hppa/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-hppa --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-hppa --with-arch-directory=parisc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-multiarch --disable-libstdcxx-pch --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu Thread model: posix gcc version 6.3.0 20170316 (Debian 6.3.0-9) COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans1' '-fltrans' '-o' 'vina.ltrans1.ltrans.o' '-shared-libgcc' /usr/lib/gcc/hppa-linux-gnu/6/lto1 -quiet -dumpdir ./ -dumpbase vina.ltrans1 -auxbase-strip vina.ltrans1.ltrans.o -O3 -O2 -O3 -version -fexceptions -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv -fno-openmp -fno-openacc -fltrans @/tmp/ccC8EU9j -o vina.ltrans1.s GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans1' '-fltrans' '-o' 'vina.ltrans1.ltrans.o' '-shared-libgcc' as -v -o vina.ltrans1.ltrans.o vina.ltrans1.s GNU assembler version 2.28 (hppa-linux-gnu) using BFD version (GNU Binutils for Debian) 2.28 COMPILER_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/ LIBRARY_PATH=/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/hppa-linux-gnu/:/usr/lib/:/usr/lib/gcc/hppa-linux-gnu/6/:/usr/lib/gcc/hppa-linux-gnu/6/../../../hppa-linux-gnu/:/usr/lib/gcc/hppa-linux-gnu/6/../../../:/lib/hppa-linux-gnu/:/lib/:/usr/lib/hppa-linux-gnu/:/usr/lib/ COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans1' '-fltrans' '-o' 'vina.ltrans1.ltrans.o' '-shared-libgcc' [Leaving LTRANS vina.ltrans1.o] g++ @/tmp/ccTf3FJi Using built-in specs. COLLECT_GCC=g++ Target: hppa-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-9' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=hppa-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libssp --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-hppa/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-hppa --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-hppa --with-arch-directory=parisc --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc=auto --enable-multiarch --disable-libstdcxx-pch --enable-checking=release --build=hppa-linux-gnu --host=hppa-linux-gnu --target=hppa-linux-gnu Thread model: posix gcc version 6.3.0 20170316 (Debian 6.3.0-9) COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans2' '-fltrans' '-o' 'vina.ltrans2.ltrans.o' '-shared-libgcc' /usr/lib/gcc/hppa-linux-gnu/6/lto1 -quiet -dumpdir ./ -dumpbase vina.ltrans2 -auxbase-strip vina.ltrans2.ltrans.o -O3 -O2 -O3 -version -fexceptions -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv -fno-openmp -fno-openacc -fltrans @/tmp/ccxCNU2G -o vina.ltrans2.s GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (Debian 6.3.0-9) version 6.3.0 20170316 (hppa-linux-gnu) compiled by GNU C version 6.3.0 20170316, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-c' '-fexceptions' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math' '-fno-trapv' '-fno-openmp' '-fno-openacc' '-O3' '-O2' '-pthread' '-O3' '-D' 'NDEBUG' '-v' '-save-temps' '-shared-libgcc' '-dumpdir' './' '-dumpbase' 'vina.ltrans2' '-fltrans' '-o' 'vina.ltrans2.ltrans.o' '-shared-libgcc' as -v -o vina.ltrans2.ltrans.o vina.ltrans2.s GNU assembler version 2.28 (hppa-linux-gnu) using BFD version (GNU Binutils for Debian) 2.28 vina.ltrans2.s: Assembler messages: vina.ltrans2.s:5010: Error: junk at end of line, first unrecognized character is `_' vina.ltrans2.s:5011: Error: Unknown opcode: `_zti14internal_error' vina.ltrans2.s:5017: Error: junk at end of line, first unrecognized character is `_' vina.ltrans2.s:5018: Error: Unknown opcode: `_zti11parse_error' lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. [Leaving LTRANS vina.ltrans0.o] [Leaving LTRANS vina.ltrans0.ltrans.o] [Leaving LTRANS vina.ltrans1.o] [Leaving LTRANS vina.ltrans1.ltrans.o] [Leaving LTRANS vina.ltrans2.o] [Leaving LTRANS vina.ltrans3.o] [Leaving LTRANS vina.ltrans4.o] [Leaving LTRANS vina.ltrans5.o] [Leaving LTRANS vina.ltrans6.o] [Leaving LTRANS vina.ltrans7.o] [Leaving LTRANS vina.ltrans8.o] [Leaving LTRANS vina.ltrans9.o] [Leaving LTRANS vina.ltrans10.o] [Leaving LTRANS vina.ltrans11.o] [Leaving LTRANS vina.ltrans12.o] [Leaving LTRANS vina.ltrans13.o] [Leaving LTRANS vina.ltrans14.o] [Leaving LTRANS vina.ltrans15.o] [Leaving LTRANS vina.ltrans16.o] [Leaving LTRANS vina.ltrans17.o] [Leaving LTRANS vina.ltrans18.o] [Leaving LTRANS vina.ltrans19.o] [Leaving LTRANS vina.ltrans20.o] [Leaving LTRANS vina.ltrans21.o] [Leaving LTRANS vina.ltrans22.o] [Leaving LTRANS vina.ltrans23.o] [Leaving LTRANS vina.ltrans24.o] [Leaving LTRANS vina.ltrans25.o] [Leaving LTRANS vina.ltrans26.o] [Leaving LTRANS vina.ltrans27.o] [Leaving LTRANS vina.ltrans28.o] [Leaving LTRANS vina.ltrans29.o] /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status The problem with the assembly is here: .hidden _ZN11usage_errorD1Ev.lto_priv.665 .ident "GCC: (Debian 6.3.0-9) 6.3.0 20170316" .section .rodata .align 4 .L696: .word _ZTIN5boost15program_options5errorE .L697: .word .hidden _ZTI14internal_error _ZTI14internal_error As can be seen, a .hidden directive was emitted between the .word and symbol name. As far as I can tell, the backtrace is as follows: default_assemble_visibility maybe_assemble_visibility default_elf_asm_output_external assemble_external output_addr_const assemble_integer_with_op default_assemble_integer In output_addr_const, we have for a SYMBOL_REF: case SYMBOL_REF: if (SYMBOL_REF_DECL (x)) assemble_external (SYMBOL_REF_DECL (x)); #ifdef ASM_OUTPUT_SYMBOL_REF ASM_OUTPUT_SYMBOL_REF (file, x); #else assemble_name (file, XSTR (x, 0)); #endif break; It doesn't seem correct to call assemble_external here. Why this doesn't trigger more often is a puzzle. It would seem to me that the call to assemble_external should be done in assemble_integer_with_op (and possibly other places) before outputting the op. I can probably hack around the problem in pa_assemble_integer.