Bug 223229 - arm64 pre-build environment (kernel-toolchain) does not provide stdint.h
Summary: arm64 pre-build environment (kernel-toolchain) does not provide stdint.h
Status: Closed DUPLICATE of bug 220125
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: CURRENT
Hardware: arm64 Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-24 20:34 UTC by Andreas Schwarz
Modified: 2017-10-25 05:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwarz 2017-10-24 20:34:38 UTC
"make buildkernel" fails, because the temporary build environment does not provide a stdint.h.

cc -target aarch64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/tmp -B/usr/obj/usr/src/tmp/usr/bin -c -O3 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/PINE64-ASC/opt_global.h -I. -I/usr/src/sys -fno-common -fPIC -I/usr/obj/usr/src/sys/PINE64-ASC -ffixed-x18 -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -std=iso9899:1999  -Werror   -march=armv8-a+crypto /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c
In file included from /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46:
/usr/lib/clang/5.0.0/include/arm_neon.h:31:10: fatal error: 'stdint.h' file not found
#include <stdint.h>
         ^~~~~~~~~~
1 error generated.
*** Error code 1

Stop.
make[4]: stopped in /usr/src/sys/modules/armv8crypto
*** Error code 1

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

Stop.
make[2]: stopped in /usr/obj/usr/src/sys/PINE64-ASC
*** Error code 1

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

Stop.
make: stopped in /usr/src


root@pinelot:/usr/src # ls -l /usr/obj/usr/src/tmp/usr/lib/clang/5.0.0/include/stdint.h
ls: /usr/obj/usr/src/tmp/usr/lib/clang/5.0.0/include/stdint.h: No such file or directory


root@pinelot:/usr/src # uname -a
FreeBSD pinelot.schwarzes.net 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r324720: Thu Oct 19 09:37:31 UTC 2017     root@pinelot.schwarzes.net:/usr/obj/usr/src/sys/PINE64-ASC  arm64

root@pinelot:/usr/src # svnlite info
Path: .
Working Copy Root Path: /usr/src
URL: svn://svn.freebsd.org/base/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 324948
Node Kind: directory
Schedule: normal
Last Changed Author: ae
Last Changed Rev: 324947
Last Changed Date: 2017-10-24 10:39:05 +0200 (Tue, 24 Oct 2017)
Comment 1 Mark Millard 2017-10-24 21:22:04 UTC
(In reply to Andreas Schwarz from comment #0)

This is a duplicate of bugzilla 220125 .
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2017-10-25 05:35:28 UTC

*** This bug has been marked as a duplicate of bug 220125 ***