AOCC: Use bash for compiler wrapper#3648
Conversation
AOCC 4.2.0 and lower (and 'flang' for AOCC 5.0.0) use compiler wrappers to include the GCC toolchain in the compiler command. The original compilers are renamed, and a shell script is created running 'exec' which passes the original compiler name as an argument. This however can fail if '/bin/sh' is used. On Ubuntu 22.04 LTS, using 'exec -a' causes the following error message, which then causes the sanity check to fail: ``` $ exec -a "echo" echo "Hello World" sh: 1: exec: -a: not found ``` To work around this, use '/bin/bash' instead. Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
|
Test report by @Thyre Overview of tested easyconfigs (in order)
Build succeeded for 2 out of 2 (2 easyconfigs in total) |
|
@boegelbot please test @ jsc-zen3 |
|
@Thyre: Request for testing this PR well received on jsczen3l1.int.jsc-zen3.fz-juelich.de PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 2708815228 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
AOCC 4.2.0 and lower (and
flangfor AOCC 5.0.0) use compiler wrappers to include the GCC toolchain in the compiler command. The original compilers are renamed, and a shell script is created runningexecwhich passes the original compiler name as an argument.This however can fail if
/bin/shis used. On Ubuntu 22.04 LTS / Zorin OS 17, usingexec -acauses the following error message, which then causes the sanity check to fail:To work around this, use
/bin/bashinstead.