Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881659 - sys-fs/lvm2 doesn't compile with clang
Summary: sys-fs/lvm2 doesn't compile with clang
Status: RESOLVED DUPLICATE of bug 869404
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-17 14:58 UTC by Dante Robinson
Modified: 2022-11-17 15:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,203.07 KB, text/x-log)
2022-11-17 14:58 UTC, Dante Robinson
Details
emerge --info (emerge info.txt,9.14 KB, text/plain)
2022-11-17 14:58 UTC, Dante Robinson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dante Robinson 2022-11-17 14:58:35 UTC
Created attachment 833175 [details]
build.log

I don't recall this was an issue with clang-14 but I'd have to check if I have the time. Throws the error 

`In file included from lvmpolld-core.c:23:
/usr/include/wait.h:1:2: warning: redirecting incorrect #include <wait.h> to <sys/wait.h> [-W#warnings]
#warning redirecting incorrect #include <wait.h> to <sys/wait.h>
 ^
lvmpolld-core.c:56:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion]
        return strerror_r(errnum, data->buf, sizeof(data->buf)); /* never returns NULL */
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.`

Again not an issue when using GCC to compile and I am using a clang-llvm profile.
Comment 1 Dante Robinson 2022-11-17 14:58:54 UTC
Created attachment 833177 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-17 15:01:11 UTC

*** This bug has been marked as a duplicate of bug 869404 ***
Comment 3 Dante Robinson 2022-11-17 15:02:50 UTC
(In reply to Sam James from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 869404 ***

ah thanks I couldn't find it should I move the build.log over there?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-17 15:05:14 UTC
If you can reproduce with 2.03.16-r1 then yes, otherwise nah, we'll be stabling the new version in due course