Skip to content

Instantly share code, notes, and snippets.

@mysteriouspants
Created August 6, 2012 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mysteriouspants/6d03ae640101d96d6193 to your computer and use it in GitHub Desktop.
Save mysteriouspants/6d03ae640101d96d6193 to your computer and use it in GitHub Desktop.
Rubinius LLVM Compile Failure (OS X ML)
cmiller@cmiller-iMac:~/Code/rubinius
> ./configure --default-version=19 --cc=clang --cxx=clang++ master [422359a]
Checking gcc: found
Checking g++: found
Checking bison: found
Configuring LLVM...
Checking for existing LLVM library tree: found!
Checking sizeof(short): 2 bytes
Checking sizeof(int): 4 bytes
Checking sizeof(void*): 8 bytes
Checking sizeof(size_t): 8 bytes
Checking sizeof(long): 8 bytes
Checking sizeof(long long): 8 bytes
Checking sizeof(float): 4 bytes
Checking sizeof(double): 8 bytes
Checking sizeof(off_t): 8 bytes
Checking sizeof(time_t): 8 bytes
Checking for libc version: libc.dylib found!
Checking platform endianness: little endian
Checking tr1/hash definition: found
Checking for x86_32: no
Checking for x86_64: yes
Checking for function 'backtrace': found!
Checking for function 'readline': found!
Checking for library: libyaml: found!
Checking for function 'clock_gettime': not found
Checking for function 'nl_langinfo': found!
Checking for function 'setproctitle': not found
Checking for function 'posix_fadvise': not found
Checking for struct tm has member tm_gmtoff: found!
Checking for struct tm has member tm_zone: found!
Checking for global 'timezone': found!
Checking for global 'tzname': found!
Checking for global 'daylight': found!
Checking for header 'alloca.h': found!
Checking for header 'string.h': found!
Checking for header 'sys/time.h': found!
Checking for header 'sys/times.h': found!
Checking for header 'sys/types.h': found!
Checking for header 'unistd.h': found!
Checking for header 'stdarg.h': found!
Checking for header 'sys/pstat.h': not found
Checking curses library: curses
------------------------------------------------------------------
Rubinius has been configured.
Run 'rake' to build and test Rubinius.
After building, you may add
'/Users/cmiller/Code/rubinius/bin'
to your PATH or run commands directly from that directory.
Available commands are:
ruby, rake, gem, irb, rdoc, ri, rbx
------------------------------------------------------------------
cmiller@cmiller-iMac:~/Code/rubinius
> rake clean master [422359a]
(in /Users/cmiller/Code/rubinius)
cmiller@cmiller-iMac:~/Code/rubinius (*)
> DEV=1 rake build master [422359a] deleted
(in /Users/cmiller/Code/rubinius)
GEN vm/gen/config_variables.h
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/encoding_extract.rb /Users/cmiller/Code/rubinius/vendor/oniguruma vm/gen/encoding_database.cpp
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/transcoders_extract.rb /Users/cmiller/Code/rubinius/vendor/oniguruma/enc/trans vm/gen/transcoder_database.cpp
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby vm/codegen/field_extract.rb vm/builtin/basicobject.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/bytearray.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/class.hpp vm/builtin/compiledcode.hpp vm/builtin/data.hpp vm/builtin/dir.hpp vm/builtin/exception.hpp vm/builtin/float.hpp vm/builtin/immediates.hpp vm/builtin/iseq.hpp vm/builtin/list.hpp vm/builtin/lookuptable.hpp vm/builtin/ffi_pointer.hpp vm/builtin/methodtable.hpp vm/builtin/nativefunction.hpp vm/builtin/packed_object.hpp vm/builtin/randomizer.hpp vm/builtin/regexp.hpp vm/builtin/constantscope.hpp vm/builtin/encoding.hpp vm/builtin/string.hpp vm/builtin/symbol.hpp vm/builtin/thread.hpp vm/builtin/tuple.hpp vm/builtin/compactlookuptable.hpp vm/builtin/time.hpp vm/builtin/nativemethod.hpp vm/builtin/system.hpp vm/builtin/autoload.hpp vm/builtin/proc.hpp vm/builtin/variable_scope.hpp vm/builtin/location.hpp vm/builtin/global_cache_entry.hpp vm/builtin/weakref.hpp vm/builtin/fiber.hpp vm/builtin/thunk.hpp vm/builtin/call_unit.hpp vm/builtin/call_unit_adapter.hpp vm/builtin/cache.hpp vm/builtin/atomic.hpp
GEN vm/gen/instruction_names.cpp
GEN vm/gen/instruction_names.hpp
GEN vm/gen/instruction_sizes.hpp
GEN vm/gen/instruction_prototypes.hpp
GEN vm/gen/instruction_defines.hpp
GEN vm/gen/instruction_locations.hpp
GEN vm/gen/instruction_implementations.hpp
GEN vm/gen/instruction_visitors.hpp
GEN vm/gen/instruction_effects.hpp
GEN web/_includes/instructions.markdown
1: CC regcomp.c
1: CC regenc.c
1: CC regerror.c
1: CC regexec.c
1: CC regparse.c
1: CC regsyntax.c
1: CC regtrav.c
1: CC regversion.c
1: CC st.c
1: CC enc/ascii.c
1: CC enc/big5.c
1: CC enc/cp949.c
1: CC enc/emacs_mule.c
1: CC enc/euc_jp.c
1: CC enc/euc_kr.c
1: CC enc/euc_tw.c
1: CC enc/gb18030.c
1: CC enc/gbk.c
1: CC enc/iso_8859_1.c
1: CC enc/iso_8859_10.c
1: CC enc/iso_8859_11.c
1: CC enc/iso_8859_13.c
1: CC enc/iso_8859_14.c
1: CC enc/iso_8859_15.c
1: CC enc/iso_8859_16.c
1: CC enc/iso_8859_2.c
1: CC enc/iso_8859_3.c
1: CC enc/iso_8859_4.c
1: CC enc/iso_8859_5.c
1: CC enc/iso_8859_6.c
1: CC enc/iso_8859_7.c
1: CC enc/iso_8859_8.c
1: CC enc/iso_8859_9.c
1: CC enc/koi8_r.c
1: CC enc/koi8_u.c
1: CC enc/mktable.c
1: CC enc/shift_jis.c
1: CC enc/unicode.c
1: CC enc/us_ascii.c
1: CC enc/utf_16be.c
1: CC enc/utf_16le.c
1: CC enc/utf_32be.c
1: CC enc/utf_32le.c
1: CC enc/utf_8.c
1: CC enc/windows_1251.c
1: AR ./libonig.a
ar: creating archive ./libonig.a
a - ./artifacts/regcomp.c.o
a - ./artifacts/regenc.c.o
a - ./artifacts/regerror.c.o
a - ./artifacts/regexec.c.o
a - ./artifacts/regparse.c.o
a - ./artifacts/regsyntax.c.o
a - ./artifacts/regtrav.c.o
a - ./artifacts/regversion.c.o
a - ./artifacts/st.c.o
a - enc/artifacts/ascii.c.o
a - enc/artifacts/big5.c.o
a - enc/artifacts/cp949.c.o
a - enc/artifacts/emacs_mule.c.o
a - enc/artifacts/euc_jp.c.o
a - enc/artifacts/euc_kr.c.o
a - enc/artifacts/euc_tw.c.o
a - enc/artifacts/gb18030.c.o
a - enc/artifacts/gbk.c.o
a - enc/artifacts/iso_8859_1.c.o
a - enc/artifacts/iso_8859_10.c.o
a - enc/artifacts/iso_8859_11.c.o
a - enc/artifacts/iso_8859_13.c.o
a - enc/artifacts/iso_8859_14.c.o
a - enc/artifacts/iso_8859_15.c.o
a - enc/artifacts/iso_8859_16.c.o
a - enc/artifacts/iso_8859_2.c.o
a - enc/artifacts/iso_8859_3.c.o
a - enc/artifacts/iso_8859_4.c.o
a - enc/artifacts/iso_8859_5.c.o
a - enc/artifacts/iso_8859_6.c.o
a - enc/artifacts/iso_8859_7.c.o
a - enc/artifacts/iso_8859_8.c.o
a - enc/artifacts/iso_8859_9.c.o
a - enc/artifacts/koi8_r.c.o
a - enc/artifacts/koi8_u.c.o
a - enc/artifacts/mktable.c.o
a - enc/artifacts/shift_jis.c.o
a - enc/artifacts/unicode.c.o
a - enc/artifacts/us_ascii.c.o
a - enc/artifacts/utf_16be.c.o
a - enc/artifacts/utf_16le.c.o
a - enc/artifacts/utf_32be.c.o
a - enc/artifacts/utf_32le.c.o
a - enc/artifacts/utf_8.c.o
a - enc/artifacts/windows_1251.c.o
1: CC enc/trans/big5.c
1: LDSHARED enc/trans/big5.bundle
1: CC enc/trans/chinese.c
1: LDSHARED enc/trans/chinese.bundle
1: CC enc/trans/emoji.c
1: LDSHARED enc/trans/emoji.bundle
1: CC enc/trans/emoji_iso2022_kddi.c
1: LDSHARED enc/trans/emoji_iso2022_kddi.bundle
1: CC enc/trans/emoji_sjis_docomo.c
1: LDSHARED enc/trans/emoji_sjis_docomo.bundle
1: CC enc/trans/emoji_sjis_kddi.c
1: LDSHARED enc/trans/emoji_sjis_kddi.bundle
1: CC enc/trans/emoji_sjis_softbank.c
1: LDSHARED enc/trans/emoji_sjis_softbank.bundle
1: CC enc/trans/escape.c
1: LDSHARED enc/trans/escape.bundle
1: CC enc/trans/gb18030.c
1: LDSHARED enc/trans/gb18030.bundle
1: CC enc/trans/gbk.c
1: LDSHARED enc/trans/gbk.bundle
1: CC enc/trans/iso2022.c
1: LDSHARED enc/trans/iso2022.bundle
1: CC enc/trans/japanese.c
1: LDSHARED enc/trans/japanese.bundle
1: CC enc/trans/japanese_euc.c
1: LDSHARED enc/trans/japanese_euc.bundle
1: CC enc/trans/japanese_sjis.c
1: LDSHARED enc/trans/japanese_sjis.bundle
1: CC enc/trans/korean.c
1: LDSHARED enc/trans/korean.bundle
1: CC enc/trans/newline.c
1: LDSHARED enc/trans/newline.bundle
1: CC enc/trans/single_byte.c
1: LDSHARED enc/trans/single_byte.bundle
1: CC enc/trans/utf8_mac.c
1: LDSHARED enc/trans/utf8_mac.bundle
1: CC enc/trans/utf_16_32.c
1: LDSHARED enc/trans/utf_16_32.bundle
Running 181 tasks using 4 parallel threads
2: CC vm/arguments.cpp
3: CC vm/agent_components.cpp
4: CC vm/agent.cpp
clang: error: argument unused during compilation: '-ggdb3'
5: CC vm/accessor_primitives.cpp
clang: error: argument unused during compilation: '-ggdb3'
clang: error: argument unused during compilation: '-ggdb3'
clang: error: argument unused during compilation: '-ggdb3'
Error: clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -ggdb3 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/arguments.cpp.o vm/arguments.cpp
Error: clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -ggdb3 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/agent_components.cpp.o vm/agent_components.cpp
Error: clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -ggdb3 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/agent.cpp.o vm/agent.cpp
Error: clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -ggdb3 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/accessor_primitives.cpp.o vm/accessor_primitives.cpp
rake aborted!
Error compiling
(See full trace by running task with --trace)
cmiller@cmiller-iMac:~/Code/rubinius
> clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -ggdb3 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/arguments.cpp.o vm/arguments.cpp
clang: error: argument unused during compilation: '-ggdb3'
cmiller@cmiller-iMac:~/Code/rubinius
> ls vm/artifacts master [422359a]
cmiller@cmiller-iMac:~/Code/rubinius
> clang -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wno-unused-function -g -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O0 -DHAS_EXECINFO -DHAVE_SPT_REUSEARGV -DHAVE_NL_LANGINFO -DHAVE_TM_GMTOFF -DHAVE_TM_ZONE -DHAVE_TIMEZONE -DHAVE_TZNAME -DHAVE_DAYLIGHT -DHAVE_ALLOCA_H -DHAVE_STRING_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TIMES_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DHAVE_STDARG_H -D_DARWIN_USE_64_BIT_INODE -mdynamic-no-pic -Ivendor/oniguruma -DHAVE_CONFIG_H -I. -I../../vm/capi/19/include -Ivendor/llvm/include -I/Users/cmiller/Code/rubinius/vendor/llvm/Release/include -D_GNU_SOURCE -fno-common -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/libtommath -I/usr/local/include -c -o vm/artifacts/arguments.cpp.o vm/arguments.cpp
cmiller@cmiller-iMac:~/Code/rubinius
> ls vm/artifacts master [422359a]
arguments.cpp.o
cmiller@cmiller-iMac:~/Code/rubinius
> clang++ --version master [422359a]
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.0.0
Thread model: posix
cmiller@cmiller-iMac:~/Code/rubinius
> uname -a master [422359a]
Darwin cmiller-iMac.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment