We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4858 - error when building for mingw
Summary: error when building for mingw
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.10
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-13 00:38 UTC by am.devel
Modified: 2019-11-13 07:52 UTC (History)
1 user (show)

See Also:


Attachments
proposed fix (1.78 KB, patch)
2019-11-13 00:38 UTC, am.devel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description am.devel 2019-11-13 00:38:40 UTC
Created attachment 4045 [details]
proposed fix

There's a build race where makefile tries to build version res file in build directory before it has even been created.

/bin/bash ../SDL2-2.0.10/build-scripts/updaterev.sh
/bin/bash ../SDL2-2.0.10/build-scripts/mkinstalldirs build
mkdir -p -- build
x86_64-pokysdk-mingw32-windres --include-dir=/home/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/x86_64-nativesdk-mingw32-pokysdk-mingw32/nativesdk-libsdl2/2.0.10-r0/recipe-sysroot/opt/poky/3.0/sysroots/x86_64-pokysdk-mingw32/usr/include ../SDL2-2.0.10/src/main/windows/version.rc build/version.o
x86_64-pokysdk-mingw32-windres: build/version.o: No such file or directory
Makefile:692: recipe for target 'build/version.o' failed
make: *** [build/version.o] Error 1
make: *** Waiting for unfinished jobs....
touch build/.created
WARNING: exit code 1 from a shell command.

Attached patch fixes it.
Comment 1 Ozkan Sezer 2019-11-13 07:52:04 UTC
Applied this:  https://hg.libsdl.org/SDL/rev/1fb1880d5edf
Thanks.