Discussion:
Kernel build error
(too old to reply)
Per Gunnarsson
2018-01-27 10:53:48 UTC
Permalink
Hello!

I am trying to build the kernel with revision 328463.

It halts with this error:

/usr/src/sys/cam/scsi/scsi_da.c:1514:9: error: 'CAM_PERIPH_PRINT' macro
redefined [-Werror,-Wmacro-redefined]
#define CAM_PERIPH_PRINT(p, msg, args...)
        ^
/usr/src/sys/cam/cam_periph.h:263:9: note: previous definition is here
#define CAM_PERIPH_PRINT(p, msg, args...)                               \
        ^
1 error generated.
*** Error code 1

Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

Regards,

Per Gunnarsson
Rodney W. Grimes
2018-01-27 17:32:15 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Per Gunnarsson
Hello!
I am trying to build the kernel with revision 328463.
/usr/src/sys/cam/scsi/scsi_da.c:1514:9: error: 'CAM_PERIPH_PRINT' macro
redefined [-Werror,-Wmacro-redefined]
#define CAM_PERIPH_PRINT(p, msg, args...)
??????? ^
/usr/src/sys/cam/cam_periph.h:263:9: note: previous definition is here
#define CAM_PERIPH_PRINT(p, msg, args...)?????????????????????????????? \
??????? ^
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
Regards,
Per Gunnarsson
Fixed in https://svnweb.freebsd.org/changeset/base/328464
--
Rod Grimes ***@freebsd.org
Continue reading on narkive:
Loading...