SCIRun User Mailing List

Text archives Help


[SCIRUN-USERS] Thirdparty Install Error (& Fix) building 32-bit on x86_64 GNU/Linux


Chronological Thread 
  • From: Stewart Dickson <dicksonsp@ornl.gov>
  • To: scirun-users@sci.utah.edu
  • Subject: [SCIRUN-USERS] Thirdparty Install Error (& Fix) building 32-bit on x86_64 GNU/Linux
  • Date: Fri, 14 Jan 2005 11:19:42 -0500

Hi,

On x86_64 GNU/Linux (AMD Opteron) platform, the install script supplied with Thirdparty_install.1.22.0.tar.gz
source distribution appears broken.

line 1215: '$(INCLUDEDIR) -mcpu=i486,g\' Makefile > Makefile.new'
python install /usr/local/SCIRun/Thirdparty 32 1
produces:
gcc -Iheaders -I/usr/include -Ijpeg -mcpu=i486 -fomit-frame-pointer -ffast-math
-finline-functions -O   -DLONG_32 -DSYSV -DLINUX   -c -o mfwddct.o mfwddct.c
cc1: error: CPU you selected does not support x86-64 instruction set
gmake: *** [mfwddct.o] Error 1
command FAILED! : gmake  -j 1 -f Makefile.lib
Making the following modification:

1215c1215
<                '$(INCLUDEDIR) -mcpu=i486,g\' Makefile > Makefile.new'
---
>                '$(INCLUDEDIR) -m32,g\' Makefile > Makefile.new'

Allows the build to proceed until the point of building DSOs in teem/libair:
ld -o ../linux.32/obj/libair.so   -shared -L/usr/local/SCIRun/Thirdparty/1.22/Linux/gcc-3.3.1-32bit/lib ../linux.32/obj/754.o ../linux.32/obj/rand48.o ../linux.32/obj/array.o ../linux.32/obj/miscAir.o ../linux.32/obj/parseAir.o ../linux.32/obj/endianAir.o ../linux.32/obj/dio.o ../linux.32/obj/mop.o ../linux.32/obj/enum.o ../linux.32/obj/sane.o ../linux.32/obj/string.o ../linux.32/obj/threadAir.o
 
ld: ../linux.32/obj/754.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
../linux.32/obj/754.o: could not read symbols: Bad value
gmake: *** [../linux.32/obj/libair.so] Error 1
command FAILED! : gmake
Apply the following modifications to Thirdparty_install.1.22.0/install:
576c576
<     # Now build SCI Interface library and Interface sampel programs
---
>     # Now build SCI Interface library and Interface sample programs
1084a1085,1089
>     else :
>         cmmd = 'cp make/linux.mk make/linux.mk.work'
>         inst(cmmd)
>         cmmd = "sed -e 's,OPT_CFLAG ?= -O2,OPT_CFLAG ?= -O2 -fPIC,g' make/linux.mk.work > make/linux.mk"
>         inst(cmmd)
1209c1214
<       elif processor == 'ia64' :
---
>       else :
1213c1218
<       else : # Add in the -m486 flag...
---
>         # Add in the -m486 flag...
1215c1220
<                '$(INCLUDEDIR) -mcpu=i486,g\' Makefile > Makefile.new'
---
>                '$(INCLUDEDIR) -m32,g\' Makefile > Makefile.new'
1276a1282
>                 logenviron('LDFLAGS','-fPIC')

-Stewart   http://us.imdb.com/Name?Stewart+Dickson
http://www.csm.ornl.gov/~dickson


  • [SCIRUN-USERS] Thirdparty Install Error (& Fix) building 32-bit on x86_64 GNU/Linux, Stewart Dickson, 01/14/2005

Archive powered by MHonArc 2.6.16.

Top of page