Just a note for anyone trying to build Ardour 9 using clang/llvm.
Since enabling executable stack in commit ec5b06e63d69277 it bugs out with clang: error: unknown argument: ‘-zexecstack’ when linking ardour-exec-wrapper
A workaround is to run grep -R execstack * | cut -d\: -f1 | while read var ; do cp $var $var.org ; sed -i 's/-zexecstack//' $var ; done
to disable it
I ran into that problem only a few minutes after your post. So thanks for that.
Today i have tried a simple fix. The clang compiler needs the keyword argument to the -z option to be separated by a whitespace character. gcc can live with both.
So, with ‘-z execstack’ the linking is successful in both cases.
The info screen says “Please do NOT file bugs for this alpha-development versions [sic] at this point in time”, so I figured I shouldn’t report it to the tracker.
It also says not to report issues here, but I figured it would be slightly less frowned upon.
Especially with the FYI preamble.