Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740040 - media-libs/audiofile-0.3.6-r4 fails to build tests with clang
Summary: media-libs/audiofile-0.3.6-r4 fails to build tests with clang
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 08:20 UTC by Agostino Sarubbo
Modified: 2022-04-17 06:50 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,152.16 KB, text/plain)
2020-09-02 08:20 UTC, Agostino Sarubbo
Details
1-autoconf.out (1-autoconf.out,124 bytes, text/plain)
2020-09-02 08:20 UTC, Agostino Sarubbo
Details
1-test-suite.log (1-test-suite.log,254 bytes, text/plain)
2020-09-02 08:21 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-02 08:20:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-libs/audiofile-0.3.6-r4 fails tests.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-02 08:20:58 UTC
Created attachment 657890 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-02 08:20:59 UTC
Created attachment 657892 [details]
1-autoconf.out

1-autoconf.out
Comment 3 Agostino Sarubbo gentoo-dev 2020-09-02 08:21:00 UTC
Created attachment 657894 [details]
1-test-suite.log

1-test-suite.log
Comment 4 Matt Turner gentoo-dev 2022-04-17 06:50:54 UTC
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.