As always, this is due to the user having non-fink development
libraries (MacPorts?) installed. You can not mix fink with
MacPorts or have additional development libraries installed
in /usr/local without various breaking builds in fink. Notice
that the failed link line has /usr/local/lib/libgmp.a. Move
/usr/local aside under another name and try again.
               Jack

On Fri, Aug 28, 2009 at 04:28:45PM +1000, Matthew Wilce wrote:
> Dear Fink users,
> I am having problems installing gcc4. Can any one offer any advice. I  
> have posted the text from the end of the installation process below.
>
> I am using an dual quad processor powermac with osx 10.5.8.
>
> Regards,
> Matthew
>
> libtool: compile:  /sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./ 
> gcc/xgcc -B/sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/ -B/ 
> sw/lib/gcc4.4/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.4/i686-apple- 
> darwin9/lib/ -isystem /sw/lib/gcc4.4/i686-apple-darwin9/include -isystem 
> /sw/lib/gcc4.4/i686-apple-darwin9/sys-include -DHAVE_CONFIG_H -I. 
> -I../../../../../../../gcc-4.4.1/libjava/classpath/native/jni/java-math 
> -I../../../include -I../../../../../../../gcc-4.4.1/libjava/ 
> classpath/include -I../../../../../../../gcc-4.4.1/libjava/classpath/ 
> native/jni/classpath -I../../../../../../../gcc-4.4.1/libjava/ 
> classpath/native/jni/native-lib -I/sw/include -W -Wall -Wmissing- 
> declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -I/ 
> usr/include -g -O2 -MT gnu_java_math_GMP.lo -MD -MP -MF .deps/ 
> gnu_java_math_GMP.Tpo -c ../../../../../../../gcc-4.4.1/libjava/ 
> classpath/native/jni/java-math/gnu_java_math_GMP.c  -fno-common -DPIC -o 
> .libs/gnu_java_math_GMP.o
> /bin/sh ../../../libtool --tag=CC --mode=link /sw/src/fink.build/ 
> gcc44-4.4.1-1000/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/ 
> gcc44-4.4.1-1000/darwin_objdir/./gcc/ -B/sw/lib/gcc4.4/i686-apple- 
> darwin9/bin/ -B/sw/lib/gcc4.4/i686-apple-darwin9/lib/ -isystem /sw/lib/ 
> gcc4.4/i686-apple-darwin9/include -isystem /sw/lib/gcc4.4/i686-apple- 
> darwin9/sys-include -W -Wall -Wmissing-declarations -Wwrite-strings - 
> Wmissing-prototypes -Wno-long-long  -I/usr/include -g -O2   -version- 
> info 0:0:0 -no-undefined -lgmp  -o libjavamath.la -rpath /sw/lib/ 
> gcc4.4/lib/gcj-4.4.1-10 -version-info 0:0:0 -no-undefined -lgmp -avoid- 
> version gnu_java_math_GMP.lo ../../../native/jni/classpath/jcl.lo
> libtool: link: /sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/ 
> xgcc -B/sw/src/fink.build/gcc44-4.4.1-1000/darwin_objdir/./gcc/ -B/sw/ 
> lib/gcc4.4/i686-apple-darwin9/bin/ -B/sw/lib/gcc4.4/i686-apple-darwin9/ 
> lib/ -isystem /sw/lib/gcc4.4/i686-apple-darwin9/include -isystem /sw/ 
> lib/gcc4.4/i686-apple-darwin9/sys-include -dynamiclib  -o .libs/ 
> libjavamath.dylib  .libs/gnu_java_math_GMP.o ../../../native/jni/ 
> classpath/.libs/jcl.o   /usr/local/lib/libgmp.a    -install_name  /sw/ 
> lib/gcc4.4/lib/gcj-4.4.1-10/libjavamath.dylib  -Wl,-single_module
> ld warning: codegen in ___gmpn_popcount (offset 0x00000007) prevents  
> image from loading in dyld shared cache
> ld warning: codegen in ___gmpn_popcount (offset 0x0000000E) prevents  
> image from loading in dyld shared cache
> ld warning: codegen in ___gmpn_popcount (offset 0x00000015) prevents  
> image from loading in dyld shared cache
> ld: absolute addressing (perhaps -mdynamic-no-pic) used in ___gmpn_add_n 
> from /usr/local/lib/libgmp.a(add_n.o) not allowed in slidable image. Use 
> '-read_only_relocs suppress' to enable text relocs
> collect2: ld returned 1 exit status
> make[6]: *** [libjavamath.la] Error 1
> make[5]: *** [all-recursive] Error 1
> make[4]: *** [all-recursive] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-target-libjava] Error 2
> make: *** [all] Error 2
> ### execution of /var/tmp/tmp.1.vWHw7X failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-gcc44-4.4.1-1000
> (Reading database ... 154718 files and directories currently installed.)
> Removing fink-buildlock-gcc44-4.4.1-1000 ...
> Failed: phase compiling: gcc44-4.4.1-1000 failed
>
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to