[llvm-bugs] [Bug 25975] New: OpenMP: message-converter.pl does wrong assumptions about lsb-release and fails on Gentoo

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 30 10:04:00 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25975

            Bug ID: 25975
           Summary: OpenMP: message-converter.pl does wrong assumptions
                    about lsb-release and fails on Gentoo
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ make
[  2%] Generating kmp_i18n_id.inc
message-converter.pl: (x) /etc/lsb-release: There is no DISTRIB_RELEASE:
message-converter.pl: (x) DISTRIB_ID="Gentoo"
message-converter.pl: (x) (eof)
Compilation failed in require at /tmp/openmp/runtime/tools/lib/Platform.pm line
30.
BEGIN failed--compilation aborted at /tmp/openmp/runtime/tools/lib/Platform.pm
line 30.
Compilation failed in require at /tmp/openmp/runtime/tools/message-converter.pl
line 24.
BEGIN failed--compilation aborted at
/tmp/openmp/runtime/tools/message-converter.pl line 24.
runtime/src/CMakeFiles/libomp-needed-headers.dir/build.make:62: recipe for
target 'runtime/src/kmp_i18n_id.inc' failed


Long story short, runtime/tools/lib/Uname.pm wrongfully assumes
/etc/lsb-release is going to contain a specific set of useful information. More
specifically:

1. if LSB_VERSION is missing, the script must not assume anything specific
about the file since it's not compliant,

2. even if it is there, all the checked keys are *optional*.

So, the script must not really refuse a system just because lsb-release doesn't
match what Ubuntu uses. Relying on that goes completely against the spirit of
LSB.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151230/3decc7ac/attachment.html>


More information about the llvm-bugs mailing list