-
Notifications
You must be signed in to change notification settings - Fork 67
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
git clone fails on Windows because "aux" is a reserved name #457
Comments
#261 fixes this, but it's been rotting for a while... Apparently MSYS2 is now the official way of getting GTK+ on Windows, and there are Visual Studio build scripts, so I might have to try that again sometime... |
@kirbyfan64 cloning in msys2 Shell works out. good to know! I've tried the following to build on Windows:
This seems to work out until the linking step: $ make
cc -o howl main.o process_helpers.o deps/lpeg-0.10.2/lpeg.o deps/LuaJIT-2.1.0-beta3/src/libluajit.a -lm -ldl -L/mingw64/lib -LC:/building/msys64/mingw64/lib/../lib -L/mingw64/lib -lgtk-3 -lgdk-3 -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lwinmm -ldwmapi -lsetupapi -lcfgmgr32 -lz -lepoxy -lopengl32 -lgdi32 -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lusp10 -lgdi32 -lpango-1.0 -lm -lfribidi -latk-1.0 -lcairo-gobject -lcairo -lz -lpixman-1 -lfontconfig -liconv -lexpat -lfreetype -lbz2 -lharfbuzz -lm -lgraphite2 -lpng16 -lz -lgdk_pixbuf-2.0 -lm -lpng16 -lz -lgmodule-2.0 -pthread -lgio-2.0 -lz -lgmodule-2.0 -pthread -lgobject-2.0 -lffi -lglib-2.0 -lintl -pthread -lws2_32 -lole32 -lwinmm -lshlwapi -lpcre -lintl -lpcre -shared
C:/Users/okr/scoop/apps/msys2/current/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: main.o:main.c:(.rdata$.refptr._impure_ptr[.refptr._impure_ptr]+0x0): undefined reference to `_impure_ptr'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:55: howl] Fehler 1 Any ideas what this even means? |
@bugabinga Yeah, random, weird issues like that are why I stopped for now... That being said, this issue is because you need to run all the build commands from a MinGW 32-bit shell, not an MSYS2 shell. MSYS2 installs both, but the former is more like MinGW (a lightweight compatibility layer), whereas the latter is more like Cygwin (a much heavier POSIX compatibility layer). Delete your entire build directory (from experience, if you don't, you'll spend ages debugging obscure errors) and rebuild from the MinGW 32-bit shell. You also shouldn't have to pass any parameters to LuaJIT or modify the PATH now. |
@kirbyfan64 thanks for explaining this is frustratingly complicated. with your instructions, the luajit build does not need parameters indeed. still, the same linker error as mentioned above remains. |
It seems aux is a reserved file name on Windows, which leads to errors on
git clone
when checking outlib/howl/aux.moon
(extension seems to be irrelevant).References:
git-for-windows/git#883
git-for-windows/git#843 (comment)
git-for-windows/git#700 (comment)
The text was updated successfully, but these errors were encountered: