Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite failed in build on macOS (M1, macbook air 2020) #258

Open
saaramar opened this issue Nov 5, 2021 · 0 comments
Open

sqlite failed in build on macOS (M1, macbook air 2020) #258

saaramar opened this issue Nov 5, 2021 · 0 comments

Comments

@saaramar
Copy link

saaramar commented Nov 5, 2021

This issue might should be under sqlite and not under cheribuild, but I wanted to make sure and let you decide :)

So, boot to login with

python3 cheribuild/cheribuild.py run-morello-purecap -d

works, but building with webkit fails:

cd /Users/saaramar/cheri/build/sqlite-morello-purecap-build && env PKG_CONFIG_PATH=/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/libdata/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/lib/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/share/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/libdata/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/lib/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/share/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/libdata/pkgconfig PKG_CONFIG_LIBDIR=/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/libdata/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/lib/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/share/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/morello-purecap/libdata/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/lib/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/share/pkgconfig:/Users/saaramar/cheri/output/rootfs-morello-purecap/usr/local/libdata/pkgconfig PKG_CONFIG_SYSROOT_DIR=/Users/saaramar/cheri/output/rootfs-morello-purecap BUILD_CC=/usr/bin/clang 'CC=/Users/saaramar/cheri/output/morello-sdk/bin/clang -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CXX=/Users/saaramar/cheri/output/morello-sdk/bin/clang++ -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'CXXFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'LDFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -fuse-ld=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld' 'CPP=/Users/saaramar/cheri/output/morello-sdk/bin/clang-cpp -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' LD=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld /Users/saaramar/cheri/sqlite/configure --host=aarch64-unknown-freebsd13 --target=aarch64-unknown-freebsd13 --build=arm64-apple-darwin20.6.0 --libdir=/usr/local/morello-purecap/lib --disable-amalgamation --disable-load-extension --with-pic --disable-tcl --disable-amalgamation --disable-editline --disable-readline 'CC=/Users/saaramar/cheri/output/morello-sdk/bin/clang -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CXX=/Users/saaramar/cheri/output/morello-sdk/bin/clang++ -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'CXXFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'LDFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -fuse-ld=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld' 'CPP=/Users/saaramar/cheri/output/morello-sdk/bin/clang-cpp -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' LD=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld --prefix=/usr/local/morello-purecap

checking build system type... Invalid configuration `arm64-apple-darwin20.6.0': machine `arm64-apple' not recognized

configure: error: /bin/sh /Users/saaramar/cheri/sqlite/config.sub arm64-apple-darwin20.6.0 failed

Fatal error (in target sqlite-morello-purecap): Command `/Users/saaramar/cheri/sqlite/configure --host=aarch64-unknown-freebsd13 --target=aarch64-unknown-freebsd13 --build=arm64-apple-darwin20.6.0 --libdir=/usr/local/morello-purecap/lib --disable-amalgamation --disable-load-extension --with-pic --disable-tcl --disable-amalgamation --disable-editline --disable-readline 'CC=/Users/saaramar/cheri/output/morello-sdk/bin/clang -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CXX=/Users/saaramar/cheri/output/morello-sdk/bin/clang++ -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier' 'CFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'CXXFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' 'LDFLAGS=-target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -fuse-ld=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld' 'CPP=/Users/saaramar/cheri/output/morello-sdk/bin/clang-cpp -target aarch64-unknown-freebsd13 --sysroot=/Users/saaramar/cheri/output/rootfs-morello-purecap -B/Users/saaramar/cheri/output/morello-sdk/bin -march=morello+c64 -mabi=purecap -femulated-tls -mcpu=rainier -Wno-unused-command-line-argument -DSQLITE_ENABLE_COLUMN_METADATA=1 -Werror=implicit-function-declaration -Werror=format -Werror=incompatible-pointer-types -Werror=cheri-capability-misuse -Werror=cheri-bitwise-operations -Werror=cheri-prototypes -Werror=pass-failed -Werror=undefined-internal -Wno-error=cheri-capability-misuse' LD=/Users/saaramar/cheri/output/morello-sdk/bin/ld.lld --prefix=/usr/local/morello-purecap` failed with non-zero exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant