Project

General

Profile

Bug #13480

Build error since r58390 on macOS

Added by watson1978 (Shizuo Fujita) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:80766]

Description

$ make
    CC = clang
    LD = ld
    LDSHARED = clang -dynamic -bundle
    CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Werror=implicit-int -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -Werror=division-by-zero -Werror=deprecated-declarations -Werror=extra-tokens   -pipe
    XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT -fPIE
    CPPFLAGS = -I/usr/local/opt/openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -I. -I.ext/include/x86_64-darwin16 -I./include -I. -I./enc/unicode/9.0.0
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/openssl/lib -fstack-protector -Wl,-u,_objc_msgSend -Wl,-pie -framework CoreFoundation
    SOLIBS =
Apple LLVM version 8.1.0 (clang-802.0.41)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
compiling vm.c
In file included from vm.c:293:
In file included from ./vm_exec.c:120:
insns.def:735:15: error: implicit conversion loses integer precision: 'rb_num_t' (aka 'unsigned long') to 'rb_event_flag_t'
      (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
    vm_dtrace(nf, th);
    ~~~~~~~~~ ^~
1 error generated.
make: *** [vm.o] Error 1

Updated by watson1978 (Shizuo Fujita) over 3 years ago

Seems that this was fixed at r58394.
Thank you for quickly fixing and please close this ticket.

#2

Updated by ko1 (Koichi Sasada) over 3 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF