This is today (Nov 16 2020) head amd64; llvm tripped up in compiling
userland by noting that lz4_init/lz4_fini were lacking in being previously
defined.
So, just remove the extern and add it to lz4. So far so good.
Differential D27240
[zfs] Fix LZ4 function definitions to not trip up the compile adrian on Nov 16 2020, 4:43 PM. Authored by Tags None Referenced Files
Details This is today (Nov 16 2020) head amd64; llvm tripped up in compiling So, just remove the extern and add it to lz4. So far so good.
Diff Detail
Event TimelineComment Actions How did this work for anyone? I tripped on it in CheriBSD on aarch64 just now (this is with llvm ~11.0.0). Comment Actions What was the exact error message? I never got that, and it always compiled just fine for me... Comment Actions Apparently for me, _FAKE_KERNEL just never gets defined, so that part of the code never gets compiled. I have no idea where that define comes from. In the preprocessed lz4.i I simply do not see the offending code fragment at all. Comment Actions I'm guessing it's a bit like our _STANDALONE environment, but that's less well defined in the upstream code. |