Bug#925682: flang: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:45:01 GMT 2019


Package: src:flang
Version: 20181226-2
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-9/g++-9, but succeeds to build with gcc-8/g++-8. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc9-20190321/flang_20181226-2_unstable_gcc9.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
[ 26%] Building C object tools/flang1/flang1exe/CMakeFiles/flang1.dir/__/__/shared/x86.c.o
cd /<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/flang1exe && /usr/bin/cc -DGTEST_HAS_RTTI=0 -DMMD -DPGF90 -DPGFLANG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/stage2/include -I/usr/lib/llvm-7/include -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/include -I/<<PKGBUILDDIR>>/include/flang -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/symtab -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/machar -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/ast -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/prstab -I/<<PKGBUILDDIR>>/tools/flang1/flang1exe -I/<<PKGBUILDDIR>>/tools/shared  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -Werror   -std=c11 -o CMakeFiles/flang1.dir/__/__/shared/x86.c.o   -c /<<PKGBUILDDIR>>/tools/shared/x86.c
[ 26%] Building C object tools/flang1/flang1exe/CMakeFiles/flang1.dir/__/__/shared/nmeutil.c.o
cd /<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/flang1exe && /usr/bin/cc -DGTEST_HAS_RTTI=0 -DMMD -DPGF90 -DPGFLANG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/stage2/include -I/usr/lib/llvm-7/include -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/include -I/<<PKGBUILDDIR>>/include/flang -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/symtab -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/machar -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/ast -I/<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/utils/prstab -I/<<PKGBUILDDIR>>/tools/flang1/flang1exe -I/<<PKGBUILDDIR>>/tools/shared  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -Werror   -std=c11 -o CMakeFiles/flang1.dir/__/__/shared/nmeutil.c.o   -c /<<PKGBUILDDIR>>/tools/shared/nmeutil.c
[ 26%] Linking C executable ../../../bin/flang1
cd /<<PKGBUILDDIR>>/debian/build/stage2/tools/flang1/flang1exe && /usr/bin/cmake -E cmake_link_script CMakeFiles/flang1.dir/link.txt --verbose=1
/usr/bin/cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Werror=date-time -w -ffunction-sections -fdata-sections -Werror  -Wl,-z,relro -rdynamic  -Wl,-rpath-link,/<<PKGBUILDDIR>>/debian/build/stage2/./lib  -Wl,-O3 -Wl,--gc-sections CMakeFiles/flang1.dir/accpp.c.o CMakeFiles/flang1.dir/assem.c.o CMakeFiles/flang1.dir/ast.c.o CMakeFiles/flang1.dir/astdf.c.o CMakeFiles/flang1.dir/astout.c.o CMakeFiles/flang1.dir/bblock.c.o CMakeFiles/flang1.dir/comm.c.o CMakeFiles/flang1.dir/commdf.c.o CMakeFiles/flang1.dir/commgen.c.o CMakeFiles/flang1.dir/comminvar.c.o CMakeFiles/flang1.dir/commopt.c.o CMakeFiles/flang1.dir/datadep.c.o CMakeFiles/flang1.dir/detect.c.o CMakeFiles/flang1.dir/dinit.c.o CMakeFiles/flang1.dir/dinitutl.c.o CMakeFiles/flang1.dir/dist.c.o CMakeFiles/flang1.dir/dpm_out.c.o CMakeFiles/flang1.dir/dtypeutl.c.o CMakeFiles/flang1.dir/dummy.c.o CMakeFiles/flang1.dir/dump.c.o CMakeFiles/flang1.dir/exterf.c.o CMakeFiles/flang1.dir/fenddf.c.o CMakeFiles/flang1.dir/fgraph.c.o CMakeFiles/flang1.dir/findloop.c.o CMakeFiles/flang1.dir/flow.c.o CMakeFiles/flang1.dir/fpp.c.o CMakeFiles/flang1.dir/func.c.o CMakeFiles/flang1.dir/hlvect.c.o CMakeFiles/flang1.dir/hpfutl.c.o CMakeFiles/flang1.dir/induc.c.o CMakeFiles/flang1.dir/inliner.c.o CMakeFiles/flang1.dir/interf.c.o CMakeFiles/flang1.dir/invar.c.o CMakeFiles/flang1.dir/iterat.c.o CMakeFiles/flang1.dir/listing.c.o CMakeFiles/flang1.dir/lower.c.o CMakeFiles/flang1.dir/lowerchk.c.o CMakeFiles/flang1.dir/lowerexp.c.o CMakeFiles/flang1.dir/lowerilm.c.o CMakeFiles/flang1.dir/lowersym.c.o CMakeFiles/flang1.dir/lz.c.o CMakeFiles/flang1.dir/main.c.o CMakeFiles/flang1.dir/module.c.o CMakeFiles/flang1.dir/optdf.c.o CMakeFiles/flang1.dir/optimize.c.o CMakeFiles/flang1.dir/optutil.c.o CMakeFiles/flang1.dir/outconv.c.o CMakeFiles/flang1.dir/parser.c.o CMakeFiles/flang1.dir/pointsto.c.o CMakeFiles/flang1.dir/psemant.c.o CMakeFiles/flang1.dir/psemant2.c.o CMakeFiles/flang1.dir/psemant3.c.o CMakeFiles/flang1.dir/psemantio.c.o CMakeFiles/flang1.dir/psemsmp.c.o CMakeFiles/flang1.dir/pstride.c.o CMakeFiles/flang1.dir/redundss.c.o CMakeFiles/flang1.dir/rest.c.o CMakeFiles/flang1.dir/rte.c.o CMakeFiles/flang1.dir/scan.c.o CMakeFiles/flang1.dir/scopestack.c.o CMakeFiles/flang1.dir/semant.c.o CMakeFiles/flang1.dir/semant2.c.o CMakeFiles/flang1.dir/semant3.c.o CMakeFiles/flang1.dir/semantio.c.o CMakeFiles/flang1.dir/semast.c.o CMakeFiles/flang1.dir/semfin.c.o CMakeFiles/flang1.dir/semfunc.c.o CMakeFiles/flang1.dir/semfunc2.c.o CMakeFiles/flang1.dir/semgnr.c.o CMakeFiles/flang1.dir/semsmp.c.o CMakeFiles/flang1.dir/semsym.c.o CMakeFiles/flang1.dir/semtbp.c.o CMakeFiles/flang1.dir/semutil.c.o CMakeFiles/flang1.dir/semutil2.c.o CMakeFiles/flang1.dir/symacc.c.o CMakeFiles/flang1.dir/symtab.c.o CMakeFiles/flang1.dir/symutl.c.o CMakeFiles/flang1.dir/transfrm.c.o CMakeFiles/flang1.dir/version.c.o CMakeFiles/flang1.dir/xref.c.o CMakeFiles/flang1.dir/vsub.c.o CMakeFiles/flang1.dir/__/__/shared/ccffinfo.c.o CMakeFiles/flang1.dir/__/__/shared/direct.c.o CMakeFiles/flang1.dir/__/__/shared/error.c.o CMakeFiles/flang1.dir/__/__/shared/go.c.o CMakeFiles/flang1.dir/__/__/shared/ilidir.c.o CMakeFiles/flang1.dir/__/__/shared/llmputil.c.o CMakeFiles/flang1.dir/__/__/shared/mall.c.o CMakeFiles/flang1.dir/__/__/shared/miscutil.c.o CMakeFiles/flang1.dir/__/__/shared/pragma.c.o CMakeFiles/flang1.dir/__/__/shared/rtlRtns.c.o CMakeFiles/flang1.dir/__/__/shared/salloc.c.o CMakeFiles/flang1.dir/__/__/shared/x86.c.o CMakeFiles/flang1.dir/__/__/shared/nmeutil.c.o  -o ../../../bin/flang1  -L/usr/lib/llvm-7/lib -Wl,-rpath,"\$ORIGIN/../lib:/usr/lib/llvm-7/lib" /usr/lib/llvm-7/lib/libLLVM-7.so.1 -lpthread ../../../lib/libflangArgParser.a ../../../lib/scutil.a -lm ../../../lib/libflangADT.a 
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/stage2'
[ 26%] Built target flang1
/usr/bin/make -f runtime/flang/CMakeFiles/flang_shared.dir/build.make runtime/flang/CMakeFiles/flang_shared.dir/depend
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build/stage2'
[ 26%] Preprocessing ieee_exceptions.F95
cd /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang && /usr/bin/cc -E /<<PKGBUILDDIR>>/runtime/flang/ieee_exceptions.F95 -DDESC_I8 > I8_sources/ieee_exceptions.F95
[ 26%] Preprocessing ieee_arithmetic.F95
cd /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang && /usr/bin/cc -E /<<PKGBUILDDIR>>/runtime/flang/ieee_arithmetic.F95 -DDESC_I8 > I8_sources/ieee_arithmetic.F95
cd /<<PKGBUILDDIR>>/debian/build/stage2 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/runtime/flang /<<PKGBUILDDIR>>/debian/build/stage2 /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/flang_shared.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/flang_shared.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/flang_shared.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/flang_shared.dir/depend.internal".
Scanning dependencies of target flang_shared
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/stage2'
/usr/bin/make -f runtime/flang/CMakeFiles/flang_shared.dir/build.make runtime/flang/CMakeFiles/flang_shared.dir/build
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build/stage2'
[ 26%] Building Fortran object runtime/flang/CMakeFiles/flang_shared.dir/iso_c_bind.F95.o
cd /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang && /<<PKGBUILDDIR>>/debian/build/flang-driver/bin/flang -DGTEST_HAS_RTTI=0 -DINLINE_MEMOPS -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dflang_shared_EXPORTS -DHAVE_LONG_LONG_INT -DINT32PTR64 -DTM_I8 -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/stage2/include -I/usr/lib/llvm-7/include -I/<<PKGBUILDDIR>>/runtime/include -I/<<PKGBUILDDIR>>/runtime/flang -I/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang  -B /<<PKGBUILDDIR>>/debian/build/stage2/./bin -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fPIC   -fPIC -Mreentrant -c /<<PKGBUILDDIR>>/runtime/flang/iso_c_bind.F95 -o CMakeFiles/flang_shared.dir/iso_c_bind.F95.o
[ 26%] Building Fortran object runtime/flang/CMakeFiles/flang_shared.dir/ieee_exceptions.F95.o
cd /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang && /<<PKGBUILDDIR>>/debian/build/flang-driver/bin/flang -DGTEST_HAS_RTTI=0 -DINLINE_MEMOPS -DLINUX -DMAXCPUS=256 -DMAXCPUSL=8 -DMAXCPUSR=8 -DNATIVE_FPCVT -DPGF90 -DPGFLANG -DPGI_LITTLE_ENDIAN -DTARGET_LINUX -DTARGET_LINUX_X8664 -DTARGET_LLVM -DTARGET_X8664 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dflang_shared_EXPORTS -DHAVE_LONG_LONG_INT -DINT32PTR64 -DTM_I8 -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/debian/build/stage2/include -I/usr/lib/llvm-7/include -I/<<PKGBUILDDIR>>/runtime/include -I/<<PKGBUILDDIR>>/runtime/flang -I/<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang  -B /<<PKGBUILDDIR>>/debian/build/stage2/./bin -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fPIC   -fPIC -Mreentrant -c /<<PKGBUILDDIR>>/runtime/flang/ieee_exceptions.F95 -o CMakeFiles/flang_shared.dir/ieee_exceptions.F95.o
Stack dump:
0.	Program arguments: /<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7 -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -main-file-name ieee_exceptions.F95 -mrelocation-model pic -pic-level 2 -mthread-model posix -mllvm -pass-remarks= -mllvm -pass-remarks-missed= -mllvm -pass-remarks-analysis= -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang/CMakeFiles/flang_shared.dir/ieee_exceptions.F95.gcno -resource-dir /<<PKGBUILDDIR>>/debian/build/flang-driver/lib/clang/7.0.1 -O2 -fdebug-compilation-dir /<<PKGBUILDDIR>>/debian/build/stage2/runtime/flang -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/flang_shared.dir/ieee_exceptions.F95.o -x ir /tmp/ieee_exceptions-f28e0a.ll -faddrsig 
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x1f)[0x7fe01eebcc2f]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm3sys17RunSignalHandlersEv+0x50)[0x7fe01eebb160]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(+0x9cef42)[0x7fe01eebcf42]
/lib/x86_64-linux-gnu/libc.so.6(+0x37940)[0x7fe01e16e940]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZNSt3_V28__rotateIPcEET_S2_S2_S2_St26random_access_iterator_tag+0xe9)[0x556395b517f9]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm7hashing6detail23hash_combine_range_implIPKNS_9MDOperandEEENS_9hash_codeET_S7_+0x243)[0x7fe01efa6533]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm6MDNode8uniquifyEv+0x121e)[0x7fe01efbd80e]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm6MDNode20handleChangedOperandEPvPNS_8MetadataE+0x13e)[0x7fe01efb91de]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm23ReplaceableMetadataImpl18replaceAllUsesWithEPNS_8MetadataE+0x6a2)[0x7fe01efb9012]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm8LLParser23ParseStandaloneMetadataEv+0x228)[0x7fe02094eac8]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm8LLParser21ParseTopLevelEntitiesEv+0x8a)[0x7fe02094c19a]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm8LLParser3RunEv+0x56)[0x7fe02094c0d6]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm17parseAssemblyIntoENS_15MemoryBufferRefEPNS_6ModuleEPNS_18ModuleSummaryIndexERNS_12SMDiagnosticEPNS_11SlotMappingEbNS_9StringRefE+0x10d)[0x7fe02097e08d]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm13parseAssemblyENS_15MemoryBufferRefERNS_12SMDiagnosticERNS_11LLVMContextEPNS_11SlotMappingEbNS_9StringRefE+0x8c)[0x7fe02097e7cc]
/usr/lib/llvm-7/lib/libLLVM-7.so.1(_ZN4llvm7parseIRENS_15MemoryBufferRefERNS_12SMDiagnosticERNS_11LLVMContextEbNS_9StringRefE+0x2b3)[0x7fe01f01d443]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZN5clang13CodeGenAction10loadModuleEN4llvm15MemoryBufferRefE+0x18b)[0x556395c3784b]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZN5clang13CodeGenAction13ExecuteActionEv+0x1a4)[0x556395c39b64]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZN5clang14FrontendAction7ExecuteEv+0xb6)[0x556395b79fe6]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x18e)[0x556395b3c02e]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x6b5)[0x556395c32445]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_Z8cc1_mainN4llvm8ArrayRefIPKcEES2_Pv+0x910)[0x556395617e00]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(main+0x27f9)[0x556395614279]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7fe01e15b09b]
/<<PKGBUILDDIR>>/debian/build/flang-driver/bin/clang-7(_start+0x2a)[0x5563956156aa]
clang-7: error: unable to execute command: Floating point exception
clang-7: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 7.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /<<PKGBUILDDIR>>/debian/build/flang-driver/bin
clang-7: note: diagnostic msg: PLEASE submit a bug report to  and include the crash backtrace, preprocessed source, and associated run script.
clang-7: note: diagnostic msg: Error generating preprocessed source(s).
make[4]: *** [runtime/flang/CMakeFiles/flang_shared.dir/build.make:5159: runtime/flang/CMakeFiles/flang_shared.dir/ieee_exceptions.F95.o] Error 254
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/stage2'
make[3]: *** [CMakeFiles/Makefile2:562: runtime/flang/CMakeFiles/flang_shared.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/stage2'
make[2]: *** [Makefile:130: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build/stage2'
make[1]: *** [debian/rules:36: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Pkg-llvm-team mailing list