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

Empty toolchain while attempting to install packages using windows wasm #5542

Closed
Chi-EEE opened this issue Aug 29, 2024 · 10 comments
Closed
Labels
Milestone

Comments

@Chi-EEE
Copy link
Contributor

Chi-EEE commented Aug 29, 2024

Xmake Version

xmake v2.9.4

Operating System Version and Architecture

Windows 10 22H2

Describe Bug

Empty toolchain while attempting to install packages using windows wasm.

The toolchains list was empty here:

Expected Behavior

Finds the toolchain for wasm (emcc@emscripten)

Project Configuration

Project folder where the error occurred
platform.lua.zip

Steps to replicate:

  1. Install fresh xmake

  2. Run xmake f -p wasm -vD in the project

Additional Information and Error Logs

checking for em++.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\em++.bat
checking for the linker (ld) ... em++.bat
error: @programdir\core\package\package.lua:2364: cannot get program for ld
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [@programdir\core\package\package.lua:2364]: in function '_generate_build_configs'
    [@programdir\core\package\package.lua:2589]: in function 'check_cxxsnippets'
    [....xmake\repositories\xmake-repo\packages\a\asap\xmake.lua:15]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...dir\modules\private\action\require\impl\actions\test.lua:41]:
    [...\modules\private\action\require\impl\actions\install.lua:432]:

  => install asap-fork 2023.04.21 .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:361]:
    [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
error: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:316]:
    [@programdir\modules\package\tools\cmake.lua:886]: in function '_get_envs_for_runtime_flags'
    [@programdir\modules\package\tools\cmake.lua:928]: in function '_get_configs'
    [@programdir\modules\package\tools\cmake.lua:1234]: in function 'install'
    [...\.xmake\repositories\xmake-repo\packages\f\fmt\xmake.lua:70]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:392]:

  => install fmt 11.0.2 .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch'
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:361]:
    [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
@Chi-EEE Chi-EEE added the bug label Aug 29, 2024
@xmake-io xmake-io deleted a comment from Anubi5x0 Aug 29, 2024
waruqi added a commit that referenced this issue Aug 29, 2024
@waruqi
Copy link
Member

waruqi commented Aug 29, 2024

try this patch. #5543

@waruqi waruqi added this to the v2.9.5 milestone Aug 29, 2024
@Chi-EEE
Copy link
Contributor Author

Chi-EEE commented Aug 29, 2024

I still get the error:
xmake update --scriptonly github:xmake-io/xmake#package

checking for architecture ... wasm32
checking for emsdk directory ... no
checkinfo: cannot runv(emcc.bat --version), No such file or directory
checking for emcc.bat ... no
checkinfo: cannot runv(emcc.exe --version), No such file or directory
checking for emcc ... no
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Users\admin\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
git rev-parse HEAD
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33811
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for python ... no
checking for python3 ... no
checking for python ... no
checking for python2 ... no
checking for python ... no
checking for emscripten ... no
checking for emsdk directory ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7
finding asap-fork from xmake ..
checking for xmake::asap-fork ... asap-fork 2023.04.21
checking for cmake ... no
checking for cmake ... no
checking for cmake ... no
checkinfo: cannot runv(cmake.exe --version), No such file or directory
checking for cmake ... no
checking for cmake ... C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake
finding fmt from xmake ..
checking for xmake::fmt ... no
finding fmt from vcpkg ..
finding fmt from conan ..
checking for fmt ... no
finding md4c from xmake ..
checking for xmake::md4c ... no
finding md4c from vcpkg ..
finding md4c from conan ..
checking for md4c ... no
finding pugixml from xmake ..
checking for xmake::pugixml ... no
finding pugixml from vcpkg ..
finding pugixml from conan ..
checking for pugixml ... no
finding tl_expected from xmake ..
checking for xmake::tl_expected ... no
finding tl_expected from vcpkg ..
finding tl_expected from conan ..
checking for tl_expected ... no
finding robin-map from xmake ..
checking for xmake::robin-map ... no
finding robin-map from vcpkg ..
finding robin-map from conan ..
checking for robin-map ... no
finding ordered_map from xmake ..
checking for xmake::ordered_map ... no
finding ordered_map from vcpkg ..
finding ordered_map from conan ..
checking for ordered_map ... no
finding picosha2 from xmake ..
checking for xmake::picosha2 ... no
finding picosha2 from vcpkg ..
finding picosha2 from conan ..
checking for picosha2 ... no
finding tobiaslocker_base64 from xmake ..
checking for xmake::tobiaslocker_base64 ... no
finding tobiaslocker_base64 from vcpkg ..
finding tobiaslocker_base64 from conan ..
checking for tobiaslocker_base64 ... no
finding zlib from xmake ..
checking for xmake::zlib ... no
finding zlib from find_zlib ..
finding zlib from vcpkg ..
finding zlib from conan ..
finding z from system ..
checking for zlib ... no
finding gzip-hpp from xmake ..
checking for xmake::gzip-hpp ... no
finding gzip-hpp from vcpkg ..
finding gzip-hpp from conan ..
checking for gzip-hpp ... no
finding yyjson from xmake ..
checking for xmake::yyjson ... no
finding yyjson from vcpkg ..
finding yyjson from conan ..
checking for yyjson ... no
finding yaml-cpp from xmake ..
checking for xmake::yaml-cpp ... no
finding yaml-cpp from vcpkg ..
finding yaml-cpp from conan ..
checking for yaml-cpp ... no
finding cpp-dump from xmake ..
checking for xmake::cpp-dump ... no
finding cpp-dump from vcpkg ..
finding cpp-dump from conan ..
checking for cpp-dump ... no
finding argparse from xmake ..
checking for xmake::argparse ... no
finding argparse from vcpkg ..
finding argparse from conan ..
checking for argparse ... no
finding abseil from xmake ..
checking for xmake::abseil ... no
finding abseil from vcpkg ..
finding abseil from conan ..
checking for abseil ... no
finding re2 from xmake ..
checking for xmake::re2 ... no
finding re2 from vcpkg ..
finding re2 from conan ..
checking for re2 ... no
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> fmt 11.0.2 [toolchains:"emcc@emscripten", runtimes:"MT"]
  -> md4c 2024.02.25 [toolchains:"emcc@emscripten", runtimes:"MT"]
  -> pugixml v1.14 [toolchains:"emcc@emscripten", runtimes:"MT"]
  -> tl_expected v1.1.0
  -> robin-map v1.3.0
  -> ordered_map v1.1.0
  -> picosha2 2022.08.08
  -> tobiaslocker_base64 2024.02.26
  -> zlib v1.3.1 [runtimes:"MT", toolchains:"emcc@emscripten", from:gzip-hpp]
  -> gzip-hpp v0.1.0
  -> yyjson 0.10.0 [toolchains:"emcc@emscripten", runtimes:"MT"]
  -> yaml-cpp 0.8.0 [toolchains:"emcc@emscripten", runtimes:"MT"]
  -> cpp-dump v0.6.0
  -> argparse 3.1
  -> abseil 20240722.0 [runtimes:"MT", toolchains:"emcc@emscripten", from:re2]
  -> re2 2024.07.02 [toolchains:"emcc@emscripten", runtimes:"MT"]
please input: y (y/n/m)

checking for ping ... ok
pinging the host(github.com) ... 26 ms
C:\Users\admin\xmake\winenv\bin\7z x -y fmt-11.0.2.zip -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 1422604 bytes (1390 KiB)

Extracting archive: fmt-11.0.2.zip
--
Path = fmt-11.0.2.zip
Type = zip
Physical Size = 1422604

Everything is Ok

Folders: 30
Files: 175
Size:       5688430
Compressed: 1422604
checking for emcc.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat
checking for the c++ compiler (cxx) ... emcc.bat
checking for emcc.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat
checking for the c compiler (cc) ... emcc.bat
checkinfo: cannot runv(ninja.exe --version), No such file or directory
checking for ninja ... no
checking for ninja ... C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja
checkinfo: cannot runv(cmake.exe --version), No such file or directory
checking for cmake ... no
checking for cmake ... C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake
error: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:316]:
    [@programdir\modules\package\tools\cmake.lua:886]: in function '_get_envs_for_runtime_flags'
    [@programdir\modules\package\tools\cmake.lua:928]: in function '_get_configs'
    [@programdir\modules\package\tools\cmake.lua:1234]: in function 'install'
    [...\.xmake\repositories\xmake-repo\packages\f\fmt\xmake.lua:70]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:392]:

  => install fmt 11.0.2 .. failed
error: @programdir\core\main.lua:329: @programdir\modules\async\runjobs.lua:325: ...\modules\private\action\require\impl\actions\install.lua:494: install failed!
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...\modules\private\action\require\impl\actions\install.lua:494]: in function 'catch'  
    [@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
    [...\modules\private\action\require\impl\actions\install.lua:361]:
    [...modules\private\action\require\impl\install_packages.lua:496]: in function 'jobfunc'
    [@programdir\modules\async\runjobs.lua:241]:

stack traceback:
        [C]: in function 'error'
        @programdir\core\base\os.lua:973: in function 'base/os.raiselevel'
        (...tail calls...)
        @programdir\core\main.lua:329: in upvalue 'cotask'
        @programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>

@waruqi
Copy link
Member

waruqi commented Aug 29, 2024

I will look at it tomorrow.

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

try it again.

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

It still has some errors on ci, I am fixing them.

@Chi-EEE
Copy link
Contributor Author

Chi-EEE commented Aug 30, 2024

I tried the patch and everything compiled, thanks!
There were some errors but they have not affected the compilation: (The rest of the packages did not have errors, only zlib)

C:\Users\admin\xmake\winenv\bin\7z x -y v1.3.1.tar.gz -oC:\Users\admin\AppData\Local\Temp\.xmake\240830\_14D8A79C474C4340883DFD5486821B70.tar

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 1572744 bytes (1536 KiB)

Extracting archive: v1.3.1.tar.gz
--
Path = v1.3.1.tar.gz
Type = gzip
Headers Size = 10

Everything is Ok

Size:       4618240
Compressed: 1572744
C:\Users\admin\xmake\winenv\bin\7z x -y C:\Users\admin\AppData\Local\Temp\.xmake\240830\_14D8A79C474C4340883DFD5486821B70.tar\v1.3.1.tar -osource.tmp

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive for archives:
1 file, 4618240 bytes (4510 KiB)

Extracting archive: C:\Users\admin\AppData\Local\Temp\.xmake\240830\_14D8A79C474C4340883DFD5486821B70.tar\v1.3.1.tar
--
Path = C:\Users\admin\AppData\Local\Temp\.xmake\240830\_14D8A79C474C4340883DFD5486821B70.tar\v1.3.1.tar
Type = tar
Physical Size = 4618240
Headers Size = 154624
Code Page = UTF-8

Everything is Ok

Folders: 39
Files: 258
Size:       4398673
Compressed: 4618240
C:\Users\admin\xmake\xmake.exe repo --diagnosis --verbose --add local-repo C:\Users\admin\Documents\GitHub\platform.lua\xmake\repo
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Users\admin\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
add local repository(local-repo): C:\Users\admin\Documents\GitHub\platform.lua\xmake\repo ok!
C:\Users\admin\xmake\xmake.exe f --diagnosis --verbose -y -c --plat=wasm --arch=wasm32 --mode=release --kind=static --bin=C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten --sdk=C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7 --runtimes=MT --cxflags=-fPIC --buildir=build_9635e340 --cxflags=-fPIC
checking for emsdk directory ... no
checkinfo: cannot runv(emcc.bat --version), No such file or directory
checking for emcc.bat ... no
checkinfo: cannot runv(emcc.exe --version), No such file or directory
checking for emcc ... no
> checking for c includes(stdint.h)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:60]: in function 'compargv'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:44]: in function 'compcmd'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:240]:

checking for HAVE_STDINT_H ... no
> checking for c includes(sys/types.h)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:60]: in function 'compargv'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:44]: in function 'compcmd'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:240]:

checking for HAVE_SYS_TYPES_H ... no
> checking for c includes(stddef.h)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:60]: in function 'compargv'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:44]: in function 'compcmd'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:240]:

checking for HAVE_STDDEF_H ... no
> checking for c includes(unistd.h)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37: cannot get program for cc
stack traceback:
    [C]: in function 'error'
    [@programdir\core\base\os.lua:973]:
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:37]: in function 'load'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:60]: in function 'compargv'
    [...amdir\core\sandbox\modules\import\core\tool\compiler.lua:44]: in function 'compcmd'
    [@programdir\modules\lib\detect\check_cxsnippets.lua:240]:

checking for Z_HAVE_UNISTD_H ... no
checkinfo: cannot runv(unzip.exe -v), No such file or directory
checking for unzip ... no
checking for 7z ... C:\Users\admin\xmake\winenv\bin\7z
checking for git ... ok
checkinfo: cannot runv(gzip.exe --version), No such file or directory
checking for gzip ... no
checking for ping ... ok
pinging the host(github.com) ... 23 ms
pinging the host(gitlab.com) ... 28 ms
pinging the host(gitee.com) ... 256 ms
git rev-parse HEAD
checking for cl.exe ... C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX64\x64\cl.exe
checking for Microsoft Visual Studio (x64) version ... 2022
checking for Microsoft C/C++ Compiler (x64) version ... 19.40.33811
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(zig.exe version), No such file or directory
checking for zig ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checkinfo: cannot runv(nim.exe --version), No such file or directory
checking for nim ... no
checking for python ... no
checking for python3 ... no
checking for python ... no
checking for python2 ... no
checking for python ... no
checking for emscripten ... no
checking for emsdk directory ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7
configure
{
    mode = release
    cxflags = -fPIC
    buildir = build_9635e340
    plat = wasm
    ccache = true
    arch = wasm32
    runtimes = MT
    ndk_stdcxx = true
    bin = C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten
    kind = static
    emsdk = C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7
    clean = true
    sdk = C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7
    host = windows
}
C:\Users\admin\xmake\xmake.exe build --diagnosis --verbose
checking for emcc.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat ... ok
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for the c compiler (cc) ... emcc.bat
checking for flags (-fPIC) ... ok
> emcc.bat "-fPIC"
checking for flags (-O3) ... ok
> emcc.bat "-O3"
checking for flags (-DNDEBUG) ... ok
> emcc.bat "-DNDEBUG"
checking for emcc.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat
checking for the c++ compiler (cxx) ... emcc.bat
[ 88%]: cache compiling.release adler32.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\adler32.c.o adler32.c
[ 88%]: cache compiling.release compress.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\compress.c.o compress.c
[ 88%]: cache compiling.release zutil.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\zutil.c.o zutil.c
[ 88%]: cache compiling.release crc32.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\crc32.c.o crc32.c
[ 88%]: cache compiling.release gzlib.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\gzlib.c.o gzlib.c
[ 88%]: cache compiling.release infback.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\infback.c.o infback.c
[ 88%]: cache compiling.release gzclose.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\gzclose.c.o gzclose.c
[ 88%]: cache compiling.release inflate.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\inflate.c.o inflate.c
[ 88%]: cache compiling.release deflate.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\deflate.c.o deflate.c
[ 88%]: cache compiling.release inftrees.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\inftrees.c.o inftrees.c
[ 88%]: cache compiling.release inffast.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\inffast.c.o inffast.c
[ 88%]: cache compiling.release gzread.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\gzread.c.o gzread.c
[ 88%]: cache compiling.release uncompr.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\uncompr.c.o uncompr.c
[ 88%]: cache compiling.release gzwrite.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\gzwrite.c.o gzwrite.c
[ 88%]: cache compiling.release trees.c
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -fPIC -fvisibility=hidden -O3 -DZEXPORT=__attribute__((visibility(\"default\"))) -D_LARGEFILE64_SOURCE=1 -DNDEBUG -o build_9635e340\.objs\zlib\wasm\wasm32\release\trees.c.o trees.c
checking for flags (-MMD -MF) ... ok
> emcc.bat "-MMD" "-MF" "C:\Users\admin\AppData\Local\Temp\.xmake\240830\_AE4F0FAE316F4C2087D0CD169453DC30"
checking for flags (-fdiagnostics-color=always) ... ok
> emcc.bat "-fdiagnostics-color=always"
checking for emar.bat ... C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emar.bat
checking for the static library archiver (ar) ... emar.bat
[ 94%]: archiving.release libz.a
C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emar.bat -cr build_9635e340\wasm\wasm32\release\libz.a build_9635e340\.objs\zlib\wasm\wasm32\release\adler32.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\compress.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\crc32.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\deflate.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\gzclose.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\gzlib.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\gzread.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\gzwrite.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\inflate.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\infback.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\inftrees.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\inffast.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\trees.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\uncompr.c.o build_9635e340\.objs\zlib\wasm\wasm32\release\zutil.c.o

build cache stats:
cache directory: C:\Users\admin\AppData\Local\.xmake\cache\packages\2408\z\zlib\v1.3.1\source\build_9635e340\.build_cache
cache hit rate: 0%
cache hit: 0
cache hit total time: 0.000s
cache miss: 15
cache miss total time: 0.032s
new cached files: 15
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0
compile total time: 5.547s

[100%]: build ok, spent 3.0s
C:\Users\admin\xmake\xmake.exe install -y --nopkgs -o C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82 --diagnosis --verbose
installing zlib ..
installing zlib to C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82 ..
> copy build_9635e340\wasm\wasm32\release\libz.a to C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\lib
> copy zlib.h to C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\include\zlib.h
> copy zconf.h to C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\include\zconf.h
install ok!
finding zlib from xmake ..
checking for xmake::zlib ... zlib v1.3.1
{
  license = "zlib",
  sysincludedirs = {
    "C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\include"
  },
  linkdirs = {
    "C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\lib"
  },
  version = "v1.3.1",
  libfiles = {
    "C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\lib\libz.a"
  },
  links = {
    "z"
  },
  static = true
}

patching C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\lib\pkgconfig\zlib.pc ..
> C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\emcc.bat -c -isystem C:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\include -o C:\Users\admin\AppData\Local\Temp\.xmake\240830\_51551766128D4F608B3767A2C2D62880.o C:\Users\admin\AppData\Local\Temp\.xmake\240830\_DA0C2BE4F695434A847B3B5877F6A479.c
> C:\Users\admin\AppData\Local\.xmake\packages\e\emscripten\3.1.55\e632956fdb43439b94196f0dfdac70b7\upstream\emscripten\em++.bat -o C:\Users\admin\AppData\Local\Temp\.xmake\240830\_51551766128D4F608B3767A2C2D62880.b C:\Users\admin\AppData\Local\Temp\.xmake\240830\_51551766128D4F608B3767A2C2D62880.o -LC:\Users\admin\AppData\Local\.xmake\packages\z\zlib\v1.3.1\9635e340f3354bf0bb35090561e5ce82\lib -lz
> checking for c includes(zlib.h)
> checking for c funcs(inflate)
> checking for c links(z)
> checking for c snippet(has_cfuncs)
  => install zlib v1.3.1 .. ok

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

Try it again, I fixed more errors about runtimes on linux.

@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

There were some errors but they have not affected the compilation: (The rest of the packages did not have errors, only zlib)

It has nothing to do with the current patch, it is a problem with the port xmake.lua of the zlib package.

@Chi-EEE
Copy link
Contributor Author

Chi-EEE commented Aug 30, 2024

Tried it again and every package compiles & was able to compile into wasm executable & default windows compile still works

waruqi added a commit that referenced this issue Aug 30, 2024
@waruqi
Copy link
Member

waruqi commented Aug 30, 2024

I have merged into dev.

@waruqi waruqi closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants