Page MenuHomeFreeBSD

Cirrus-CI: switch to lite LLVM package
ClosedPublic

Authored by emaste on May 17 2023, 6:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 8:09 AM
Unknown Object (File)
Sun, Jun 23, 12:25 PM
Unknown Object (File)
Sun, Jun 23, 8:11 AM
Unknown Object (File)
Sat, Jun 22, 1:26 AM
Unknown Object (File)
Thu, Jun 20, 9:10 PM
Unknown Object (File)
Wed, Jun 19, 1:57 AM
Unknown Object (File)
Tue, Jun 18, 9:31 PM
Unknown Object (File)
Tue, Jun 18, 4:12 PM
Subscribers

Details

Summary
This should speed up CI cycle time.

Suggested by:   brooks
Sponsored by:   The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
  • split package name from toolchain name
  • switch to latest
.cirrus.yml
49

Might just wait until llvm15-lite is available in the quarterly set, but i did this for testing for now.

.cirrus.yml
49

I MFH'd the -lite flavor April 18th. I wonder what is going on.

.cirrus.yml
49

Oh, it looks like I'm mistaken, it looks like the issue was just passing CROSS_TOOLCHAIN=llvm15-lite. Trying again now.

have to split TOOLCHAIN and TOOLCHAIN_PKG

.cirrus.yml
31

Is there are reason not to do this one too? -lite packages do include all FreeBSD backends (plus AMDGPU and WASM).

.cirrus.yml
31

This one gave me:

--- sys_alq.o ---
/usr/local/bin/clang15 -target aarch64-unknown-freebsd14.0 --sysroot=/usr/obj/tmp/cirrus-ci-build/arm64.aarch64/tmp -B/var/empty  -O2 -pipe -fno-common   -g -gz=zlib -MD  -MF.depend.sys_alq.o -MTsys_alq.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/local/llvm15/lib/clang/15.0.7/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wstrict-prototypes -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter  -Qunused-arguments    -c sys_alq.c -o sys_alq.o
--- sys_asan.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
--- sys_abi_compat.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
--- sys_alq.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
--- sys_abi_compat.o ---
1 error generated.
--- sys_asan.o ---
1 error generated.
--- sys_alq.o ---
1 error generated.
--- sys_arb.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
1 error generated.
--- sys_alq.o ---
*** [sys_alq.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_asan.o ---
*** [sys_asan.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_abi_compat.o ---
*** [sys_abi_compat.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_arb.o ---
*** [sys_arb.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_acct.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
1 error generated.
--- sys_apm.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
1 error generated.
--- sys_aio.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
1 error generated.
--- sys_acct.o ---
*** [sys_acct.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_apm.o ---
*** [sys_apm.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_aio.o ---
*** [sys_aio.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
--- sys_acl.o ---
error: unable to create target: 'No available targets are compatible with triple "aarch64-unknown-freebsd14.0"'
1 error generated.
*** [sys_acl.o] Error code 1
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
8 errors
make[3]: stopped in /tmp/cirrus-ci-build/tools/build/test-includes
*** [test-includes] Error code 2
make[2]: stopped in /tmp/cirrus-ci-build
1 error
make[2]: stopped in /tmp/cirrus-ci-build
        0.44 real         0.63 user         0.19 sys
make[1]: stopped in /tmp/cirrus-ci-build
make: stopped in /tmp/cirrus-ci-build
Exit status: 2

https://cirrus-ci.com/task/4944201842950144?logs=main#L10900

brooks added inline comments.
.cirrus.yml
31

Oops, I was wrong. It looks like I did indeed set BE_NATIVE and not BE_STANDARD as I'd thought. That probably means I should switch to enabling cross builds by default.

This revision is now accepted and ready to land.May 18 2023, 8:16 PM