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

No output from executable when building with MSYS2 #518

Open
snunez1 opened this issue Sep 12, 2023 · 0 comments
Open

No output from executable when building with MSYS2 #518

snunez1 opened this issue Sep 12, 2023 · 0 comments

Comments

@snunez1
Copy link

snunez1 commented Sep 12, 2023

No output at all from the executable:

nunez@Jupiter MINGW64 /usr/local/src/ggml/build
$ ./bin/gpt-j.exe -h

This happens when trying to run both gpt-2 and gpt-j executables. Using cmake -G "MSYS Makefiles" also produces bad executables.

Build trace below.

Edit: using VS 2019 produces a valid executable, so the problem is somewhere in the MSYS2 build.

Any ideas?

$ cmake -G"Unix Makefiles" ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.42.0")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- CMAKE_SYSTEM_PROCESSOR: AMD64
-- x86 detected
-- x86 detected
-- Configuring done (13.1s)
-- Generating done (4.2s)
-- Build files have been written to: C:/msys64/usr/local/src/ggml/build

nunez@Jupiter MINGW64 /usr/local/src/ggml/build
$ make -j4 gpt-2 gpt-j
[ [2 22%2]% ] BuBiulidlidnign gC  Co bojbejcetc ts rscr/cC/MCaMkaekFeiFlielse/sg/ggmgl[m. ld3.i3dr%i/]rg /ggmBglum-ilal.ldcli.ooncbg.j c
C.XoXb jo
bject examples/CMakeFiles/common.dir/common.cpp.obj
[ 44%] Linking CXX static library libcommon.a
[ 44%] Built target common
[ 55%] Linking C static library libggml.a
[ 55%] Built target ggml
[ 66%] Building CXX object examples/CMakeFiles/common-ggml.dir/common-ggml.cpp.obj
[ 77%] Linking CXX static library libcommon-ggml.a
[ 77%] Built target common-ggml
[ 88%] Building CXX object examples/gpt-2/CMakeFiles/gpt-2.dir/main.cpp.obj
[100%] Linking CXX executable ../../bin/gpt-2.exe
[100%] Built target gpt-2
[ 44%][  5B5u%i]l t Butialrtg etta rcgoemtm ogng
ml
[ 77%] Built target common-ggml
[ 88%] Building CXX object examples/gpt-j/CMakeFiles/gpt-j.dir/main.cpp.obj
[100%] Linking CXX executable ../../bin/gpt-j.exe
[100%] Built target gpt-j
@snunez1 snunez1 changed the title No output from executable No output from executable when building with MSYS2 Sep 12, 2023
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

No branches or pull requests

1 participant