openssl: openssl 3.x compilation errors with icx and nvc

Hello,

openssl 3.0.12 and 3.1.4 fail to compile with icc (now oneapi) 2023 and pgi (now nvidia hpc) 23. both show the same error:

crypto/x86_64cpuid.s:492:31: error: expected string
        .section .note.gnu.property, #alloc
crypto/md5/md5-x86_64.s:684:31: error: expected string
        .section .note.gnu.property, #alloc

openssl 1.1.1w works fine.

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Comments: 23 (12 by maintainers)

Commits related to this issue

Most upvoted comments

x86_64-xlate.patch.txt

Please try this

I may be misreading the as manual, but It looks like it may be there for solaris compatibility

As I mentioned above, The only thing in the configs that I see as noteworthy is the enabling of the asm feature, and while disabling that would be a potential workaround, it doesn’t really address the compiler issue.

FWIW:

  1. I downloaded the oneapi basekit container, and managed to get a successful build by configuring with no-asm. Its a workaround, but it doesn’t address the issue
  2. I played with it for a bit, and it appears that in the .section declaration, replacing the #alloc parameter with an actual corresponding string “a” fixes the issue

That said, The gnu assembler manual , indicates support for using #alloc, #write, etc in the flags field instead of quoted strings. It seems like nvc/icx declined/neglected to support those flags. Thats likely what you need to report to the developers there.