Fixed optimization flags support for old GCC versions#13362
Fixed optimization flags support for old GCC versions#13362tgamblin merged 1 commit intospack:developfrom
Conversation
fixes spack#13361 Based on manuals found here https://gcc.gnu.org/onlinedocs/ and assuming that new arch are not added during patch releases.
|
@alalazo Thank you for looking into this. using spack develop this is what I see: $ ./spack/bin/spack arch
linux-rhel6-broadwell
$ ./spack/bin/spack spec zlib %gcc@4.4.7
Input spec
--------------------------------
zlib%gcc@4.4.7
Concretized
--------------------------------
zlib@1.2.11%gcc@4.4.7+optimize+pic+shared arch=linux-rhel6-haswell
$ ./spack/bin/spack spec zlib %gcc@4.7.2
Input spec
--------------------------------
zlib%gcc@4.7.2
Concretized
--------------------------------
zlib@1.2.11%gcc@4.7.2+optimize+pic+shared arch=linux-rhel6-haswell
$ ./spack/bin/spack spec zlib %gcc@7.2.0
Input spec
--------------------------------
zlib%gcc@7.2.0
Concretized
--------------------------------
zlib@1.2.11%gcc@7.2.0+optimize+pic+shared arch=linux-rhel6-broadwellon this PR I see: $ ./old-gcc-bugfix-spack/spack/bin/spack arch
linux-rhel6-broadwell
$ ./old-gcc-bugfix-spack/spack/bin/spack spec zlib %gcc@4.4.7
Input spec
--------------------------------
zlib%gcc@4.4.7
Concretized
--------------------------------
zlib@1.2.11%gcc@4.4.7+optimize+pic+shared arch=linux-rhel6-core2
$ ./old-gcc-bugfix-spack/spack/bin/spack spec zlib %gcc@4.7.2
Input spec
--------------------------------
zlib%gcc@4.7.2
Concretized
--------------------------------
zlib@1.2.11%gcc@4.7.2+optimize+pic+shared arch=linux-rhel6-ivybridge
$ ./old-gcc-bugfix-spack/spack/bin/spack spec zlib %gcc@7.2.0
Input spec
--------------------------------
zlib%gcc@7.2.0
Concretized
--------------------------------
zlib@1.2.11%gcc@7.2.0+optimize+pic+shared arch=linux-rhel6-broadwell
Working from this PR branch 36 /tmp/cc0uMT0y.s: Assembler messages:
>> 37 /tmp/cc0uMT0y.s:211: Error: no such instruction: `shlx %ebx,%eax,%e
ax'
>> 38 /tmp/cc0uMT0y.s:286: Error: no such instruction: `shrx %r14d,%esi,%I just tested and the above error happens on develop as well. These both fail just like above:
but this works:
|
|
@fryeguy52 Can you share more information on |
|
I'm able to build this with gcc 7.2.0 on ubuntu16 in the |
|
@fryeguy52 Can you show me the spec? I suspect you built it without building binutils which probably means you are using a dated |
|
@alalazo I rebuilt with |
|
Looks like this commit got rebased (or cherry-picked) as the commit 8808207 and therefore is in the Is that correct? Why is the SHA1 different than what is in the |
|
Just noticed the commit log runs way over 80 chars: Is there no standard in Spack for line-wrapping the log message? |
I'm not sure I get your question, but this has been simply squash-merged 🤔 If |
These changes update our gcc microarchitecture descriptions based on manuals found here https://gcc.gnu.org/onlinedocs/ and assuming that new architectures are not added during patch releases.
It is better to clean up a branch with |
fixes #13361
fixes #13248
Based on manuals found here and assuming that new arch are not added during patch releases.