Skip to content

Project fails to build on x86 #2

@andynameistaken

Description

@andynameistaken

OS: 15.2

Log:

❯ make
cd libs/Onigmo && ./autogen.sh && ./configure
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/local/Cellar/autoconf/2.72/bin/autoconf --force
configure.ac:7: warning: The macro 'AC_CONFIG_HEADER' is obsolete.
configure.ac:7: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:7: the top level
configure.ac:43: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:43: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:43: the top level
configure.ac:56: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.ac:56: the top level
configure.ac:66: warning: The macro 'AC_HEADER_TIME' is obsolete.
configure.ac:66: You should run autoupdate.
./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from...
configure.ac:66: the top level
configure.ac:73: warning: AC_OUTPUT should be used without arguments.
configure.ac:73: You should run autoupdate.
autoreconf: running: /usr/local/Cellar/autoconf/2.72/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:42: installing './compile'
configure.ac:6: installing './missing'
Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking build system type... x86_64-apple-darwin24.2.0
checking host system type... x86_64-apple-darwin24.2.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/local/bin/ggrep
checking for egrep... /usr/local/bin/ggrep -E
checking for fgrep... /usr/local/bin/ggrep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking how to convert x86_64-apple-darwin24.2.0 file names to x86_64-apple-darwin24.2.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin24.2.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... ld: warning: -single_module is obsolete
no
checking for -no_fixup_chains linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin24.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make sets $(MAKE)... (cached) yes
checking for python3... python3
checking for egrep... (cached) /usr/local/bin/ggrep -E
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/times.h... yes
checking for stdint.h... (cached) yes
checking size of int... 4
checking size of short... 2
checking size of long... 8
checking size of void*... 8
checking size of long long... 8
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for working memcmp... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating onigmo-config
config.status: creating sample/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
mkdir -p build
cd build && cmake ../cmake && make
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/andy/Devel/other/vim-textmate/build
[ 47%] Built target onigmolib
[ 50%] Linking CXX shared library textmate.dylib
Undefined symbols for architecture x86_64:
  "_lua_createtable", referenced from:
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_themes(lua_State*) in module.cpp.o
      highlight_themes(lua_State*) in module.cpp.o
      highlight_languages(lua_State*) in module.cpp.o
      highlight_languages(lua_State*) in module.cpp.o
      highlight_language_info(lua_State*) in module.cpp.o
      ...
  "_lua_pushcclosure", referenced from:
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      ...
  "_lua_pushnumber", referenced from:
      highlight_is_line_dirty(lua_State*) in module.cpp.o
      highlight_is_line_dirty(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      ...
  "_lua_pushstring", referenced from:
      highlight_line(lua_State*) in module.cpp.o
      highlight_themes(lua_State*) in module.cpp.o
      highlight_themes(lua_State*) in module.cpp.o
      highlight_themes(lua_State*) in module.cpp.o
      highlight_languages(lua_State*) in module.cpp.o
      highlight_languages(lua_State*) in module.cpp.o
      highlight_languages(lua_State*) in module.cpp.o
      ...
  "_lua_rawseti", referenced from:
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      ...
  "_lua_setfield", referenced from:
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      _luaopen_textmate in module.cpp.o
      ...
  "_lua_tolstring", referenced from:
      highlight_line(lua_State*) in module.cpp.o
      highlight_set_extensions_dir(lua_State*) in module.cpp.o
      highlight_load_theme(lua_State*) in module.cpp.o
      highlight_load_language(lua_State*) in module.cpp.o
  "_lua_tonumberx", referenced from:
      highlight_is_line_dirty(lua_State*) in module.cpp.o
      highlight_is_line_dirty(lua_State*) in module.cpp.o
      highlight_make_doc_dirty(lua_State*) in module.cpp.o
      highlight_make_line_dirty(lua_State*) in module.cpp.o
      highlight_make_line_dirty(lua_State*) in module.cpp.o
      highlight_remove_doc(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      highlight_line(lua_State*) in module.cpp.o
      ...
ld: symbol(s) not found for architecture x86_64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [textmate.dylib] Error 1
make[2]: *** [CMakeFiles/textmate.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build] Error 2

PS.
Not technical note, but: I appreciate work you put to provide vim support for this editor. I thought about filing issues and considered adding small note with genuine thanks to respect people/person who are/is behind it. Please let me know what do you think about it [I know it doesn't help with an issue, but maybe it feels nice (if it is not stated in filling guide otherwise)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions