From: watson1978@... Date: 2017-04-18T12:30:15+00:00 Subject: [ruby-core:80766] [Ruby trunk Bug#13480] Build error since r58390 on macOS Issue #13480 has been reported by watson1978 (Shizuo Fujita). ---------------------------------------- Bug #13480: Build error since r58390 on macOS https://bugs.ruby-lang.org/issues/13480 * Author: watson1978 (Shizuo Fujita) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- ~~~ $ 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 ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: