|
[Sponsors] |
February 11, 2008, 09:25 |
Hi
I'm installing compiling
|
#1 |
New Member
Marcelo M. Garcia
Join Date: Mar 2009
Location: London, UK
Posts: 10
Rep Power: 17 |
Hi
I'm installing compiling OpenFOAM-1.4.1 in a IBM blade QS21 (2 duo-core Cell BE) with Fedora 7 using the IBM SDK 3.0 (gcc-4.1.1). The error is about ld relocation from elf64-powerpc to elf32-powerpc[1]. In the file "rules" I put to be 64-bits[2], but seems that the file "ccSPOpt/libfbsdmalloc.o" has to be 32 bits. Is this right? Is there a work around for this? Note, I tried the Fedora gcc-4.1.2, and I got the same error. Regards Marcelo [1] + cd malloc + ./Allwmake + wmake libo fbsdmalloc /home/ocf/OpenFOAM/OpenFOAM-1.4.1/wmake/wmakeLnInclude: linking include files to /home/ocf/OpenFOAM/OpenFOAM-1.4.1/src/malloc/fbsdmalloc/lnInclude Making dependency list for source file fbsdmalloc.c could not open file libc_private.h for source file fbsdmalloc.c could not open file spinlock.h for source file fbsdmalloc.c SOURCE=fbsdmalloc.c ; ppu-gcc -mpowerpc64 -mcpu=970 -m64 -Dlinuxppc64 -DSP -Wall -O3 -fno-gcse -IlnInclude -I. -I/home/ocf/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linuxppc64GccSPOpt/fbsdmalloc.o ld -A64 -r -o /home/ocf/OpenFOAM/OpenFOAM-1.4.1/lib/linuxppc64GccSPOpt/libfbsdmalloc.o Make/linuxppc64GccSPOpt/fbsdmalloc.o ld: Relocatable linking with relocations from format elf64-powerpc (Make/linuxppc64GccSPOpt/fbsdmalloc.o) to format elf32-powerpc (/home/ocf/OpenFOAM/OpenFOAM-1.4.1/lib/linuxppc64GccSPOpt/libfbsdmalloc.o) is not supported make: *** [/home/ocf/OpenFOAM/OpenFOAM-1.4.1/lib/linuxppc64GccSPOpt/libfbsdmalloc.o] Error 1 + '[' '!' -r /home/ocf/OpenFOAM/OpenFOAM-1.4.1/src/mico-2.3.12/platforms/linuxppc64GccSPOpt/l ib/libmico2.3.12.a ']' [2]:::::::::::::: c :::::::::::::: .SUFFIXES: .c .h cWARN = -Wall cc = ppu-gcc -mpowerpc64 -mcpu=970 -m64 include $(RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@ LINK_LIBS = $(cDBUG) LINKLIBSO = $(cc) -shared LINKEXE = $(cc) -Xlinker -z -Xlinker nodefs :::::::::::::: c++ :::::::::::::: .SUFFIXES: .C .cxx .cc .cpp c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast CC = ppu-g++ -mpowerpc64 -mcpu=970 -m64 include $(RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-40 c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPI C Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@ cxxtoo = $(Ctoo) cctoo = $(Ctoo) cpptoo = $(Ctoo) LINK_LIBS = $(c++DBUG) LINKLIBSO = $(CC) $(c++FLAGS) -shared LINKEXE = $(CC) $(c++FLAGS) |
|
February 14, 2008, 05:30 |
Solved. I forgot to change the
|
#2 |
New Member
Marcelo M. Garcia
Join Date: Mar 2009
Location: London, UK
Posts: 10
Rep Power: 17 |
Solved. I forgot to change the linker to "ppu-ld"
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent gives libc error on 64 bit AMD Fedora 9 | Kumar | FLUENT | 3 | October 7, 2008 13:52 |
`logf' causes overflow in R_X86_64_PC32 relocation | norbinou | Siemens | 3 | March 8, 2008 11:26 |
FoamX starting on Fedora 8 x86_64 and i386 Error nsd ORBIIOPAddr %24myIOP ior %24FOAMX_CONFIGnsref %2360 devnull | rationaalinen | OpenFOAM Pre-Processing | 6 | December 2, 2007 12:40 |
Error Display of FLUENT on LINUX FEDORA 7 | Gustavo Gondran Ribeiro | FLUENT | 7 | September 1, 2007 00:06 |
FoamX Error after upgrade to Fedora Core 6 | philippose | OpenFOAM Installation | 5 | October 31, 2006 13:36 |