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 5494

Summary: build failure with parallel make
Product: SDL_mixer Reporter: orbea
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: unspecified   
Hardware: x86   
OS: Windows 10   
Attachments: Build fix patch.
Build log

Description orbea 2021-01-22 18:38:39 UTC
Created attachment 4688 [details]
Build fix patch.

When building SDL_mixer with slibtool (https://dev.midipix.org/cross/slibtool) and -j2 or greater the build will fail because slibtool runs before the 'build' directory is created.

  rdlibtool: error logged in slbt_exec_compile(), line 158: path not found: build/.libs/.

Basically what happens is that slibtool is faster than mkdir(1), but this does not happen with GNU libtool because mkdir is faster.

This problem used to occur in the main SDL2 library, but was fixed.

https://bugzilla.libsdl.org/show_bug.cgi?id=4379
https://hg.libsdl.org/SDL/rev/99d8b18acf8a

I applied the same fix to SDL_mixer as a patch and attached it, this works for me with both slibtool and libtool.
Comment 1 orbea 2021-01-22 18:39:12 UTC
Created attachment 4689 [details]
Build log
Comment 2 Ozkan Sezer 2021-01-22 19:38:05 UTC
Should be fixed as of https://hg.libsdl.org/SDL_mixer/rev/d853335a847e
Thanks.