[MacPorts] #65147: nettle fails to build for x86_64 with gcc10/gcc11: sha256-compress.asm:208:no such instruction (fix: add --disable-assembler)

MacPorts noreply at macports.org
Thu Jun 29 10:34:13 UTC 2023


#65147: nettle fails to build for x86_64 with gcc10/gcc11:
sha256-compress.asm:208:no such instruction (fix: add --disable-assembler)
---------------------------+---------------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  x86_64, snowleopard
      Port:  nettle        |
---------------------------+---------------------------------

Comment (by barracuda156):

 Replying to [comment:24 aeiouaeiouaeiouaeiouaeiouaeiou]:
 > Is this still happening on the latest version (3.9.1)?

 Yes, it is as broken on x86 as before:
 {{{
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT cbc-aes192-encrypt-2.o -MD -MP
 -MF cbc-aes192-encrypt-2.o.d  -c cbc-aes192-encrypt-2.s
 /usr/bin/m4 ./m4-utils.m4 ./asm.m4 config.m4 machine.m4 cbc-
 aes256-encrypt-2.asm >cbc-aes256-encrypt-2.s
 /usr/bin/m4 ./m4-utils.m4 ./asm.m4 config.m4 machine.m4
 poly1305-blocks.asm >poly1305-blocks.s
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT cbc-aes256-encrypt-2.o -MD -MP
 -MF cbc-aes256-encrypt-2.o.d  -c cbc-aes256-encrypt-2.s
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT poly1305-blocks.o -MD -MP -MF
 poly1305-blocks.o.d  -c poly1305-blocks.s
 /usr/bin/m4 ./m4-utils.m4 ./asm.m4 config.m4 machine.m4 ghash-set-
 key-2.asm >ghash-set-key-2.s
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT ghash-set-key-2.o -MD -MP -MF
 ghash-set-key-2.o.d  -c ghash-set-key-2.s
 /usr/bin/m4 ./m4-utils.m4 ./asm.m4 config.m4 machine.m4 ghash-update-2.asm
 >ghash-update-2.s
 /usr/bin/m4 ./m4-utils.m4 ./asm.m4 config.m4 machine.m4 salsa20-2core.asm
 >salsa20-2core.s
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT ghash-update-2.o -MD -MP -MF
 ghash-update-2.o.d  -c ghash-update-2.s
 ghash-set-key-2.s:70:no such instruction: `pclmullqhqdq %xmm0, %xmm4'
 ghash-set-key-2.s:77:no such instruction: `pclmulhqlqdq %xmm2, %xmm4'
 ghash-set-key-2.s:78:no such instruction: `pclmulhqhqdq %xmm2, %xmm6'
 ghash-set-key-2.s:79:no such instruction: `pclmullqlqdq %xmm3, %xmm7'
 ghash-set-key-2.s:80:no such instruction: `pclmullqhqdq %xmm3, %xmm2'
 ghash-set-key-2.s:86:no such instruction: `pclmullqhqdq %xmm0, %xmm7'
 ghash-set-key-2.s:92:no such instruction: `pclmullqhqdq %xmm0, %xmm2'
 /opt/x86_64/bin/gcc-mp-12 -I. -I/opt/x86_64/include -DHAVE_CONFIG_H -pipe
 -Os -arch x86_64 -ggdb3 -Wall -W -Wno-sign-compare   -Wmissing-prototypes
 -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-
 function-cast -Wnested-externs -fPIC -MT salsa20-2core.o -MD -MP -MF
 salsa20-2core.o.d  -c salsa20-2core.s
 make[1]: *** [ghash-set-key-2.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 ghash-update-2.s:108:no such instruction: `pclmullqlqdq %xmm5, %xmm9'
 ghash-update-2.s:109:no such instruction: `pclmullqhqdq %xmm5, %xmm7'
 ghash-update-2.s:110:no such instruction: `pclmulhqlqdq %xmm4, %xmm6'
 ghash-update-2.s:111:no such instruction: `pclmulhqhqdq %xmm4, %xmm8'
 ghash-update-2.s:119:no such instruction: `pclmullqlqdq %xmm3, %xmm13'
 ghash-update-2.s:120:no such instruction: `pclmullqhqdq %xmm3, %xmm11'
 ghash-update-2.s:121:no such instruction: `pclmulhqlqdq %xmm2, %xmm10'
 ghash-update-2.s:122:no such instruction: `pclmulhqhqdq %xmm2, %xmm12'
 ghash-update-2.s:134:no such instruction: `pclmullqhqdq %xmm0, %xmm9'
 ghash-update-2.s:151:no such instruction: `pclmullqlqdq %xmm3, %xmm9'
 ghash-update-2.s:152:no such instruction: `pclmullqhqdq %xmm3, %xmm7'
 ghash-update-2.s:153:no such instruction: `pclmulhqlqdq %xmm2, %xmm6'
 ghash-update-2.s:154:no such instruction: `pclmulhqhqdq %xmm2, %xmm8'
 ghash-update-2.s:160:no such instruction: `pclmullqhqdq %xmm0, %xmm9'
 make[1]: *** [ghash-update-2.o] Error 1
 make[1]: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nettle/nettle/work/nettle-3.9.1'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nettle/nettle/work/nettle-3.9.1'
 Command failed:  cd
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nettle/nettle/work/nettle-3.9.1"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build nettle: command execution failed
 Error: See
 /opt/x86_64/var/macports/logs/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_nettle/nettle/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65147#comment:26>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list