Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 769920 - media-libs/libsdl does not build SDL.dll when cross-compiling with mingw
Summary: media-libs/libsdl does not build SDL.dll when cross-compiling with mingw
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Cross compilation support
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-10 21:00 UTC by PF4Public
Modified: 2021-02-11 06:19 UTC (History)
3 users (show)

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


Attachments
build.log + emerge --info.txt (build.log-emerge-info.txt,83.58 KB, text/plain)
2021-02-11 05:58 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PF4Public 2021-02-10 21:00:47 UTC
Emerging libsdl with `x86_64-w64-mingw32-emerge libsdl` results in libsdl missing SDL.dll

Reproducible: Always

Steps to Reproduce:
x86_64-w64-mingw32-emerge libsdl
Actual Results:  
No SDL.dll created

Expected Results:  
SDL.dll created and installed

Some checks in libtool prevent it from creating SDL.dll:

*** Warning: linker path does not have real file for library -ldxguid.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libdxguid and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/x86_64-w64-mingw32/mingw/lib/libdxguid.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

If compiling from same sources without `x86_64-w64-mingw32-emerge` wrapper, this dll is created and installed.
./configure --target=x86_64-w64-mingw32 --prefix=/some-folder/out
make -j; make install

Am I doing something wrong or is it a bug?
Comment 1 Ionen Wolkens gentoo-dev 2021-02-11 05:58:41 UTC
Created attachment 686298 [details]
build.log + emerge --info.txt

Not familiar with this but I can reproduce (attaching full log for completeness)

Seems to work fine if the ebuild doesn't run eautoreconf and then cross emerge gives me the:
-rwxr-xr-x 1 root root 626325 Feb 11 00:49 /usr/x86_64-w64-mingw32/usr/bin/SDL.dll

I assume this used to work, so maybe due some recent'ish autotools-related changes but haven't looked further.