Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting 'sdl_mixer: conan v2 support' PR #18473

Closed
wants to merge 2 commits into from

Conversation

ssrobins
Copy link
Contributor

@ssrobins ssrobins commented Jul 10, 2023

This is not intended to merge, I'm just trying to help with #18836 by attempting to solve the CI failures it has.

@conan-center-bot

This comment has been minimized.

@ssrobins
Copy link
Contributor Author

I found the problem causing the v2 test failure. The *_DYNAMIC preprocessor defines like FLAC_DYNAMIC are just being defined:

add_definitions("-D${type}_DYNAMIC")

But the SDL_LoadObject function that uses it is expecting it to be defined to a string corresponding to the shared library name:

#ifdef FLAC_DYNAMIC
        flac.handle = SDL_LoadObject(FLAC_DYNAMIC);
        if (flac.handle == NULL) {
            return -1;
        }

In newer versions of SDL_mixer, an official CMakeLists.txt was added and you can see that's exactly what it's doing:
https://github.com/libsdl-org/SDL_mixer/blob/08c0ad55ca79498a899534cf874eae6d867bf043/CMakeLists.txt#L600

Removing the *_DYNAMIC defines works around the problem because the #ifdef prevents it from getting to the `SDL_LoadObject`` call. The output from the test_package run still indicates support for several of the audio formats, including FLAC:

sdl_mixer/2.0.4 (test package): RUN: ./test_package
SDL2_mixer version: 2.0.4
Supported MIX_INIT_MOD:  Yes
Supported MIX_INIT_MP3:  Yes
Supported MIX_INIT_OGG:  Yes
Supported MIX_INIT_FLAC:  Yes
Supported MIX_INIT_MID:  No
Supported MIX_INIT_OPUS:  Yes

I think that's because the explicit load isn't necessary since the SDL_mixer shared library is built with the dependencies and has all the rpath settings to find the .so files so everything loads automatically at startup.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit a05c0e8
sdl_mixer/2.0.4
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'AppKit' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'CoreServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'CoreGraphics' but it is not in cpp_info.frameworks.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 5be2514
sdl_mixer/2.0.4
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'CoreServices' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'AppKit' but it is not in cpp_info.frameworks.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libSDL2_mixer.dylib' links to system library 'CoreGraphics' but it is not in cpp_info.frameworks.

@ssrobins
Copy link
Contributor Author

As for the windows build error:

Creating library C:/J/w/prod/BuildSingleReference/.conan/data/sdl_mixer/2.0.4/_/_/build/d7d69c930b152bee9cb71865c7ad680243ef7c19/build/Release/SDL2_mixer.lib and object C:/J/w/prod/BuildSingleReference/.conan/data/sdl_mixer/2.0.4/_/_/build/d7d69c930b152bee9cb71865c7ad680243ef7c19/build/Release/SDL2_mixer.exp
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_new referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_delete referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_get_state referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_init_stream referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_finish referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_flush referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_single referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_until_end_of_metadata referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_until_end_of_stream referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_seek_absolute referenced in function FLAC_Load [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]
C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\Release\SDL2_mixer.dll : fatal error LNK1120: 10 unresolved externals [C:\J\w\prod\BuildSingleReference\.conan\data\sdl_mixer\2.0.4\_\_\build\d7d69c930b152bee9cb71865c7ad680243ef7c19\build\sdl2_mixer.vcxproj]

It works fine with flac 1.3.3, but fails with flac 1.4.2. We can't just downgrade, because that causes version conflicts on Linux dependencies.

Using MSVC's dumpbin tool, I can confirm that symbol is present in FLAC.lib and that the library is static as expected. I see no difference between the two versions of flac that would explain this...

@conan-center-bot

This comment has been minimized.

@ghost ghost mentioned this pull request Jul 22, 2023
@ghost
Copy link

ghost commented Jul 22, 2023

I detected other pull requests that are modifying sdl_mixer/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@stale
Copy link

stale bot commented Oct 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 15, 2023
@stale stale bot removed the stale label Nov 9, 2023
@conan-center-bot conan-center-bot added Failed Version conflict There is a version conflict when solving the dependencies graph labels Nov 9, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot removed the Version conflict There is a version conflict when solving the dependencies graph label Nov 11, 2023
@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 5 (a30b643e1d346e58f6236ba2d3e90cde25d89600):

  • sdl_mixer/2.0.4:
    CI failed to create some packages (All logs)

    Logs for packageID 24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3:
    [settings]
    arch=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MDd
    compiler.version=16
    os=Windows
    [options]
    sdl_mixer:shared=True
    
    [...]
    modplug.lib(load_mdl.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_mdl.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_okt.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_okt.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_dmf.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_dmf.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_ptm.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_ptm.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_dbm.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_dbm.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_amf.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_amf.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_mt2.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_mt2.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_psm.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_psm.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_umx.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_umx.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_abc.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_abc.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_mid.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_mid.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(load_pat.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(load_pat.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(mmcmp.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(mmcmp.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(snd_flt.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(snd_flt.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    modplug.lib(fastmix.obj) : warning LNK4099: PDB 'modplug.pdb' was not found with 'modplug.lib(fastmix.obj)' or at 'C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\modplug.pdb'; linking object as if no debug info [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
         Creating library C:/J2/w/prod-v1/bsr/49596/bbfbe/.conan/data/sdl_mixer/2.0.4/_/_/build/24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3/build/Debug/SDL2_mixer.lib and object C:/J2/w/prod-v1/bsr/49596/bbfbe/.conan/data/sdl_mixer/2.0.4/_/_/build/24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3/build/Debug/SDL2_mixer.exp
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_new referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_delete referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_get_state referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_init_stream referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_finish referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_flush referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_single referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_until_end_of_metadata referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_process_until_end_of_stream referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    music_flac.obj : error LNK2019: unresolved external symbol __imp_FLAC__stream_decoder_seek_absolute referenced in function FLAC_Load [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\Debug\SDL2_mixer.dll : fatal error LNK1120: 10 unresolved externals [C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build\sdl2_mixer.vcxproj]
    sdl_mixer/2.0.4: 
    CMake Warning (dev) at build/generators/flac-Target-debug.cmake:124 (if):
      Policy CMP0054 is not set: Only interpret if() arguments as variables or
      keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
      details.  Use the cmake_policy command to set the policy and suppress this
      warning.
    
      Quoted variables like "FLAC" will no longer be dereferenced when the policy
      is set to NEW.  Since the policy is not set the OLD behavior will be used.
    Call Stack (most recent call first):
      build/generators/flacTargets.cmake:26 (include)
      build/generators/flac-config.cmake:16 (include)
      CMakeLists.txt:107 (find_package)
    This warning is for project developers.  Use -Wno-dev to suppress it.
    
    WARN: opusfile/0.12: requirement openssl/[>=1.1 <4] overridden by sdl_mixer/2.0.4 to openssl/3.1.4 
    sdl_mixer/2.0.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    sdl_mixer/2.0.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    sdl_mixer/2.0.4: ERROR: Package '24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3' build failed
    sdl_mixer/2.0.4: WARN: Build folder C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build
    ERROR: sdl_mixer/2.0.4: Error in build() method, line 136
    	cmake.build()
    	ConanException: Error 1 while executing cmake --build "C:\J2\w\prod-v1\bsr\49596\bbfbe\.conan\data\sdl_mixer\2.0.4\_\_\build\24ab3a8b23bb3fb62eee398b5bf62c41d367a0d3\build" --config Debug
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 5 (a30b643e1d346e58f6236ba2d3e90cde25d89600):

  • sdl_mixer/2.0.4:
    CI failed to create some packages (All logs)

    Logs for packageID c21560042422db3b5098f2bfd9120edd84f15ee0:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=True
    
    [...]
    -- Conan: Target declared 'automake::automake'
    -- Conan: Target declared 'autoconf::autoconf'
    -- Conan: Target declared 'm4::m4'
    -- Conan: Target declared 'ALSA::ALSA'
    -- Conan: Component target declared 'OpenSSL::Crypto'
    -- Conan: Component target declared 'OpenSSL::SSL'
    -- Conan: Target declared 'openssl::openssl'
    -- Conan: Including build module from '/home/conan/w/prod-v2/bsr/39589/bccaf/p/opens01c26b3376674/p/lib/cmake/conan-official-openssl-variables.cmake'
    -- Conan: Target declared 'libmad::libmad'
    -- Conan: Component target declared 'opusfile::libopusfile'
    -- Conan: Component target declared 'opusfile::opusurl'
    -- Conan: Target declared 'opusfile::opusfile'
    -- Conan: Target declared 'libmikmod::libmikmod'
    -- Conan: Target declared 'libmodplug::libmodplug'
    -- Conan: Target declared 'tinymidi::tinymidi'
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_POLICY_DEFAULT_CMP0091
    
    
    -- Build files have been written to: /home/conan/w/prod-v2/bsr/cci-dcdb1df6/recipes/sdl_mixer/all/test_package/build/gcc-11-x86_64-17-release
    
    sdl_mixer/2.0.4 (test package): Running CMake.build()
    sdl_mixer/2.0.4 (test package): RUN: cmake --build "/home/conan/w/prod-v2/bsr/cci-dcdb1df6/recipes/sdl_mixer/all/test_package/build/gcc-11-x86_64-17-release" -- -j3
    Scanning dependencies of target test_package
    [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o
    [100%] Linking C executable test_package
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libGL.so: .dynsym local symbol at index 3 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libGL.so: .dynsym local symbol at index 4 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libGL.so: .dynsym local symbol at index 5 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libEGL.so: .dynsym local symbol at index 3 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libEGL.so: .dynsym local symbol at index 4 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libEGL.so: .dynsym local symbol at index 5 (>= sh_info of 3)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libgbm.so.1: .dynsym local symbol at index 2 (>= sh_info of 2)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libgbm.so.1: .dynsym local symbol at index 3 (>= sh_info of 2)
    /opt/conan/binutils/bin/ld: /usr/lib/x86_64-linux-gnu/libgbm.so.1: .dynsym local symbol at index 4 (>= sh_info of 2)
    [100%] Built target test_package
    
    
    ======== Testing the package: Executing test ========
    sdl_mixer/2.0.4 (test package): Running test()
    sdl_mixer/2.0.4 (test package): RUN: ./test_package
    Segmentation fault
    
    ERROR: sdl_mixer/2.0.4 (test package): Error in test() method, line 26
    	self.run(bin_path, env="conanrun")
    	ConanException: Error 139 while executing
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Copy link

stale bot commented Dec 15, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1 similar comment
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Apr 15, 2024
Copy link
Contributor

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@github-actions github-actions bot closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants