Bugs / Issues: Browse | Submit New | Admin

[#23186] REE 1.8.6-20081205 not building on PPC, Mac OS X Tiger (10.4)

Date:
2008-12-11 11:32
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
REE 1.8.6-20081205 not building on PPC, Mac OS X Tiger (10.4)

Detailed description
REE 1.8.6-20081205 does not build on Mac OS X Tiger 10.4, PPC:

After configuration, the build stops with an error message. Trail following:

/usr/bin/gcc -dynamiclib system_allocator.c -install_name @rpath/libsystem_allocator.dylib -o libsystem_allocator.dylib
mkdir -p .ext/common
make PRELIBS='-Wl,-rpath,/opt/ruby-enterprise-1.8.6-20081205/lib -L/opt/ruby-enterprise-1.8.6-20081205/lib -ltcmalloc_minimal
-lsystem_allocator'
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c array.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c bignum.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c class.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c compar.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c dir.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c dln.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c enum.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c error.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c eval.c
eval.c: In function 'rb_eval_string_wrap':
eval.c:1732: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_eval_cmd':
eval.c:1873: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'call_trace_func':
eval.c:2724: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_raise_jump':
eval.c:4749: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'method_missing':
eval.c:5673: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_call0':
eval.c:5836: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_f_eval':
eval.c:6623: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'exec_under':
eval.c:6647: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_load':
eval.c:6883: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'call_end_proc':
eval.c:7896: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'rb_f_END':
eval.c:7909: warning: assignment discards qualifiers from pointer target type
eval.c: In function 'mproc':
eval.c:9541: warning: assignment discards qualifiers from pointer target type
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c file.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c gc.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c hash.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c inits.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c io.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c marshal.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c math.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c numeric.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c object.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c pack.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c parse.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c pointerset.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c process.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c prec.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c random.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c range.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c re.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c regex.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c ruby.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c signal.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c sprintf.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c st.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c string.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c struct.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c time.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c util.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c variable.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c version.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c ./missing/alloca.c
./missing/alloca.c:144: warning: conflicting types for built-in function 'alloca'
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c dmyext.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o enum.o error.o eval.o file.o gc.o hash.o inits.o
io.o marshal.o math.o numeric.o object.o pack.o parse.o pointerset.o process.o prec.o random.o range.o re.o regex.o
ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o alloca.o dmyext.o
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c main.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -I. -I.   -c dmydln.c
gcc -g -O2 -pipe -fno-common  -DRUBY_EXPORT  -L.    main.o dmydln.o libruby-static.a
-Wl,-rpath,/opt/ruby-enterprise-1.8.6-20081205/lib -L/opt/ruby-enterprise-1.8.6-20081205/lib -ltcmalloc_minimal
-lsystem_allocator -ldl -lobjc   -o miniruby
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: unknown flag: -rpath
collect2: ld returned 1 exit status
make: *** [miniruby] Error 1

My guess is that the build procedure does include some directive (-rpath) which is not understood by Tiger. Has this
build been tested on Tiger (PPC)?

The build should be fixed so that it runs on Tiger as well.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-10-14 20:30
Sender: Igor Galić

I suggest editing the makefile, and replacing this with either
-R, or setting LD_RUN_PATH
Date: 2008-12-31 19:44
Sender: Rick Bradley

I can confirm -- I see this problem with the 20081205 build on
Tiger and also on the 20081215 build on Tiger as well.


I found this discussed on Google Groups as well, but no responses
or workarounds.

:-(

Rick

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item