Re: For an armv7 context, /usr/local/llvm1[789]/lib/clang/1[789]/include/arm_bf16.h does not exist: one thing blocking a firefox build via llvm1[78]

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 31 Aug 2024 18:29:45 UTC
On Aug 31, 2024, at 10:43, Mark Millard <marklmi@yahoo.com> wrote:

>> . . .
> 
> As far as I can tell, for rust conditional compilation with the
> likes of (leading whitespace details might not have been
> preserved):
> 
>    #[cfg(all(unix, target_env = "gnu", not(any(target_os = "freebsd", target_os = "hurd"))))]
>     if oflags.contains(OFlags::TMPFILE) && crate::backend::if_glibc_is_less_than_2_25() {
>         return openat_via_syscall(dirfd, path, oflags, mode);
>     }
> 
> is not just textual preprocessing like #if . . . #endif in
> C/C++. It seems that the conditional source still gets some
> validation processing even though it will not generate any
> code.
> 
> If so, the error report indicates that freebsd is not getting
> a definition of the likes of OFlags::TMPFILE .
> 
> I do not know if freebsd should have a definition of
> OFlags::TMPFILE (and related) vs. not. If the definition
> should be present, the problem is not local to the 2
> blocks of code that are rejected. If the definition should
> not be present, then the technique for handling freebsd
> for armv7 is not valid and the fix might also not be
> local to the 2 blocks of code.
> 
> As I'm only trying to see if my armv7 builds can finish based
> on the limited effective process address space size, at some
> point I'll likely locally adjust the patching to cause
> "if false {" or some such that avoids the validation
> checking's rejection.
> 
> I have no intention of running firefox --and I have no armv7
> video context set up to do so.
> 

Well, that was a bad idea: if that had been the issue
rust itself would not build because if the patched
rustix source code.

For now I'm testing building firefox-esr's port, which,
being back at 115, instead of the recent 128, does
not yet have the code that was being patched.

Later I might see if a patched firefox rustix copy will
work.

===
Mark Millard
marklmi at yahoo.com