RE: [fluka-discuss]: compile problem

From: Anton Lechner <Anton.Lechner_at_cern.ch>
Date: Sat, 10 Oct 2015 15:46:50 +0000

Dear Ryuji,

I see that you are compiling FLUKA in 32bit mode on a 64bit architecture (which is of course possible). Now it seems that during linking, an object file is linked (xalt.o) which has apparently been compiled in 64bit, hence the linker gives an error. This object file is not part of FLUKA but is on your system (if I am not mistaken it belongs to a programme collecting job level activity on a cluster). I would investigate (maybe with your system manager?) why this file is linked when compiling in 32 bit mode (-m32).

Alternatively, you could download and compile the 64bit version of FLUKA, but then you need gfortran (and you need to set the environment variable FLUFOR to gfortran before compiling).

Cheers, Anton




________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Ryuji Takeishi [take_at_icrr.u-tokyo.ac.jp]
Sent: 08 October 2015 07:47
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: compile problem

Dear FLUKA team,

I have a question about the compile error of the fluka pakcage.
When running make command on Red Hat computer, the error happens.
The fluka version is fluka2011.2c-linuxAA.tar.gz.
The error message is below.

////////////////////

FLUPRO=/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka
flutil/lfluka -o flukahp -m fluka
$FLUPRO = /scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka
 now linking
/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka
g77
ar x /scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka/
libflukahp.a fluka.o
rm: cannot remove `flukahp.map': No such file or directory
g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -funroll-
loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-
bounds-check -I/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/
fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o
-L/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka -lflukahp
Driving: g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations -
funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -
ffortran-bounds-check -I/scratch/kingspeak/serial/u0905040/COR_test/
tasdmc/src/fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.
map fluka.o -L/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/
fluka -lflukahp -lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --disable
-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-
exceptions --enable-languages=c,c++,f77 --disable-libgcj --host=x86_64-
redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-19.el6)
 /usr/libexec/gcc/x86_64-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o flukahp /usr/lib/gcc/x86_
64-redhat-linux/3.4.6/../../../../lib/crt1.o /usr/lib/gcc/x86_64-redhat-
linux/3.4.6/../../../../lib/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.
6/32/crtbegin.o -L/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src
/fluka -L/uufs/chpc.utah.edu/sys/pkg/intel/ics/composer_xe_2015.1.133/
compiler/lib/intel64 -L/uufs/chpc.utah.edu/sys/pkg/intel/ics/composer_xe
_2015.1.133/ipp/../compiler/lib/intel64 -L/uufs/chpc.utah.edu/sys/pkg/
intel/ics/composer_xe_2015.1.133/ipp/lib/intel64 -L/uufs/chpc.utah.edu/
sys/pkg/intel/ics/composer_xe_2015.1.133/compiler/lib/intel64 -L/uufs/
chpc.utah.edu/sys/pkg/intel/ics/composer_xe_2015.1.133/mkl/lib/intel64 -
L/uufs/chpc.utah.edu/sys/pkg/intel/ics/composer_xe_2015.1.133/tbb/lib/
intel64/gcc4.4 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/32 -L/usr/lib/
gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/
32 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -L/usr/lib/gcc/x86_64-redhat
-linux/3.4.6/../../../../lib -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6/..
/../.. -L/lib/../lib -L/usr/lib/../lib -Map flukahp.map fluka.o -
lflukahp -lfrtbegin -lg2c -lm -lgcc_s_32 -lgcc -lc -lgcc_s_32 -lgcc /usr
/lib/gcc/x86_64-redhat-linux/3.4.6/32/crtend.o /usr/lib/gcc/x86_64-
redhat-linux/3.4.6/../../../../lib/crtn.o
/usr/bin/ld: i386:x86-64 architecture of input file `/tmp/u0905040_2015_
09_30_02_19_10_51995492-62a6-4ad8-bfb4-d04d03050d9f/xalt.o' is
incompatible with i386 output
/usr/bin/ld: link errors found, deleting executable `flukahp'
collect2: ld returned 1 exit status
cd flutil; FLUPRO=/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src
/fluka make all; cd ..
make[1]: Entering directory `/scratch/kingspeak/serial/u0905040/COR_test
/tasdmc/src/fluka/flutil'
/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka/flutil/fff
-N actdline.f
actdline:
  lstnbl:
/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka/flutil/fff
-N hpadd.f
hpadd:
  lstnbl:
/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka/flutil/fff
-N hpc.f
hpc:
hpc.f: In program `hpc':
In file included from hpc.f:0:
hpc.f:5: warning: unused variable 'chlc'
hpc.f:5: warning: unused variable 'chuc'
  lstnbl:
  uctolc:
  lctouc:
/scratch/kingspeak/serial/u0905040/COR_test/tasdmc/src/fluka/flutil/fff
-N hpfor.f
hpfor:
hpfor.f: In program `hpfor':
In file included from hpfor.f:0:
hpfor.f:5: warning: unused variable 'chlc'
hpfor.f:5: warning: unused variable 'chuc'
  lstnbl:
  uctolc:
  lctouc:
g77 -O3 -g -mcpu=pentiumpro -fexpensive-optimizations -funroll-loops -
fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-
check -m32 -o actdline actdline.o
/usr/bin/ld: i386:x86-64 architecture of input file `/tmp/u0905040_2015_
09_30_02_19_13_8e17eecd-7953-4b2d-bbaf-f7a847df9de4/xalt.o' is
incompatible with i386 output
/usr/bin/ld: link errors found, deleting executable `actdline'
collect2: ld returned 1 exit status
make[1]: *** [actdline] Error 1
make[1]: Leaving directory `/scratch/kingspeak/serial/u0905040/COR_test/
tasdmc/src/fluka/flutil'

////////////////////

The linux version and g77 version is as follows.

$ uname -a
Linux ember2 2.6.32-504.30.3.el6.x86_64 #1 SMP Wed Jul 15 10:13:09 UTC
2015 x86_64 x86_64 x86_64 GNU/Linux

$ g77 --version
GNU Fortran (GCC) 3.4.6 20060404 (Red Hat 3.4.6-19.el6)
Copyright (C) 2006 Free Software Foundation, Inc.

If you have the solution of this error, please let me know.

With Best Regards,

Ryuji Takeishi

******************************************************
Ryuji Takeishi
Institute for cosmic ray research, University of Tokyo
TEL: 04-7136-5120
e-mail: take_at_icrr.u-tokyo.ac.jp
******************************************************




__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info


__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?idc_info
Received on Sat Oct 10 2015 - 19:34:23 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 10 2015 - 19:34:31 CEST