Skip to content

rugged doesn't compile on ruby-head (4.1.0) #1005

@ytti

Description

@ytti

https://github.com/ytti/oxidized/actions/runs/27342863975/job/80783845350

current directory:
/home/runner/work/oxidized/oxidized/vendor/bundle/ruby/4.1.0+3/gems/rugged-1.9.0/ext/rugged
/home/runner/.rubies/ruby-head/bin/ruby extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
CMake Deprecation Warning at CMakeLists.txt:7 (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.


-- The C compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC - Failed
-- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC
-- Performing Test HAVE_STRUCT_STAT_MTIME_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_NSEC
-- Performing Test HAVE_STRUCT_STAT_NSEC - Success
-- Looking for futimens
-- Looking for futimens - found
-- Performing Test IS_WALL_SUPPORTED
-- Performing Test IS_WALL_SUPPORTED - Success
-- Performing Test IS_WEXTRA_SUPPORTED
-- Performing Test IS_WEXTRA_SUPPORTED - Success
-- Performing Test IS_WDOCUMENTATION_SUPPORTED
-- Performing Test IS_WDOCUMENTATION_SUPPORTED - Failed
-- Performing Test IS_WNO_DOCUMENTATION_DEPRECATED_SYNC_SUPPORTED
-- Performing Test IS_WNO_DOCUMENTATION_DEPRECATED_SYNC_SUPPORTED - Success
-- Performing Test IS_WNO_MISSING_FIELD_INITIALIZERS_SUPPORTED
-- Performing Test IS_WNO_MISSING_FIELD_INITIALIZERS_SUPPORTED - Success
-- Performing Test IS_WMISSING_DECLARATIONS_SUPPORTED
-- Performing Test IS_WMISSING_DECLARATIONS_SUPPORTED - Success
-- Performing Test IS_WSTRICT_ALIASING_SUPPORTED
-- Performing Test IS_WSTRICT_ALIASING_SUPPORTED - Success
-- Performing Test IS_WSTRICT_PROTOTYPES_SUPPORTED
-- Performing Test IS_WSTRICT_PROTOTYPES_SUPPORTED - Success
-- Performing Test IS_WDECLARATION_AFTER_STATEMENT_SUPPORTED
-- Performing Test IS_WDECLARATION_AFTER_STATEMENT_SUPPORTED - Success
-- Performing Test IS_WSHIFT_COUNT_OVERFLOW_SUPPORTED
-- Performing Test IS_WSHIFT_COUNT_OVERFLOW_SUPPORTED - Success
-- Performing Test IS_WUNUSED_CONST_VARIABLE_SUPPORTED
-- Performing Test IS_WUNUSED_CONST_VARIABLE_SUPPORTED - Success
-- Performing Test IS_WUNUSED_FUNCTION_SUPPORTED
-- Performing Test IS_WUNUSED_FUNCTION_SUPPORTED - Success
-- Performing Test IS_WINT_CONVERSION_SUPPORTED
-- Performing Test IS_WINT_CONVERSION_SUPPORTED - Success
-- Performing Test IS_WC11_EXTENSIONS_SUPPORTED
-- Performing Test IS_WC11_EXTENSIONS_SUPPORTED - Failed
-- Performing Test IS_WC99_C11_COMPAT_SUPPORTED
-- Performing Test IS_WC99_C11_COMPAT_SUPPORTED - Success
-- Performing Test IS_WFORMAT_SUPPORTED
-- Performing Test IS_WFORMAT_SUPPORTED - Success
-- Performing Test IS_WFORMAT_SECURITY_SUPPORTED
-- Performing Test IS_WFORMAT_SECURITY_SUPPORTED - Success
-- Checking for module 'heimdal-gssapi'
--   Package 'heimdal-gssapi', required by 'virtual:world', not found
-- Could NOT find GSSAPI (missing: GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIR) 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version
"3.0.13")
-- Could NOT find PCRE (missing: PCRE_LIBRARY PCRE_INCLUDE_DIR) 
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for windows.h
-- Looking for windows.h - not found
-- Looking for bcopy
-- Looking for bcopy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoq
-- Looking for strtoq - found
-- Looking for _strtoi64
-- Looking for _strtoi64 - not found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long long
-- Check size of long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Performing Test IS_WNO_UNUSED_FUNCTION_SUPPORTED
-- Performing Test IS_WNO_UNUSED_FUNCTION_SUPPORTED - Success
-- Performing Test IS_WNO_IMPLICIT_FALLTHROUGH_SUPPORTED
-- Performing Test IS_WNO_IMPLICIT_FALLTHROUGH_SUPPORTED - Success
-- Performing Test IS_WNO_UNUSED_BUT_SET_VARIABLE_SUPPORTED
-- Performing Test IS_WNO_UNUSED_BUT_SET_VARIABLE_SUPPORTED - Success
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Performing Test IS_WNO_UNUSED_PARAMETER_SUPPORTED
-- Performing Test IS_WNO_UNUSED_PARAMETER_SUPPORTED - Success
-- Checking prototype qsort_r for GIT_QSORT_BSD
-- Checking prototype qsort_r for GIT_QSORT_BSD - False
-- Checking prototype qsort_r for GIT_QSORT_GNU
-- Checking prototype qsort_r for GIT_QSORT_GNU - True
-- Checking prototype qsort_s for GIT_QSORT_C11
-- Checking prototype qsort_s for GIT_QSORT_C11 - False
-- Checking prototype qsort_s for GIT_QSORT_MSC
-- Checking prototype qsort_s for GIT_QSORT_MSC - False
-- Looking for getentropy
-- Looking for getentropy - found
-- Looking for getloadavg
-- Looking for getloadavg - found
-- Looking for poll
-- Looking for poll - found
-- Looking for select
-- Looking for select - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Enabled features:
 * nanoseconds, support nanosecond precision file mtimes and ctimes
 * HTTPS, using OpenSSL
 * SHA1, using CollisionDetection
 * SHA256, using OpenSSL
 * http-parser, using bundled parser
 * regex, using bundled PCRE
 * xdiff, xdiff support (bundled)
 * zlib, using system zlib
 * futimens, futimens support
 * threadsafe, threadsafe support
 * ntlmclient, NTLM authentication support for Unix

-- Disabled features:
 * SHA256 API, experimental SHA256 APIs
 * debugpool, debug pool allocator
 * debugalloc, debug strict allocators
 * debugopen, path validation in open
 * GSSAPI, GSSAPI support for SPNEGO authentication
 * SSH, SSH transport support
 * iconv, iconv encoding conversion support

-- Configuring done (4.6s)
-- Generating done (0.1s)
-- Build files have been written to:
/home/runner/work/oxidized/oxidized/vendor/bundle/ruby/4.1.0+3/gems/rugged-1.9.0/vendor/libgit2/build
 -- /usr/bin/gmake
checking for -lgit2... yes
checking for git2.h... yes
creating Makefile

current directory:
/home/runner/work/oxidized/oxidized/vendor/bundle/ruby/4.1.0+3/gems/rugged-1.9.0/ext/rugged
make -j4 DESTDIR\= sitearchdir\=./.gem.20260611-2309-3zlpad
sitelibdir\=./.gem.20260611-2309-3zlpad clean

current directory:
/home/runner/work/oxidized/oxidized/vendor/bundle/ruby/4.1.0+3/gems/rugged-1.9.0/ext/rugged
make -j4 DESTDIR\= sitearchdir\=./.gem.20260611-2309-3zlpad
sitelibdir\=./.gem.20260611-2309-3zlpad
compiling rugged.c
compiling rugged_allocator.c
compiling rugged_backend.c
compiling rugged_blame.c
rugged_blame.c: In function ‘rb_git_blame_new’:
rugged_blame.c:138:9: warning: implicit declaration of function
‘Data_Get_Struct’; did you mean ‘TypedData_Get_Struct’?
[-Wimplicit-function-declaration]
  138 |         Data_Get_Struct(rb_repo, git_repository, repo);
      |         ^~~~~~~~~~~~~~~
      |         TypedData_Get_Struct
rugged_blame.c:138:34: error: expected expression before ‘git_repository’
  138 |         Data_Get_Struct(rb_repo, git_repository, repo);
      |                                  ^~~~~~~~~~~~~~
rugged_blame.c:148:16: warning: implicit declaration of function
‘Data_Wrap_Struct’; did you mean ‘TypedData_Wrap_Struct’?
[-Wimplicit-function-declaration]
  148 |         return Data_Wrap_Struct(klass, NULL, &git_blame_free, blame);
      |                ^~~~~~~~~~~~~~~~
      |                TypedData_Wrap_Struct
rugged_blame.c: In function ‘rb_git_blame_for_line’:
rugged_blame.c:163:31: error: expected expression before ‘git_blame’
  163 |         Data_Get_Struct(self, git_blame, blame);
      |                               ^~~~~~~~~
rugged_blame.c: In function ‘rb_git_blame_count’:
rugged_blame.c:187:31: error: expected expression before ‘git_blame’
  187 |         Data_Get_Struct(self, git_blame, blame);
      |                               ^~~~~~~~~
rugged_blame.c: In function ‘rb_git_blame_get_by_index’:
rugged_blame.c:213:31: error: expected expression before ‘git_blame’
  213 |         Data_Get_Struct(self, git_blame, blame);
      |                               ^~~~~~~~~
rugged_blame.c: In function ‘rb_git_blame_each’:
rugged_blame.c:252:31: error: expected expression before ‘git_blame’
  252 |         Data_Get_Struct(self, git_blame, blame);
      |                               ^~~~~~~~~
make: *** [Makefile:251: rugged_blame.o] Error 1
make: *** Waiting for unfinished jobs....
rugged.c: In function ‘Init_rugged’:
rugged.c:681:28: warning: implicit declaration of function ‘Data_Wrap_Struct’;
did you mean ‘TypedData_Wrap_Struct’? [-Wimplicit-function-declaration]
681 |         rb_mShutdownHook = Data_Wrap_Struct(rb_cObject, NULL,
&cleanup_cb, NULL);
      |                            ^~~~~~~~~~~~~~~~
      |                            TypedData_Wrap_Struct
rugged.c: In function ‘rugged_exception_raise’:
rugged.c:339:6: warning: function might be candidate for attribute ‘noreturn’
[-Wsuggest-attribute=noreturn]
  339 | void rugged_exception_raise(void)
      |      ^~~~~~~~~~~~~~~~~~~~~~

make failed, exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions