Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58740 closed defect (fixed)

nettle @3.5.1: error: invalid instruction mnemonic 'sha1rnds4'

Reported by: kencu (Ken) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: lion snowleopard Cc: mrkapqa
Port: nettle

Description

:info:build /usr/bin/clang -I. -I/opt/local/include -DHAVE_CONFIG_H -pipe -Os -arch x86_64 -ggdb3 -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fPIC -MT sha1-compress-2.o -MD -MP -MF sha1-compress-2.o.d -c sha1-compress-2.s
:info:build /usr/bin/m4 ./asm.m4 machine.m4 config.m4 sha256-compress-2.asm >sha256-compress-2.s
:info:build sha1-compress-2.s:74:2: error: invalid instruction mnemonic 'sha1rnds4'
:info:build  sha1rnds4 $0, %xmm5, %xmm4
:info:build  ^~~~~~~~~
:info:build sha1-compress-2.s:79:2: error: invalid instruction mnemonic 'sha1nexte'
:info:build  sha1nexte %xmm1, %xmm6
:info:build  ^~~~~~~~~

specifying a newer compiler fixes build

Attachments (1)

nettle-fail-107.log (110.5 KB) - added by kencu (Ken) 5 years ago.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by kencu (Ken)

Attachment: nettle-fail-107.log added

comment:1 Changed 5 years ago by kencu (Ken)

this incantation fixes it for Intel systems at least.

# error: invalid instruction mnemonic 'sha1rnds4'
compiler.blacklist-append  *gcc-3.* *gcc-4.* {clang < 426} \
                           macports-clang-3.4 macports-clang-3.7
compiler.fallback-append   macports-clang-8.0 macports-clang-7.0

comment:3 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mrkapqa added
Keywords: snowleopard added
Summary: nettle @3.5.1: build fails on 10.7 due to: sha1-compress-2.s:74:2: error: invalid instruction mnemonic 'sha1rnds4nettle @3.5.1: error: invalid instruction mnemonic 'sha1rnds4'

Has duplicate #58745.

comment:4 in reply to:  1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to kencu:

this incantation fixes it for Intel systems at least.

Since the error occurs when processing the x86_64 assembly, only x86_64 systems should be affected. The build already succeeds on Snow Leopard i386 before this change.

comment:5 Changed 5 years ago by kencu (Ken)

I will investigate further to see what the minimal patch might be for this fix.

Version 0, edited 5 years ago by kencu (Ken) (next)

comment:6 Changed 5 years ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Last edited 5 years ago by jmroot (Joshua Root) (previous) (diff)
Note: See TracTickets for help on using tickets.