Building firefox 129.0.2 in armv7 poudriere-devel jail on aarch64 (using llvm17)

From: Mark Millard <marklmi_at_yahoo.com>
Date: Fri, 30 Aug 2024 23:24:15 UTC
What my test-of-building got was: No <arm_bf16.h> include file found and
no OFlags::TMPFILE found (OFlags:: was found, TMPFILE in OFlags:: was not):

In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/mfbt/lz4/xxhash.c:43:
In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/mfbt/lz4/xxhash.h:3434:
/usr/local/llvm17/lib/clang/17/include/arm_neon.h:37:10: fatal error: 'arm_bf16.h' file not found
   37 | #include <arm_bf16.h>
      |          ^~~~~~~~~~~~
. . .

error[E0599]: no associated item named `TMPFILE` found for struct `backend::fs::types::OFlags` in the current scope
   --> /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/third_party/rust/rustix/src/backend/libc/fs/syscalls.rs:144:32
    |
144 |       if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() {
    |                                  ^^^^^^^ associated item not found in `OFlags`
    |
   ::: /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/third_party/rust/rustix/src/backend/libc/fs/types.rs:203:1
    |
203 | / bitflags! {
204 | |     /// `O_*` constants for use with [`openat`].
205 | |     ///
206 | |     /// [`openat`]: crate::fs::openat
...   |
333 | |     }
334 | | }
    | |_- associated item `TMPFILE` not found for this struct
    |
. . .
    = note: this error originates in the macro `$crate::__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

. . .

error[E0599]: no associated item named `TMPFILE` found for struct `backend::fs::types::OFlags` in the current scope
   --> /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/third_party/rust/rustix/src/backend/libc/fs/syscalls.rs:207:32
    |
207 |       if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() {
    |                                  ^^^^^^^ associated item not found in `OFlags`
    |
   ::: /wrkdirs/usr/ports/www/firefox/work/firefox-129.0.2/third_party/rust/rustix/src/backend/libc/fs/types.rs:203:1
    |
203 | / bitflags! {
204 | |     /// `O_*` constants for use with [`openat`].
205 | |     ///
206 | |     /// [`openat`]: crate::fs::openat
...   |
333 | |     }
334 | | }
    | |_- associated item `TMPFILE` not found for this struct
    |
. . .
    = note: this error originates in the macro `$crate::__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

. . .
    = note: this error originates in the macro `$crate::__impl_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0599`.
error: could not compile `rustix` (lib) due to 2 previous errors


For reference:

# uname -apKU
FreeBSD aarch64-main-pbase 15.0-CURRENT FreeBSD 15.0-CURRENT #8 main-n271819-5cbb98c8259c-dirty: Fri Aug 23 22:06:47 PDT 2024     root@aarch64-main-pbase:/usr/obj/BUILDs/main-CA76-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA76 arm64 aarch64 1500023 1500023

# ~/fbsd-based-on-what-commit.sh -C /usr/ports/
87a38a839ab8 (HEAD -> main, freebsd/main, freebsd/HEAD) net-im/dissent: update package description
Author:     Jan Beich <jbeich@FreeBSD.org>
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-24 18:30:01 +0000
branch: main
merge-base: 87a38a839ab83c2def100a0975a7afb29e873cf2
merge-base: CommitDate: 2024-08-24 18:30:01 +0000
n674987 (--first-parent --count for merge-base)

But firefox was updated to use: nss>=3.103:security/nss to match what was
available.


===
Mark Millard
marklmi at yahoo.com