Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762991 - media-libs/libsdl2-2.0.14: src/thread/pthread directory fails to build (32-bit)
Summary: media-libs/libsdl2-2.0.14: src/thread/pthread directory fails to build (32-bit)
Status: RESOLVED INVALID
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: 2021-01-01 23:15 UTC by Bob Wya
Modified: 2021-01-02 19:38 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,11.63 KB, text/plain)
2021-01-01 23:17 UTC, Bob Wya
Details
media-libs:libsdl2-2.0.14:20210101-230606.log (media-libs:libsdl2-2.0.14:20210101-230606.log,193.36 KB, text/plain)
2021-01-01 23:19 UTC, Bob Wya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Wya 2021-01-01 23:15:50 UTC
From the log:
...
/tmp/portage/media-libs/libsdl2-2.0.14/work/SDL2-2.0.14-abi_x86_32.x86/src/thread/pthread/SDL_systhread.c:97:26: error: ‘RTLD_DEFAULT’ undeclared (first use in this function)
...
/tmp/portage/media-libs/libsdl2-2.0.14/work/SDL2-2.0.14-abi_x86_32.x86/src/thread/pthread/SDL_systhread.c:261:34: error: ‘SYS_gettid’ undeclared (first use in this function)
...


Reproducible: Always

Steps to Reproduce:
1. Attempt to build package:

emerge -p1v media-libs/libsdl2

Calculating dependencies... done!
[ebuild     U  ] media-libs/libsdl2-2.0.14::gentoo [2.0.12-r2::gentoo] USE="X alsa dbus gles2 haptic joystick opengl pulseaudio sound threads udev video vulkan wayland xinerama (-aqua) (-custom-cflags) -fcitx4 -ibus -jack -kms -libsamplerate -nas -oss -static-libs -xscreensaver (-tslib%)" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" VIDEO_CARDS="(-vc4)" 0 KiB

Actual Results:  
package fails to build

Expected Results:  
package builds successfully
Comment 1 Bob Wya 2021-01-01 23:17:27 UTC
Created attachment 680551 [details]
emerge --info
Comment 2 Bob Wya 2021-01-01 23:19:31 UTC
Created attachment 680554 [details]
media-libs:libsdl2-2.0.14:20210101-230606.log

Build log for =media-libs/libsdl2-2.0.14::gentoo ...
Comment 3 Ionen Wolkens gentoo-dev 2021-01-01 23:38:37 UTC
The ebuild has a workaround for this:
    # libsdl2-2.0.14 build regression. Please check if still needed
    append-flags -D__LINUX__

However I don't see -D__LINUX__ in your build log, and it's to be expected given:
   * lto-overlay: append-flags OVERRIDDEN

Please don't override flag-o-matic and try again. Many ebuilds use append-flags for important flags.
Comment 4 Bob Wya 2021-01-02 19:23:36 UTC
(In reply to Ionen Wolkens from comment #3)
> The ebuild has a workaround for this:
>     # libsdl2-2.0.14 build regression. Please check if still needed
>     append-flags -D__LINUX__
> 
> However I don't see -D__LINUX__ in your build log, and it's to be expected
> given:
>    * lto-overlay: append-flags OVERRIDDEN
> 
> Please don't override flag-o-matic and try again. Many ebuilds use
> append-flags for important flags.

Thanks and sorry for the noise.

I'll report an LTO_ENABLE_FLAGOMATIC=yes override is required for media-libs/libsdl2 Upstream.
The package builds fine with that!
Comment 5 Ionen Wolkens gentoo-dev 2021-01-02 19:38:08 UTC
(In reply to Bob Wya from comment #4)
> Thanks and sorry for the noise.
> 
> I'll report an LTO_ENABLE_FLAGOMATIC=yes override is required for
> media-libs/libsdl2 Upstream.
> The package builds fine with that!
No problem, and may want to suggest to stop overriding append-flags entirely instead. I understand the rationale for the others like strip-flags, but append-flags is really just trouble.