xmake-io / xmake-repo

📦 An official xmake package repository
https://xrepo.xmake.io
Apache License 2.0
686 stars 396 forks source link

openal-soft does not build #2580

Closed Persson-dev closed 1 year ago

Persson-dev commented 1 year ago

Xmake Version

2.8.2

Operating System Version and Architecture

Debian 12 (Kernel 6.1.0-11-amd64)

Describe Bug

I tried to install openal-soft (because of sfml) and the installation process does not work. However, it seems to work when it's built in shared mode rather than static.

Expected Behavior

Compile ?

Project Configuration

I just did xrepo install sfml

Additional Information and Error Logs

configure
{
    buildir = build
    kind = static
    clean = true
    ndk_stdcxx = true
    arch = x86_64
    plat = linux
    mode = release
    ccache = true
    host = linux
}

[...]

-- Build files have been written to: /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711
make -j10 VERBOSE=1
/home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -S/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -B/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 --check-build-system CMakeFiles/Makefile.cmake 0
/home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -E cmake_progress_start /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711/CMakeFiles /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1] : on entre dans le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
make  -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/depend
make[2] : on entre dans le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
[  0%] Generating default_hrtf.txt
cd /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source && /home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -D "INPUT_FILE=/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/hrtf/Default HRTF.mhr" -D OUTPUT_FILE=/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711/default_hrtf.txt -P /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/cmake/bin2h.script.cmake
cd /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 && /home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -E cmake_depends "Unix Makefiles" /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711/CMakeFiles/OpenAL.dir/DependInfo.cmake --color=
make[2] : on quitte le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
make  -f CMakeFiles/OpenAL.dir/build.make CMakeFiles/OpenAL.dir/build
make[2] : on entre dans le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
[  1%] Building CXX object CMakeFiles/OpenAL.dir/common/polyphase_resampler.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/common/polyphase_resampler.cpp.o -MF CMakeFiles/OpenAL.dir/common/polyphase_resampler.cpp.o.d -o CMakeFiles/OpenAL.dir/common/polyphase_resampler.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common/polyphase_resampler.cpp
[  2%] Building CXX object CMakeFiles/OpenAL.dir/common/alcomplex.cpp.o
[  5%] Building CXX object CMakeFiles/OpenAL.dir/common/strutils.cpp.o
[  5%] Building CXX object CMakeFiles/OpenAL.dir/common/alstring.cpp.o

[...]

[ 89%] Building CXX object CMakeFiles/OpenAL.dir/core/uiddefs.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/uiddefs.cpp.o -MF CMakeFiles/OpenAL.dir/core/uiddefs.cpp.o.d -o CMakeFiles/OpenAL.dir/core/uiddefs.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/uiddefs.cpp
[ 91%] Building CXX object CMakeFiles/OpenAL.dir/core/voice.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/voice.cpp.o -MF CMakeFiles/OpenAL.dir/core/voice.cpp.o.d -o CMakeFiles/OpenAL.dir/core/voice.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/voice.cpp
[ 92%] Building CXX object CMakeFiles/OpenAL.dir/core/dbus_wrap.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/dbus_wrap.cpp.o -MF CMakeFiles/OpenAL.dir/core/dbus_wrap.cpp.o.d -o CMakeFiles/OpenAL.dir/core/dbus_wrap.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/dbus_wrap.cpp
[ 93%] Building CXX object CMakeFiles/OpenAL.dir/core/rtkit.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/rtkit.cpp.o -MF CMakeFiles/OpenAL.dir/core/rtkit.cpp.o.d -o CMakeFiles/OpenAL.dir/core/rtkit.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/rtkit.cpp
[ 94%] Building CXX object CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o -MF CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o.d -o CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/mixer/mixer_c.cpp
[ 95%] Building CXX object CMakeFiles/OpenAL.dir/core/mixer/mixer_sse.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/mixer/mixer_sse.cpp.o -MF CMakeFiles/OpenAL.dir/core/mixer/mixer_sse.cpp.o.d -o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/mixer/mixer_sse.cpp
[ 96%] Building CXX object CMakeFiles/OpenAL.dir/core/mixer/mixer_sse2.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/mixer/mixer_sse2.cpp.o -MF CMakeFiles/OpenAL.dir/core/mixer/mixer_sse2.cpp.o.d -o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse2.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/mixer/mixer_sse2.cpp
[ 97%] Building CXX object CMakeFiles/OpenAL.dir/core/mixer/mixer_sse3.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/mixer/mixer_sse3.cpp.o -MF CMakeFiles/OpenAL.dir/core/mixer/mixer_sse3.cpp.o.d -o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse3.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/mixer/mixer_sse3.cpp
[ 98%] Building CXX object CMakeFiles/OpenAL.dir/core/mixer/mixer_sse41.cpp.o
/usr/bin/c++ -DALC_API="" -DAL_ALEXT_PROTOTYPES -DAL_API="" -DAL_BUILD_LIBRARY -DAL_LIBTYPE_STATIC -DRESTRICT=__restrict -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/include -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source -I/home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/common -O3 -DNDEBUG -std=gnu++14 -fPIC -fvisibility=hidden -Winline -Wunused -Wall -Wextra -Wshadow -Wconversion -Wcast-align -Wpedantic -Wold-style-cast -Wnon-virtual-dtor -Woverloaded-virtual -Wno-c++20-attribute-extensions -fno-math-errno -pthread -MD -MT CMakeFiles/OpenAL.dir/core/mixer/mixer_sse41.cpp.o -MF CMakeFiles/OpenAL.dir/core/mixer/mixer_sse41.cpp.o.d -o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse41.cpp.o -c /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/core/mixer/mixer_sse41.cpp
[100%] Linking CXX static library libopenal.a
/home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -P CMakeFiles/OpenAL.dir/cmake_clean_target.cmake
/home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -E cmake_link_script CMakeFiles/OpenAL.dir/link.txt --verbose=1
/usr/bin/ar qc libopenal.a CMakeFiles/OpenAL.dir/common/alcomplex.cpp.o CMakeFiles/OpenAL.dir/common/alfstream.cpp.o CMakeFiles/OpenAL.dir/common/almalloc.cpp.o CMakeFiles/OpenAL.dir/common/alstring.cpp.o CMakeFiles/OpenAL.dir/common/dynload.cpp.o CMakeFiles/OpenAL.dir/common/polyphase_resampler.cpp.o CMakeFiles/OpenAL.dir/common/ringbuffer.cpp.o CMakeFiles/OpenAL.dir/common/strutils.cpp.o CMakeFiles/OpenAL.dir/common/threads.cpp.o CMakeFiles/OpenAL.dir/al/auxeffectslot.cpp.o CMakeFiles/OpenAL.dir/al/buffer.cpp.o CMakeFiles/OpenAL.dir/al/effect.cpp.o CMakeFiles/OpenAL.dir/al/effects/autowah.cpp.o CMakeFiles/OpenAL.dir/al/effects/chorus.cpp.o CMakeFiles/OpenAL.dir/al/effects/compressor.cpp.o CMakeFiles/OpenAL.dir/al/effects/convolution.cpp.o CMakeFiles/OpenAL.dir/al/effects/dedicated.cpp.o CMakeFiles/OpenAL.dir/al/effects/distortion.cpp.o CMakeFiles/OpenAL.dir/al/effects/echo.cpp.o CMakeFiles/OpenAL.dir/al/effects/effects.cpp.o CMakeFiles/OpenAL.dir/al/effects/equalizer.cpp.o CMakeFiles/OpenAL.dir/al/effects/fshifter.cpp.o CMakeFiles/OpenAL.dir/al/effects/modulator.cpp.o CMakeFiles/OpenAL.dir/al/effects/null.cpp.o CMakeFiles/OpenAL.dir/al/effects/pshifter.cpp.o CMakeFiles/OpenAL.dir/al/effects/reverb.cpp.o CMakeFiles/OpenAL.dir/al/effects/vmorpher.cpp.o CMakeFiles/OpenAL.dir/al/error.cpp.o CMakeFiles/OpenAL.dir/al/event.cpp.o CMakeFiles/OpenAL.dir/al/extension.cpp.o CMakeFiles/OpenAL.dir/al/filter.cpp.o CMakeFiles/OpenAL.dir/al/listener.cpp.o CMakeFiles/OpenAL.dir/al/source.cpp.o CMakeFiles/OpenAL.dir/al/state.cpp.o CMakeFiles/OpenAL.dir/alc/alc.cpp.o CMakeFiles/OpenAL.dir/alc/alu.cpp.o CMakeFiles/OpenAL.dir/alc/alconfig.cpp.o CMakeFiles/OpenAL.dir/alc/context.cpp.o CMakeFiles/OpenAL.dir/alc/device.cpp.o CMakeFiles/OpenAL.dir/alc/effects/autowah.cpp.o CMakeFiles/OpenAL.dir/alc/effects/chorus.cpp.o CMakeFiles/OpenAL.dir/alc/effects/compressor.cpp.o CMakeFiles/OpenAL.dir/alc/effects/convolution.cpp.o CMakeFiles/OpenAL.dir/alc/effects/dedicated.cpp.o CMakeFiles/OpenAL.dir/alc/effects/distortion.cpp.o CMakeFiles/OpenAL.dir/alc/effects/echo.cpp.o CMakeFiles/OpenAL.dir/alc/effects/equalizer.cpp.o CMakeFiles/OpenAL.dir/alc/effects/fshifter.cpp.o CMakeFiles/OpenAL.dir/alc/effects/modulator.cpp.o CMakeFiles/OpenAL.dir/alc/effects/null.cpp.o CMakeFiles/OpenAL.dir/alc/effects/pshifter.cpp.o CMakeFiles/OpenAL.dir/alc/effects/reverb.cpp.o CMakeFiles/OpenAL.dir/alc/effects/vmorpher.cpp.o CMakeFiles/OpenAL.dir/alc/panning.cpp.o CMakeFiles/OpenAL.dir/alc/backends/base.cpp.o CMakeFiles/OpenAL.dir/alc/backends/loopback.cpp.o CMakeFiles/OpenAL.dir/alc/backends/null.cpp.o CMakeFiles/OpenAL.dir/alc/backends/pulseaudio.cpp.o CMakeFiles/OpenAL.dir/alc/backends/alsa.cpp.o CMakeFiles/OpenAL.dir/alc/backends/oss.cpp.o CMakeFiles/OpenAL.dir/alc/backends/sndio.cpp.o CMakeFiles/OpenAL.dir/alc/backends/wave.cpp.o CMakeFiles/OpenAL.dir/core/ambdec.cpp.o CMakeFiles/OpenAL.dir/core/ambidefs.cpp.o CMakeFiles/OpenAL.dir/core/bformatdec.cpp.o CMakeFiles/OpenAL.dir/core/bs2b.cpp.o CMakeFiles/OpenAL.dir/core/bsinc_tables.cpp.o CMakeFiles/OpenAL.dir/core/buffer_storage.cpp.o CMakeFiles/OpenAL.dir/core/context.cpp.o CMakeFiles/OpenAL.dir/core/converter.cpp.o CMakeFiles/OpenAL.dir/core/cpu_caps.cpp.o CMakeFiles/OpenAL.dir/core/cubic_tables.cpp.o CMakeFiles/OpenAL.dir/core/devformat.cpp.o CMakeFiles/OpenAL.dir/core/device.cpp.o CMakeFiles/OpenAL.dir/core/effectslot.cpp.o CMakeFiles/OpenAL.dir/core/except.cpp.o CMakeFiles/OpenAL.dir/core/filters/biquad.cpp.o CMakeFiles/OpenAL.dir/core/filters/nfc.cpp.o CMakeFiles/OpenAL.dir/core/filters/splitter.cpp.o CMakeFiles/OpenAL.dir/core/fmt_traits.cpp.o CMakeFiles/OpenAL.dir/core/fpu_ctrl.cpp.o CMakeFiles/OpenAL.dir/core/helpers.cpp.o CMakeFiles/OpenAL.dir/core/hrtf.cpp.o CMakeFiles/OpenAL.dir/core/logging.cpp.o CMakeFiles/OpenAL.dir/core/mastering.cpp.o CMakeFiles/OpenAL.dir/core/mixer.cpp.o CMakeFiles/OpenAL.dir/core/uhjfilter.cpp.o CMakeFiles/OpenAL.dir/core/uiddefs.cpp.o CMakeFiles/OpenAL.dir/core/voice.cpp.o CMakeFiles/OpenAL.dir/core/dbus_wrap.cpp.o CMakeFiles/OpenAL.dir/core/rtkit.cpp.o CMakeFiles/OpenAL.dir/core/mixer/mixer_c.cpp.o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse.cpp.o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse2.cpp.o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse3.cpp.o CMakeFiles/OpenAL.dir/core/mixer/mixer_sse41.cpp.o
/usr/bin/ranlib libopenal.a
make[2] : on quitte le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
[100%] Built target OpenAL
make[1] : on quitte le répertoire « /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711 »
/home/simon/.xmake/packages/c/cmake/3.26.4/70ca2de0269e418ea31bc5c390d4443f/bin/cmake -E cmake_progress_start /home/simon/.xmake/cache/packages/2309/o/openal-soft/1.23.1/source/build_ac313711/CMakeFiles 0
make install
[100%] Built target OpenAL
Install the project...
-- Install configuration: "Release"
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/cmake/OpenAL/OpenALTargets.cmake
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/cmake/OpenAL/OpenALTargets-release.cmake
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/efx-presets.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/alext.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/al.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/efx-creative.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/efx.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include/AL/alc.h
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/pkgconfig/openal.pc
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/cmake/OpenAL/OpenALConfig.cmake
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/alsoftrc.sample
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/hrtf
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/hrtf/Default HRTF.mhr
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/3D7.1.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/hex-quad.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/itu5.1-nocenter.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/itu5.1.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/presets.txt
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/rectangle.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/square.ambdec
-- Installing: /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/share/openal/presets/hexagon.ambdec
finding openal-soft from xmake ..
checking for xmake::openal-soft ... openal-soft 1.23.1
{ 
  libfiles = { 
    "/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a" 
  },
  defines = "AL_LIBTYPE_STATIC",
  links = { 
    "openal" 
  },
  sysincludedirs = { 
    "/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include" 
  },
  version = "1.23.1",
  license = "LGPL-2.0",
  static = true,
  linkdirs = { 
    "/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib" 
  },
  syslinks = { 
    "dl",
    "pthread" 
  } 
}

checking for gcc ... /usr/bin/gcc
checking for the c compiler (cc) ... gcc
checking for /usr/bin/gcc ... ok
checking for flags (-fPIC) ... ok
> gcc "-fPIC" "-m64"
> /usr/bin/gcc -c -m64 -DAL_LIBTYPE_STATIC -isystem /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/include -o /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.o /tmp/.xmake1000/230909/_67C4832F85724423B6D7B277D6F3E6B4.c
checking for flags (-fdiagnostics-color=always) ... ok
> gcc "-fdiagnostics-color=always" "-m64"
checking for g++ ... /usr/bin/g++
checking for the linker (ld) ... g++
checking for /usr/bin/g++ ... ok
checking for flags (-fPIC) ... ok
> g++ "-fPIC" "-m64" "-m64"
> /usr/bin/g++ -o /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.b /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.o -m64 -L/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib -lopenal -ldl -lpthread
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::~SndioPlayback() » :
sndio.cpp:(.text+0x78) : référence indéfinie vers « sio_close »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::~SndioCapture() » :
sndio.cpp:(.text+0xc8) : référence indéfinie vers « sio_close »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::mixerProc() » :
sndio.cpp:(.text+0x1b6) : référence indéfinie vers « sio_write »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::recordProc() » :
sndio.cpp:(.text+0x315) : référence indéfinie vers « sio_nfds »
/usr/bin/ld : sndio.cpp:(.text+0x485) : référence indéfinie vers « sio_pollfd »
/usr/bin/ld : sndio.cpp:(.text+0x4b3) : référence indéfinie vers « sio_revents »
/usr/bin/ld : sndio.cpp:(.text+0x524) : référence indéfinie vers « sio_read »
/usr/bin/ld : sndio.cpp:(.text+0x66d) : référence indéfinie vers « sio_read »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::stop() » :
sndio.cpp:(.text+0x6ce) : référence indéfinie vers « sio_stop »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::start() » :
sndio.cpp:(.text+0x720) : référence indéfinie vers « sio_start »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::start() » :
sndio.cpp:(.text+0x7d0) : référence indéfinie vers « sio_start »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::open(char const*) » :
sndio.cpp:(.text+0x8b0) : référence indéfinie vers « sio_open »
/usr/bin/ld : sndio.cpp:(.text+0x8c9) : référence indéfinie vers « sio_initpar »
/usr/bin/ld : sndio.cpp:(.text+0x957) : référence indéfinie vers « sio_setpar »
/usr/bin/ld : sndio.cpp:(.text+0x96b) : référence indéfinie vers « sio_getpar »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::open(char const*) » :
sndio.cpp:(.text+0xc70) : référence indéfinie vers « sio_open »
/usr/bin/ld : sndio.cpp:(.text+0xc8a) : référence indéfinie vers « sio_close »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::stop() » :
sndio.cpp:(.text+0xcfe) : référence indéfinie vers « sio_stop »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::~SndioCapture() » :
sndio.cpp:(.text+0xe38) : référence indéfinie vers « sio_close »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::~SndioPlayback() » :
sndio.cpp:(.text+0xe88) : référence indéfinie vers « sio_close »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::reset() » :
sndio.cpp:(.text+0xf4a) : référence indéfinie vers « sio_initpar »
/usr/bin/ld : sndio.cpp:(.text+0xfc9) : référence indéfinie vers « sio_setpar »
/usr/bin/ld : sndio.cpp:(.text+0xfd9) : référence indéfinie vers « sio_initpar »
/usr/bin/ld : sndio.cpp:(.text+0xfe5) : référence indéfinie vers « sio_getpar »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioCapture::start() [clone .cold] » :
sndio.cpp:(.text.unlikely+0x72) : référence indéfinie vers « sio_stop »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::start() [clone .cold] » :
sndio.cpp:(.text.unlikely+0x154) : référence indéfinie vers « sio_stop »
/usr/bin/ld : /home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib/libopenal.a(sndio.cpp.o) : dans la fonction « (anonymous namespace)::SndioPlayback::reset() [clone .cold] » :
sndio.cpp:(.text.unlikely+0x62b) : référence indéfinie vers « sio_initpar »
collect2: error: ld returned 1 exit status
> checking for c includes(AL/al.h)
> checking for c funcs(alGetProcAddress)
> checking for c links(openal, dl, pthread)
> checking for c snippet(has_cfuncs)
checkinfo: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:378: execv(/usr/bin/g++ -o /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.b /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.o -m64 -L/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib -lopenal -ldl -lpthread) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:921]:
    [@programdir/core/sandbox/modules/os.lua:378]: in function 'execv'
    [@programdir/modules/core/tools/gcc.lua:483]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]:
    [@programdir/core/tool/linker.lua:224]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:251]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:240]:
    [...odeworkspace/xmake-repo/packages/o/openal-soft/xmake.lua:61]: in function 'script'
    [...dir/modules/private/action/require/impl/utils/filter.lua:125]: in function 'call'
    [...dir/modules/private/action/require/impl/actions/test.lua:41]:
    [.../modules/private/action/require/impl/actions/install.lua:407]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [.../modules/private/action/require/impl/actions/install.lua:328]:
    [...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
    [@programdir/modules/private/async/runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:404]:

error: ...odeworkspace/xmake-repo/packages/o/openal-soft/xmake.lua:61: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:378: execv(/usr/bin/g++ -o /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.b /tmp/.xmake1000/230909/_DA7F3EE282624B0089A675F9BBF6BD30.o -m64 -L/home/simon/.xmake/packages/o/openal-soft/1.23.1/ac313711f22a45f2a1a2f9b24f64d1d1/lib -lopenal -ldl -lpthread) failed(1)
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:921]:
    [@programdir/core/sandbox/modules/os.lua:378]: in function 'execv'
    [@programdir/modules/core/tools/gcc.lua:483]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]:
    [@programdir/core/tool/linker.lua:224]: in function 'link'
    [...gramdir/core/sandbox/modules/import/core/tool/linker.lua:73]: in function 'link'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:251]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/lib/detect/check_cxsnippets.lua:240]:
    [...odeworkspace/xmake-repo/packages/o/openal-soft/xmake.lua:61]: in function 'script'
    [...dir/modules/private/action/require/impl/utils/filter.lua:125]: in function 'call'
    [...dir/modules/private/action/require/impl/actions/test.lua:41]:
    [.../modules/private/action/require/impl/actions/install.lua:407]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [.../modules/private/action/require/impl/actions/install.lua:328]:
    [...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
    [@programdir/modules/private/async/runjobs.lua:232]:
    [C]: in function 'xpcall'
    [@programdir/core/base/utils.lua:280]: in function 'trycall'
    [@programdir/core/sandbox/modules/try.lua:117]: in function 'try'
    [@programdir/modules/private/async/runjobs.lua:218]: in function 'cotask'
    [@programdir/core/base/scheduler.lua:404]:

  => install openal-soft 1.23.1 .. failed
error: @programdir/modules/private/async/runjobs.lua:256: .../modules/private/action/require/impl/actions/install.lua:469: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir/core/base/os.lua:921]:
    [.../modules/private/action/require/impl/actions/install.lua:469]: in function 'catch'
    [@programdir/core/sandbox/modules/try.lua:123]: in function 'try'
    [.../modules/private/action/require/impl/actions/install.lua:328]:
    [...modules/private/action/require/impl/install_packages.lua:479]: in function 'jobfunc'
    [@programdir/modules/private/async/runjobs.lua:232]:

stack traceback:
        [C]: in function 'error'
        @programdir/core/base/os.lua:921: in function 'os.raiselevel'
        (...tail calls...)
        @programdir/modules/private/async/runjobs.lua:256: in field 'catch'
        @programdir/core/sandbox/modules/try.lua:123: in global 'try'
        @programdir/modules/private/async/runjobs.lua:218: in upvalue 'cotask'
        @programdir/core/base/scheduler.lua:404: in function <@programdir/core/base/scheduler.lua:397>
error: execv(xmake require -f -y --build -v -D --shallow --extra={configs={shared=false}} openal-soft) failed(255)
waruqi commented 1 year ago

Maybe we need add libsndio package and add add_deps("libsdnio") in openal-soft package.

https://sndio.org/install.html

waruqi commented 1 year ago

https://github.com/xmake-io/xmake-repo/pull/2586

I added it. try it again.

xrepo update-repo
Persson-dev commented 1 year ago

It works now. Thanks !