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 - build failure with parallel make
Summary: build failure with parallel make
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: x86 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-22 18:38 UTC by orbea
Modified: 2021-01-22 19:38 UTC (History)
1 user (show)

See Also:


Attachments
Build fix patch. (3.50 KB, patch)
2021-01-22 18:38 UTC, orbea
Details | Diff
Build log (10.49 KB, text/x-log)
2021-01-22 18:39 UTC, orbea
Details

Note You need to log in before you can comment on or make changes to this bug.
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.