Skip to content

csfml: add package #6922

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

Merged
merged 23 commits into from
Apr 29, 2025
Merged

csfml: add package #6922

merged 23 commits into from
Apr 29, 2025

Conversation

luadebug
Copy link
Contributor

@luadebug luadebug commented Apr 17, 2025

error: ...ner/work/xmake-repo/xmake-repo/packages/s/sfml/xmake.lua:298: ...gramdir/core/sandbox/modules/import/core/tool/linker.lua:75: @programdir/core/sandbox/modules/os.lua:273: /opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x217): undefined reference to `__imp___iob_func'
/opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x267): undefined reference to `__imp___iob_func'
/opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x2c7): undefined reference to `__imp___iob_func'
/opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x532): undefined reference to `__imp___iob_func'
/opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x4db2): undefined reference to `__imp___iob_func'
/opt/homebrew/Cellar/mingw-w64/12.0.0_2/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /Users/runner/.xmake/packages/s/sfml/2.6.1/3e5ef4c2dd674ebf9f99ded2f323c39f/lib/libflac.a(stream_decoder.o):stream_decoder.c:(.text+0x4e03): more undefined references to `__imp___iob_func' follow
collect2: error: ld returned 1 exit status

I dont know how to fix iob issue for MacOSX MinGW, it is defined into <stdio.h>. Maybe stored into some libmsvcrt.a libmsvcr80.a https://github.com/search?q=repo%3Amingw-w64%2Fmingw-w64+__iob_func&type=code

@star-hengxing
Copy link
Contributor

gcc15 (Fedora) break some c project, fixed #6936

@luadebug luadebug closed this Apr 20, 2025
@luadebug luadebug reopened this Apr 20, 2025
@luadebug
Copy link
Contributor Author

luadebug commented Apr 20, 2025

gcc15 (Fedora) break some c project, fixed #6936

Thanks for fix. It works fine.

Yet with new Win11 arm64, I keep getting this.

note: the following packages are unsupported on windows/arm64:
  -> python 3.13.1 [host, binary, runtimes:"MD", from:meson, license:PSF]

Despite existing Windows arm64 build (windows-2022, arm64 works https://github.com/xmake-io/xmake-repo/actions/runs/14560671405/job/40843547857?pr=6922#step:5:1300?

mode = "release",
  arch = "x64",
  name = "python",
  artifacts = { 
    installdir = "C:\Users\runneradmin\AppData\Local\.xmake\packages\p\python\3.13.1\14be7448f5d549bb9e15ae4a7bbbd982",� 
  },
  license = "PSF",� 
}

python --version
Python 3.13.1
python -c "import pip"
python -c "import setuptools"
python -c "import wheel"
  => install python 3.13.1 .. ok
D:\a\xmake-repo\xmake-repo\.xmake-cache\winenv\bin\curl -SL -A "Xmake/3.0.0+HEAD.08a71b424 (Windows;) curl/8.11.0" https://github.com/mesonbuild/meson/releases/download/1.7.0/meson-1.7.0.tar.gz -o meson-1.7.0.tar.gz

Confused, since this means meson wont work for new github CI worker win11 arm64.

@luadebug luadebug marked this pull request as draft April 20, 2025 20:51
@luadebug luadebug closed this Apr 20, 2025
@luadebug luadebug reopened this Apr 21, 2025
@luadebug luadebug closed this Apr 21, 2025
@star-hengxing
Copy link
Contributor

gcc15 (Fedora) break some c project, fixed #6936

Thanks for fix. It works fine.

Yet with new Win11 arm64, I keep getting this.

note: the following packages are unsupported on windows/arm64:
  -> python 3.13.1 [host, binary, runtimes:"MD", from:meson, license:PSF]

Despite existing Windows arm64 build (windows-2022, arm64 works https://github.com/xmake-io/xmake-repo/actions/runs/14560671405/job/40843547857?pr=6922#step:5:1300?

mode = "release",
  arch = "x64",
  name = "python",
  artifacts = { 
    installdir = "C:\Users\runneradmin\AppData\Local\.xmake\packages\p\python\3.13.1\14be7448f5d549bb9e15ae4a7bbbd982",� 
  },
  license = "PSF",� 
}

python --version
Python 3.13.1
python -c "import pip"
python -c "import setuptools"
python -c "import wheel"
  => install python 3.13.1 .. ok
D:\a\xmake-repo\xmake-repo\.xmake-cache\winenv\bin\curl -SL -A "Xmake/3.0.0+HEAD.08a71b424 (Windows;) curl/8.11.0" https://github.com/mesonbuild/meson/releases/download/1.7.0/meson-1.7.0.tar.gz -o meson-1.7.0.tar.gz

Confused, since this means meson wont work for new github CI worker win11 arm64.

We need to package windows arm64 python binaries for native build.

@luadebug
Copy link
Contributor Author

gcc15 (Fedora) break some c project, fixed #6936

Thanks for fix. It works fine.
Yet with new Win11 arm64, I keep getting this.

note: the following packages are unsupported on windows/arm64:
  -> python 3.13.1 [host, binary, runtimes:"MD", from:meson, license:PSF]

Despite existing Windows arm64 build (windows-2022, arm64 works https://github.com/xmake-io/xmake-repo/actions/runs/14560671405/job/40843547857?pr=6922#step:5:1300?

mode = "release",
  arch = "x64",
  name = "python",
  artifacts = { 
    installdir = "C:\Users\runneradmin\AppData\Local\.xmake\packages\p\python\3.13.1\14be7448f5d549bb9e15ae4a7bbbd982",� 
  },
  license = "PSF",� 
}

python --version
Python 3.13.1
python -c "import pip"
python -c "import setuptools"
python -c "import wheel"
  => install python 3.13.1 .. ok
D:\a\xmake-repo\xmake-repo\.xmake-cache\winenv\bin\curl -SL -A "Xmake/3.0.0+HEAD.08a71b424 (Windows;) curl/8.11.0" https://github.com/mesonbuild/meson/releases/download/1.7.0/meson-1.7.0.tar.gz -o meson-1.7.0.tar.gz

Confused, since this means meson wont work for new github CI worker win11 arm64.

We need to package windows arm64 python binaries for native build.

I wonder how would it look like, I think it would look like creating another repository like this https://github.com/xmake-mirror/python-windows but https://github.com/xmake-mirror/python-windows-arm64 and setting another arm64 windows worker some & code change.

@luadebug luadebug reopened this Apr 25, 2025
@luadebug luadebug marked this pull request as ready for review April 25, 2025 17:32
@luadebug
Copy link
Contributor Author

Let me know if something need to change.

@luadebug luadebug requested a review from SirLynix April 25, 2025 21:11
@waruqi waruqi merged commit 6e1f2b2 into xmake-io:dev Apr 29, 2025
73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants