From owner-freebsd-arm@freebsd.org Sun Mar 4 02:15:45 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 833A4F2BAB5 for ; Sun, 4 Mar 2018 02:15:45 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [69.239.235.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D427A82DB1 for ; Sun, 4 Mar 2018 02:15:44 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w242FbEB043348 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 3 Mar 2018 18:15:38 -0800 (PST) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w242Fbal043347; Sat, 3 Mar 2018 18:15:37 -0800 (PST) (envelope-from fbsd) Date: Sat, 3 Mar 2018 18:15:37 -0800 From: bob prohaska To: freebsd-arm@freebsd.org Subject: Kernel build problems on Pi3 Message-ID: <20180304021537.GA43316@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2018 02:15:45 -0000 In trying to make a kernel on a Pi3 at r329893 a buildkernel after kernel-toolchain stops with: In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31: /usr/lib/clang/6.0.0/include/stdint.h:228:25: error: typedef redefinition with different types ('int16_t' (aka 'short') vs '__int_fast16_t' (aka 'int')) typedef __int_least16_t int_fast16_t; ^ /usr/src/sys/sys/stdint.h:51:25: note: previous definition is here typedef __int_fast16_t int_fast16_t; ^ In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31: /usr/lib/clang/6.0.0/include/stdint.h:229:26: error: typedef redefinition with different types ('uint16_t' (aka 'unsigned short') vs '__uint_fast16_t' (aka 'unsigned int')) typedef __uint_least16_t uint_fast16_t; ^ /usr/src/sys/sys/stdint.h:56:26: note: previous definition is here typedef __uint_fast16_t uint_fast16_t; ^ In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31: /usr/lib/clang/6.0.0/include/stdint.h:245:24: error: typedef redefinition with different types ('int8_t' (aka 'signed char') vs '__int_fast8_t' (aka 'int')) typedef __int_least8_t int_fast8_t; ^ /usr/src/sys/sys/stdint.h:50:24: note: previous definition is here typedef __int_fast8_t int_fast8_t; ^ In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: In file included from /usr/lib/clang/6.0.0/include/arm_neon.h:31: /usr/lib/clang/6.0.0/include/stdint.h:246:25: error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs '__uint_fast8_t' (aka 'unsigned int')) typedef __uint_least8_t uint_fast8_t; ^ /usr/src/sys/sys/stdint.h:55:25: note: previous definition is here typedef __uint_fast8_t uint_fast8_t; ^ 4 errors generated. *** [armv8_crypto_wrap.o] Error code 1 Updating sources to 330366 didn't help, svnlite status finds nothing unexpected in /usr/src/. The kernel config can be seen at http://www.zefox.net/~fbsd/rpi3/kernel_config/ZEFOX It worked for the kernel running now, so I don't _think_ that's the problem. Thanks for reading, and any guidance! bob prohaska