GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T18:14:24Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/15068Small number of test case failures on Ubuntu Bionic (GCC 7.3)2019-07-07T18:14:24Zjrp2014Small number of test case failures on Ubuntu Bionic (GCC 7.3)A few tests (T13658 T14779a T14779b T14868 debug parsing001) fail running validate using HEAD and 8.4.1. They produce output similar to that shown below.
I am not quite sure how to test with clang. Just setting and exporting the environ...A few tests (T13658 T14779a T14779b T14868 debug parsing001) fail running validate using HEAD and 8.4.1. They produce output similar to that shown below.
I am not quite sure how to test with clang. Just setting and exporting the environment variable CC to /usr/bin/clang (6) and running validate seemed to produce similar failures.
I was unable to try with LLVM because that now seems to be on version 6, which doesn't build.
```
=====> cgrun004(normal) 290 of 6344 [0, 0, 0]
cd "/tmp/ghctest-lx7q03iz/test spaces/./codeGen/should_run/cgrun004.run" && "/home/jrp/Projects/ghc/bindisttest/install dir/bin
/ghc" -o cgrun004 cgrun004.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-gr
oups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output
Wrong exit code for debug()(expected 0 , actual 2 )
Stdout ( debug ):
== Dbg ==
src<debug.hs:(3,1)-(5,29)>
src<debug.hs:3:9>
src<debug.hs:4:9>
src<debug.hs:5:13-17>
src<debug.hs:5:14>
src<debug.hs:5:21-29>
src<debug.hs:5:25-29>
src<debug.hs:5:26>
src<debug.hs:5:9-17>
src<debug.hs:5:9-29>
src<debug.hs:6:1-21>
Makefile:12: recipe for target 'debug' failed
Stderr ( debug ):
/tmp/ghc152350_0/ghc_2.s: Assembler messages:
/tmp/ghc152350_0/ghc_2.s:1364:0: error:
Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'
/tmp/ghc152350_0/ghc_2.s:1393:0: error:
Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'
/tmp/ghc152350_0/ghc_2.s:1422:0: error:
Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'
/tmp/ghc152350_0/ghc_2.s:1451:0: error:
Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'
`gcc' failed in phase `Assembler'. (Exit code: 1)
make[1]: ./debug: Command not found
make[1]: *** [debug] Error 127
*** unexpected failure for debug(normal)
```
The tool versions are:
```
GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30
```
```
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-16ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --with-as=/usr/bin/x86_64-linux-gnu-as --with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-7 --program-prefix=x86_64-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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------------ |
| Version | 8.4.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (CodeGen) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Small number of test case failures on Ubuntu Bionic (GCC 7.3)","status":"New","operating_system":"","component":"Compiler (CodeGen)","related":[],"milestone":"8.6.1","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"8.4.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"A few tests (T13658 T14779a T14779b T14868 debug parsing001) fail running validate using HEAD and 8.4.1. They produce output similar to that shown below.\r\n\r\nI am not quite sure how to test with clang. Just setting and exporting the environment variable CC to /usr/bin/clang (6) and running validate seemed to produce similar failures.\r\n\r\nI was unable to try with LLVM because that now seems to be on version 6, which doesn't build.\r\n\r\n{{{\r\n=====> cgrun004(normal) 290 of 6344 [0, 0, 0]\r\ncd \"/tmp/ghctest-lx7q03iz/test spaces/./codeGen/should_run/cgrun004.run\" && \"/home/jrp/Projects/ghc/bindisttest/install dir/bin\r\n/ghc\" -o cgrun004 cgrun004.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-gr\r\noups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output \r\nWrong exit code for debug()(expected 0 , actual 2 )\r\nStdout ( debug ):\r\n== Dbg ==\r\nsrc<debug.hs:(3,1)-(5,29)>\r\nsrc<debug.hs:3:9>\r\nsrc<debug.hs:4:9>\r\nsrc<debug.hs:5:13-17>\r\nsrc<debug.hs:5:14>\r\nsrc<debug.hs:5:21-29>\r\nsrc<debug.hs:5:25-29>\r\nsrc<debug.hs:5:26>\r\nsrc<debug.hs:5:9-17>\r\nsrc<debug.hs:5:9-29>\r\nsrc<debug.hs:6:1-21>\r\nMakefile:12: recipe for target 'debug' failed\r\nStderr ( debug ):\r\n/tmp/ghc152350_0/ghc_2.s: Assembler messages:\r\n\r\n/tmp/ghc152350_0/ghc_2.s:1364:0: error:\r\n Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'\r\n\r\n/tmp/ghc152350_0/ghc_2.s:1393:0: error:\r\n Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'\r\n\r\n/tmp/ghc152350_0/ghc_2.s:1422:0: error:\r\n Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'\r\n\r\n/tmp/ghc152350_0/ghc_2.s:1451:0: error:\r\n Error: invalid operands (.debug_frame and .note.GNU-stack sections) for `-'\r\n`gcc' failed in phase `Assembler'. (Exit code: 1)\r\nmake[1]: ./debug: Command not found\r\nmake[1]: *** [debug] Error 127\r\n*** unexpected failure for debug(normal)\r\n}}}\r\n\r\nThe tool versions are:\r\n\r\n{{{\r\nGNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30\r\n}}}\r\n\r\n\r\n{{{\r\nCOLLECT_GCC=gcc\r\nCOLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper\r\nOFFLOAD_TARGET_NAMES=nvptx-none\r\nOFFLOAD_TARGET_DEFAULT=1\r\nTarget: x86_64-linux-gnu\r\nConfigured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-16ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --with-as=/usr/bin/x86_64-linux-gnu-as --with-ld=/usr/bin/x86_64-linux-gnu-ld --program-suffix=-7 --program-prefix=x86_64-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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu\r\nThread model: posix\r\ngcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) \r\n}}}\r\n","type_of_failure":"OtherFailure","blocking":[]} -->8.4.3