Skip to content

Build issue with FFI on FreeBSD 11-CURRENT #132

@tony

Description

@tony
❯ freebsd-version -ku; uname -apKU
11.0-ALPHA3
11.0-ALPHA2
FreeBSD x230 11.0-ALPHA3 FreeBSD 11.0-ALPHA3 #9: Sat Jun 11 20:41:49 CDT 2016     root@x230:/usr/obj/usr/src/sys/GENERIC-NODEBUG  amd64 amd64 1100116 1100116

-- Looking for inflateCopy
-- Looking for inflateCopy - found
-- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES
-- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES - Failed
-- 
-- The following extensions will NOT be built:
-- 
--     cPickle (not set: IS_PY2)
--     cStringIO (not set: IS_PY2)
--     future_builtins (not set: IS_PY2)
--     _hotshot (not set: IS_PY2)
--     operator (not set: IS_PY2)
--     strop (not set: IS_PY2)
--     nis (not set: HAVE_LIBNSL)
--     spwd (not set: HAVE_GETSPNAM HAVE_GETSPENT)
--     _scproxy (not set: APPLE HAVE_LIBSYSTEMCONFIGURATION)
--     linuxaudiodev (not set: IS_PY2)
--     _msi (not set: WIN32)
--     msvcrt (not set: MSVC)
--     nt (not set: WIN32)
--     _subprocess (not set: WIN32 IS_PY2)
--     winreg (not set: WIN32)
--     overlapped (not set: WIN32)
--     _winapi (not set: WIN32)
--     _bsddb (not set: DB_INCLUDE_PATH DB_LIBRARIES)
--     _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
--     _curses_panel (not set: CURSES_LIBRARIES PANEL_LIBRARIES)
--     _curses (not set: CURSES_LIBRARIES)
--     dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     _hashlib (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H)
--     _sqlite3 (not set: SQLITE3_INCLUDE_PATH SQLITE3_LIBRARY)
--     _ssl (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH)
-- 
-- Configuring done
CMake Error at /usr/home/x/study/c++/kakoune/build/superbuild/Python-build/CMakeBuild/extensions/extension_ctypes-src/CMakeLists.txt:1 (add_library):
  Cannot find source file:

    /usr/home/x/study/c++/kakoune/build/Python-3.5.1/Modules/_ctypes/libffi/src/amd64/ffi.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: extension_ctypes
-- Generating done
-- Build files have been written to: /usr/home/x/study/c++/kakoune/build/superbuild/Python-build
ninja: build stopped: subcommand failed.



-- Checking for append_history in -lreadline
-- Checking for append_history in -lreadline - no
-- Performing Test HAVE_BROKEN_NICE
-- Performing Test HAVE_BROKEN_NICE - Success
-- Performing Test HAVE_BROKEN_POLL
-- Performing Test HAVE_BROKEN_POLL - Failed
-- Checking for working tzset()
-- Checking for working tzset() - yes
-- Checking for broken unsetenv
-- Checking for broken unsetenv - no
-- Checking aligned memory access is required
-- Checking aligned memory access is required - no
-- Checking for broken mbstowcs
-- Checking for broken mbstowcs - no
-- Checking whether Clang supports computed gotos
-- Checking whether Clang supports computed gotos - yes
-- Performing Test have_O2
-- Performing Test have_O2 - Success
-- Checking for glibc _FORTIFY_SOURCE/memmove bug
-- Checking for glibc _FORTIFY_SOURCE/memmove bug - no
-- Checking for stdatomic.h
-- Checking for stdatomic.h - no
-- Checking for GCC >= 4.7 __atomic builtins
-- Checking for GCC >= 4.7 __atomic builtins - yes
-- Checking for %lld and %llu printf() format support
-- Checking for %lld and %llu printf() format support - yes
-- Checking for %zd printf() format support()
-- Checking for %zd printf() format support() - yes
-- Looking for inflateCopy
-- Looking for inflateCopy - found
-- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES
-- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES - Failed
-- 
-- The following extensions will NOT be built:
-- 
--     cPickle (not set: IS_PY2)
--     cStringIO (not set: IS_PY2)
--     future_builtins (not set: IS_PY2)
--     _hotshot (not set: IS_PY2)
--     operator (not set: IS_PY2)
--     strop (not set: IS_PY2)
--     nis (not set: HAVE_LIBNSL)
--     spwd (not set: HAVE_GETSPNAM HAVE_GETSPENT)
--     _scproxy (not set: APPLE HAVE_LIBSYSTEMCONFIGURATION)
--     linuxaudiodev (not set: IS_PY2)
--     _msi (not set: WIN32)
--     msvcrt (not set: MSVC)
--     nt (not set: WIN32)
--     _subprocess (not set: WIN32 IS_PY2)
--     winreg (not set: WIN32)
--     overlapped (not set: WIN32)
--     _winapi (not set: WIN32)
--     _bsddb (not set: DB_INCLUDE_PATH DB_LIBRARIES)
--     _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
--     _curses_panel (not set: CURSES_LIBRARIES PANEL_LIBRARIES)
--     _curses (not set: CURSES_LIBRARIES)
--     dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY)
--     _hashlib (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H)
--     _sqlite3 (not set: SQLITE3_INCLUDE_PATH SQLITE3_LIBRARY)
--     _ssl (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES)
--     _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH)
-- 
-- Configuring done
CMake Error at /usr/home/x/study/c++/kakoune/build/superbuild/Python-build/CMakeBuild/extensions/extension_ctypes-src/CMakeLists.txt:1 (add_library):
  Cannot find source file:

    /usr/home/x/study/c++/kakoune/build/Python-3.5.1/Modules/_ctypes/libffi/src/amd64/ffi.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: extension_ctypes
-- Generating done
-- Build files have been written to: /usr/home/x/study/c++/kakoune/build/superbuild/Python-build
ninja: build stopped: subcommand failed.

cmake --system-information output: cmake-sysinfo.txt

Possibly related discussions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions