[Bug 2084316] Re: FTBFS due to unreadable /proc/self/map_files

Launchpad Bug Tracker 2084316 at bugs.launchpad.net
Wed Jan 1 23:16:05 UTC 2025


This bug was fixed in the package llvm-toolchain-18 - 1:18.1.8-13

---------------
llvm-toolchain-18 (1:18.1.8-13) unstable; urgency=medium

  [ John Paul Adrian Glaubitz ]
  * Allow overriding the bootstrap compiler from the environment
  * Set compiler-rt default target arch on powerpc
  * Restrict compiler-rt build to default target arch on powerpc

  [ Sylvestre Ledru ]
  * Remove the capability to be able to disable C++ Exceptions in libc++
  * Bring back C++ exceptions on s390x for libc++ (LP: #2086782)
  * Cherry-pick from 19
    d/rules: ensure $(NJOBS) propagates down into cmake sub-builds
    by Andres Salomon

  [ Matthias Klose ]
  * bolt: Disable the check for /proc/self/map_files. Might not be available
    on build machines. LP: #2084316.
  * Fix compatibility with Python 3.13. Closes: #1084641.
  * Don't override dh_ocaml. Closes: #1078233.

 -- Sylvestre Ledru <sylvestre at debian.org>  Fri, 27 Dec 2024 12:43:35
+0100

** Changed in: llvm-toolchain-18 (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to llvm-toolchain-18 in Ubuntu.
https://bugs.launchpad.net/bugs/2084316

Title:
  FTBFS due to unreadable /proc/self/map_files

Status in llvm-toolchain-18 package in Ubuntu:
  Fix Released
Status in llvm-toolchain-19 package in Ubuntu:
  Fix Released

Bug description:
  This concerns llvm-toolchain-18 version 1:18.1.8-11 in Ubuntu
  oracular.

  A build of this package in a container environment fails with

  [...]
  dh_install --fail-missing 
  dh_install: warning: Please use dh_missing --list-missing/--fail-missing instead
  dh_install: warning: This feature will be removed in compat 12.
  dh_install: warning: Cannot find (any matches for) "/usr/lib/llvm-18/lib/libbolt_rt_hugify.a" (tried in ., debian/tmp)

  dh_install: warning: libbolt-18-dev missing files: /usr/lib/llvm-18/lib/libbolt_rt_hugify.a
  dh_install: warning: Cannot find (any matches for) "/usr/lib/llvm-18/lib/libbolt_rt_instr.a" (tried in ., debian/tmp)

  dh_install: warning: libbolt-18-dev missing files: /usr/lib/llvm-18/lib/libbolt_rt_instr.a
  dh_install: error: missing files, aborting
  make[1]: *** [debian/rules:1461: override_dh_install] Error 25
  make[1]: Leaving directory '/external/tmp/llvm-toolchain-18-18.1.8'
  make: *** [debian/rules:597: binary] Error 2
  dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
  Command exited with non-zero status 2

  
  The libraries at issue are not built due to the following check in bolt/CMakeLists.txt:

  if (BOLT_ENABLE_RUNTIME)
    # Some systems prevent reading /proc/self/map_files
    execute_process(COMMAND ls /proc/self/map_files
      RESULT_VARIABLE LS OUTPUT_QUIET ERROR_QUIET)
    if (LS)
      set(BOLT_ENABLE_RUNTIME OFF)
      message(WARNING
        "BOLT runtime is disabled as /proc/self/map_files is unreadable.")
    endif()
  endif()

  
  That proc file is not accessible in the container environment:

  $ ls -l /proc/self/map_files
  ls: reading directory '/proc/self/map_files': Operation not permitted

  
  However, the access does not appear to be necessary. Commenting out the set() statement allows the build to complete successfully. This modification should be included in the package's patches.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-18/+bug/2084316/+subscriptions




More information about the foundations-bugs mailing list