Hi,

On Thu, 6 Feb 2020, Bruce Dubbs via blfs-dev wrote:

On 2/6/20 8:44 AM, Jean-Marc Pigeon via blfs-dev wrote:

[...] sanitizer_common/sanitizer_internal_defs.h:342:70: error: size
'-1' of array 'assertion_failed__1131' is negative
   342 |     typedef char IMPL_PASTE(assertion_failed_##_,
line)[2*(int)(pred)-1] [...]
We ran into the same problem in LFS with gcc.
Confirmed. And this already occurs (and can be fixed the same way) in chapter 5 if deviating from the book by building multilib.

Looking at the llvm source, try [...]
sed -e '1131 s|^|//|' \[...]
I can confirm that llvm-9.01 is effected and can be fixed the same way. But I never liked seds fixing stuff by line number. Commenting out a random line number does not tell a story. I prefer something with more rationale that can be applied multiple times and probably to upcoming versions as well. This issue is not specific to line number 1131 or something but to a variable called "mode", hence I'm using:

sed -i "/ipc_perm, mode/s@^C@//C@" $certain_path/*limits_posix.cc
- for gcc as well as llvm

Uwe
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to