ci: sqlite package in depends fails to build in MSan tasks locally #30775

issue hebasto openend this issue on August 30, 2024
  1. hebasto commented at 9:33 pm on August 30, 2024: member

    For instance, on Ubuntu 24.04:

     0$ env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'MAKEJOBS="-j8" FILE_ENV="./ci/test/00_setup_env_native_msan.sh" ./ci/test_run_all.sh'
     1...
     2Extracting sqlite...
     3/ci_container_base/depends/sources/sqlite-autoconf-3380500.tar.gz: OK
     4Preprocessing sqlite...
     5Configuring sqlite...
     6checking for a BSD-compatible install... /usr/bin/install -c
     7checking whether build environment is sane... yes
     8checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
     9checking for gawk... no
    10checking for mawk... mawk
    11checking whether make sets $(MAKE)... yes
    12checking whether make supports nested variables... yes
    13checking for style of include used by make... GNU
    14checking for x86_64-pc-linux-gnu-gcc... clang
    15checking whether the C compiler works... yes
    16checking for C compiler default output file name... a.out
    17checking for suffix of executables... 
    18checking whether we are cross compiling... configure: error: in `/ci_container_base/depends/work/build/x86_64-pc-linux-gnu/sqlite/3380500-455b022f3a8':
    19configure: error: cannot run C compiled programs.
    20If you meant to cross compile, use `--host'.
    21See `config.log' for more details
    22make: *** [funcs.mk:302: /ci_container_base/depends/x86_64-pc-linux-gnu/.sqlite_stamp_configured] Error 1
    23make: Leaving directory '/ci_container_base/depends'
    
  2. hebasto commented at 3:30 am on August 31, 2024: member

    Here is an excerpt from config.log:

    0configure:3462: checking whether we are cross compiling
    1configure:3470: clang -o conftest -fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer -g -O1 -fno-optimize-sibling-calls   -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG -I/ci_container_base/depends/x86_64-pc-linux-gnu/include -DSQLITE_DQS=0 -DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_SHARED_CACHE -DSQLITE_OMIT_JSON -DSQLITE_LIKE_DOESNT_MATCH_BLOBS -DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_AUTOINIT -DSQLITE_DEBUG   -L/ci_container_base/depends/x86_64-pc-linux-gnu/lib conftest.c  >&5
    2configure:3474: $? = 0
    3configure:3481: ./conftest
    4MemorySanitizer: CHECK failed: msan_linux.cpp:192 "((personality(old_personality | ADDR_NO_RANDOMIZE))) != ((-1))" (0xffffffffffffffff, 0xffffffffffffffff) (tid=800)
    5    <empty stack>
    6
    7configure:3485: $? = 1
    8configure:3492: error: in `/ci_container_base/depends/work/build/x86_64-pc-linux-gnu/sqlite/3380500-b8013301fb8':
    9configure:3494: error: cannot run C compiled programs.
    
  3. hebasto commented at 3:56 am on August 31, 2024: member
    The sysctl -w vm.mmap_rnd_bits=28 helps. However, I was sure that clang 18.1.3 no longer requires such a workaround.
  4. fanquake commented at 8:33 am on August 31, 2024: member
    Duplicate of #30674
  5. fanquake marked this as duplicate on Aug 31, 2024
  6. fanquake closed this on Aug 31, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-20 01:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me