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: unassignedb...@nondot.org
          Reporter: mgo...@gentoo.org
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to