Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740498 - media-sound/pulseaudio-13.0 fails to compile when using CLANG: atomic.h:120:33: error: cannot initialize a parameter of type 'unsigned long' with an lvalue of type 'void *'
Summary: media-sound/pulseaudio-13.0 fails to compile when using CLANG: atomic.h:120:3...
Status: RESOLVED FIXED
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: PullRequest
: 793983 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-05 13:15 UTC by Agostino Sarubbo
Modified: 2021-06-21 11:18 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,27.23 KB, application/x-xz)
2020-09-05 13:15 UTC, Agostino Sarubbo
Details
1-autoconf.out (1-autoconf.out,122 bytes, text/plain)
2020-09-05 13:15 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-05 13:15:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/pulseaudio-13.0 fails to compile.
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-05 13:15:28 UTC
Created attachment 658570 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-05 13:15:29 UTC
Created attachment 658572 [details]
1-autoconf.out

1-autoconf.out
Comment 3 ernsteiswuerfel archtester 2020-11-02 22:59:13 UTC
Same here on my amd64 box.

Though it seems to be a clang and/or lld issue. It builds fine with GLIBC-2.32 when using gcc 10.2.
Comment 4 flippynelle 2020-11-23 10:05:12 UTC
(In reply to Agostino Sarubbo from comment #1)
> Created attachment 658570 [details]
> build.log.xz
> 
> build log and emerge --info (compressed because it exceeds attachment limit,
> use 'xzless' to read it)

I am stumped as to why the following line didn't err like, for example, this:

configure: error: unrecognized option: `-lelogind'
Try `/var/tmp/portage/media-sound/pulseaudio-13.0-r1/work/pulseaudio-13.0/configure --help' for more information

I'm referring to this line from this log:

/var/tmp/portage/media-sound/pulseaudio-13.0/work/pulseaudio-13.0/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/pulseaudio-13.0 --htmldir=/usr/share/doc/pulseaudio-13.0/html --libdir=/usr/lib64 --disable-adrian-aec --disable-esound --disable-gconf --disable-solaris --enable-largefile --localstatedir=/var --with-systemduserunitdir=/usr/lib/systemd/user --with-udev-rules-dir=//lib/udev/rules.d --enable-alsa --disable-bluez5 --enable-gsettings --disable-gtk3 --disable-jack --disable-samplerate --disable-lirc --enable-orc --disable-oss-output --enable-openssl --enable-default-build-tests --enable-udev --enable-webrtc-aec --disable-avahi --without-fftw --without-soxr --with-database=gdbm --enable-glib2 --enable-asyncns --disable-neon-opt --enable-tcpwrap --disable-dbus --enable-x11 --disable-systemd-daemon --disable-systemd-login --disable-systemd-journal --enable-ipv6 --with-caps --enable-systemd-login SYSTEMDLOGIN_CFLAGS=-I/usr/include/elogind  SYSTEMDLOGIN_LIBS=-L/lib64 -lelogind  --with-pulsedsp-location=/usr/\\$$LIB/pulseaudio

because it is clearly unquoted in the ebuild:
	if use elogind && multilib_is_native_abi; then
		myconf+=(
			--enable-systemd-login
			SYSTEMDLOGIN_CFLAGS=`pkg-config --cflags "libelogind" 2>/dev/null`
			SYSTEMDLOGIN_LIBS=`pkg-config --libs "libelogind" 2>/dev/null`
		)
	fi

https://gitweb.gentoo.org/repo/gentoo.git/tree/media-sound/pulseaudio/pulseaudio-13.0.ebuild?id=b200a01e8760313986635054e71e6f93fb455300#n207

Any idea why it didn't err for you?
Comment 5 flippynelle 2020-11-23 10:20:00 UTC
(In reply to flippynelle from comment #4)


made a new report as https://bugs.gentoo.org/756196
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2021-06-21 11:17:31 UTC
*** Bug 793983 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2021-06-21 11:18:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abf184c08f844da0ddea740490a681ac073b0301

commit abf184c08f844da0ddea740490a681ac073b0301
Author:     Theo Anderson <telans@posteo.de>
AuthorDate: 2021-01-19 06:14:09 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2021-06-21 11:15:56 +0000

    media-sound/pulseaudio: fix build with clang
    
    Closes: https://bugs.gentoo.org/740498
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Signed-off-by: Theo Anderson <telans@posteo.de>
    Closes: https://github.com/gentoo/gentoo/pull/19122
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../pulseaudio/files/pulseaudio-13.0-clang.patch   | 25 ++++++++++++++++++++++
 media-sound/pulseaudio/pulseaudio-13.0-r1.ebuild   |  1 +
 2 files changed, 26 insertions(+)