Summary: | media-libs/audiofile-0.3.6-r4 fails to build tests with clang | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | sound |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
1-autoconf.out 1-test-suite.log |
Description
Agostino Sarubbo
![]() Created attachment 657890 [details]
build.log
build log and emerge --info
Created attachment 657892 [details]
1-autoconf.out
1-autoconf.out
Created attachment 657894 [details]
1-test-suite.log
1-test-suite.log
The error is clang -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6/test -I.. -I/var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6/libaudiofile -I/var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6 -O2 -march=native -pipe -c -o query2.o /var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6/test/query2.c /var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6/test/Sign.cpp:160:39: error: non-constant-expression cannot be narrowed from type 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; ^~~~~~~~~~ /var/tmp/portage/media-libs/audiofile-0.3.6-r4/work/audiofile-0.3.6/test/Sign.cpp:160:39: note: insert an explicit cast to silence this issue const uint32_t expectedData[] = { 0, -kMinInt32, kMaxUInt32 }; ^~~~~~~~~~ static_cast<uint32_t>( ) Not fixed upstream, and the upstream author hasn't been seen in more than 5 years. |