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

I was unable to successfully compile llvm-9.0.1 while
having glibc-2.31 installed.

./projects/compiler-
rt/lib/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]

everything else equal, I am able to compile LLVM-10.0.0rc1

So, may be BLFS, should move to llvm-10.0.0 as soon it become
a officially released version and in the mid-time, put a "warning"
with current BLFS llVM page.

We ran into the same problem in LFS with gcc.

Looking at the llvm source, try

pushd projects/compiler-rt/lib/sanitizer_common
sed -e '1131 s|^|//|' \
    -i sanitizer_platform_limits_posix.cc
popd

The reason for the pushd/popd is the length of the path name.
The only changes from gcc in LFS is the line number and the path.

  -- Bruce
--
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