Discussion:
Build failes cause of padlock_cipher.c:90 / commit: bbd1562a4992
(too old to reply)
Stefan Hagen
2018-01-31 18:09:48 UTC
Permalink
Hello,

The kernel build is currently breaking for me:

Error:
/usr/src/sys/crypto/via/padlock_cipher.c:90:14: error: invalid instruction mnemonic '.byte'
"popf \n\t"

<inline asm>:3:2: note: instantiated into assembly here
rep
^~~
1 error generated.
*** [padlock_cipher.o] Error code 1

make[4]: stopped in /usr/src/sys/modules/padlock
1 error

make[4]: stopped in /usr/src/sys/modules/padlock
*** [all_subdir_padlock] Error code 2

After reverting the change introduced with bbd1562a4992, it works again.
I'm building GENERIC-NODEBUG on skylake.

make.conf:
MALLOC_PRODUCTION=yes
WITHOUT_DEBUG=yes
MK_PROFILE=no
CPUTYPE?=skylake

Best Regards,
Stefan
Dimitry Andric
2018-01-31 22:26:16 UTC
Permalink
Post by Stefan Hagen
/usr/src/sys/crypto/via/padlock_cipher.c:90:14: error: invalid instruction mnemonic '.byte'
"popf \n\t"
<inline asm>:3:2: note: instantiated into assembly here
rep
^~~
1 error generated.
Make sure your source tree is at least at r328090, and run at least
"make buildworld" or "make kernel-toolchain" before attempting to build
the kernel.

-Dimitry
Stefan Hagen
2018-02-01 22:48:14 UTC
Permalink
Post by Dimitry Andric
Make sure your source tree is at least at r328090, and run at least
"make buildworld" or "make kernel-toolchain" before attempting to build
the kernel.
Excellent! This works. And I learned about the the kernel-toolchain target.
Thank you.

Best Regards,
Stefan

Loading...