Repository navigation
Open
Description
When building on Cygwin (MobaXterm) with embeded Lua integrated, ar returns an error with unknown option "u" (deprecated anyway):
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX -c -o lcorolib.o lcorolib.c
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX -c -o ldblib.o ldblib.c
mv -f .deps/dit-Display.Tpo .deps/dit-Display.Po
mv -f .deps/dit-md5.Tpo .deps/dit-md5.Po
rm -f libeditorconfig.a
mv -f .deps/dit-Text.Tpo .deps/dit-Text.Po
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX -c -o liolib.o liolib.c
ar cru libeditorconfig.a editorconfig/src/libeditorconfig_a-ec_fnmatch.o editorconfig/src/libeditorconfig_a-editorconfig.o editorconfig/src/libeditorconfig_a-editorconfig_handle.o editorconfig/src/libeditorconfig_a-ini.o editorconfig/src/libeditorconfig_a-misc.o
gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX -c -o lmathlib.o lmathlib.c
ar: unknown option -- u
BusyBox v1.22.1 (2015-11-10 11:07:12 ) multi-call binary.
Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES
Extract or list FILES from an ar archive
-o Preserve original dates
-p Extract to stdout
-t List
-x Extract
-v Verbose
make[1]: *** [Makefile:503: libeditorconfig.a] Error 1
If I remove manually the "u" option in "Makefile" and "lua-5.3.0/src/Makefile", the compilation complete without any more errors, but running dit.exe fails with a segmentation fault. Using gdb I've got the following details:
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./dit.exe...done.
(gdb) run
Starting program: /home/mobaxterm/dit-master/dit.exe
[New Thread 19268.0x4d18]
[New Thread 19268.0x35f0]
[New Thread 19268.0x1cec]
[New Thread 19268.0x16b4]
Thread 1 "dit" received signal SIGSEGV, Segmentation fault.
0x6f7e4dfb in has_colors_sp () from /usr/bin/cygncursesw-10.dll
Metadata
Metadata
Assignees
Labels
No labels
Activity
lua: minor build fix for cygwin
hishamhm commentedon Jun 7, 2022
Thanks for the report!
I pushed a commit removing
ufrom the Lua makefile.That's weird! This sounds like a build issue. Perhaps some incompatibility between your curses headers and your library?
fatalerrors80 commentedon Jul 29, 2022
Hi, sorry for late answer!
After I did a git pull, the build problem disapeared from the lua lib linking. But it remains for the libconfigeditor.a linking.
About the version of ncurse, I took the version shipped by cygwin, supposingly identical for binaries and headers. Compiling with ./configure --disable-ncurses don't change a thing.
fatalerrors80 commentedon Jul 29, 2022
Here is version returned by cygcheck of ncurses libraries and header with integrity check: