CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

PowerPCCell Fedora 7 ld relocation error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 11, 2008, 09:25
Default Hi I'm installing compiling
  #1
New Member
 
Marcelo M. Garcia
Join Date: Mar 2009
Location: London, UK
Posts: 10
Rep Power: 8
mgarcia is on a distinguished road
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)
mgarcia is offline   Reply With Quote

Old   February 14, 2008, 05:30
Default Solved. I forgot to change the
  #2
New Member
 
Marcelo M. Garcia
Join Date: Mar 2009
Location: London, UK
Posts: 10
Rep Power: 8
mgarcia is on a distinguished road
Solved. I forgot to change the linker to "ppu-ld"
mgarcia is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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 12:52
`logf' causes overflow in R_X86_64_PC32 relocation norbinou CD-adapco 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 August 31, 2007 23:06
FoamX Error after upgrade to Fedora Core 6 philippose OpenFOAM Installation 5 October 31, 2006 13:36


All times are GMT -4. The time now is 12:53.