Friday, 15 August 2014

osx - RVM Ruby 1.9.3 Errors in Mac 10.8.2 -



osx - RVM Ruby 1.9.3 Errors in Mac 10.8.2 -

i trying install ruby using rvm in mount lion , maintain on getting errors while running make, when gcc=clang (as recommended solution on other posts). have xcode updated command line utilities installed.

the make.log reads

[2013-02-18 17:37:00] create cc = clang ld = ld ldshared = clang -dynamic -bundle cflags = -o3 -ggdb -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -werror=pointer-arith -werror=write-strings -werror=declaration-after-statement -werror=shorten-64-to-32 -werror=implicit-function-declaration -pipe xcflags = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -druby_export cppflags = -d_xopen_source -d_darwin_c_source -i/users/maraaverick/.rvm/usr/include -i. -i.ext/include/x86_64-darwin12.2.0 -i./include -i. dldflags = -wl,-undefined,dynamic_lookup -wl,-multiply_defined,suppress -wl,-flat_namespace solibs = compiling main.c compiling dmydln.c compiling dmyencoding.c compiling version.c compiling dmyversion.c compiling miniprelude.c compiling array.c compiling bignum.c bignum.c:2732:26: warning: while loop has empty body [-wempty-body] while (--ny && !zds[ny]); ++ny; ^ bignum.c:2732:26: note: set semicolon on separate line quiet warning 1 warning generated. compiling class.c compiling compar.c compiling complex.c compiling dir.c compiling dln_find.c compiling enum.c compiling enumerator.c compiling error.c compiling eval.c compiling load.c compiling proc.c compiling file.c compiling gc.c gc.c:3060:1: warning: unused function 'chain_finalized_object' [-wunused-function] chain_finalized_object(st_data_t key, st_data_t val, st_data_t arg) ^ 1 warning generated. compiling hash.c compiling inits.c compiling io.c compiling marshal.c compiling math.c compiling node.c compiling numeric.c compiling object.c compiling pack.c compiling parse.c compiling process.c compiling random.c compiling range.c compiling rational.c compiling re.c compiling regcomp.c compiling regenc.c compiling regerror.c compiling regexec.c compiling regparse.c regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') 'int' [-werror,-wshorten-64-to-32] homecoming t->num_entries; ~~~~~~ ~~~^~~~~~~~~~~ 1 error generated. make: *** [regparse.o] error 1

the same true when not specify gcc, , when seek install openssl , standalone gcc bundle per recommendations here

rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr

although when tried specify local gcc told it's not in path:

$ cc=/opt/local/bin/gcc-apple-4.2 rvm install ruby-1.9.3-p194 --enable-shared --without-tk --without-tcl requested building '/opt/local/bin/gcc-apple-4.2' not in path.

any help much appreciated. much.

you using clang here improve explanation of problem http://stackoverflow.com/a/14594287/497756 , here improved process (not yet on rvm head): http://stackoverflow.com/a/14940278/497756

ruby osx rvm

No comments:

Post a Comment