Re: [fluka-discuss]: /usr/bin/ld: cannot find -lgcc_s

From: Tchakoua Tchouaso, Modeste <tmt6z4_at_mail.missouri.edu>
Date: Thu, 26 Jul 2018 17:50:26 +0000

Mutturaj,


It is probably the compiler you are using or likely the version of Fluka. My recommendation is based on the fact that you are using gfortran version (fluka2011.2x-linux-gfor64bit-6.4-AA). I recently installed Fluka, so I am by no means an expert. But here is what I did:


1) Install gfortran on ubumtu ( you can use synaptic to do this).

2) Run the command "FLUPRO /pathto/fluka" on terminal

3) Run the command " export FLUFOR=gfortran" on terminal, AND

4) make


An alternative to (2) and (3) will be to do the following:

- run the command " emacs .bashrc" ( You may need to install emacs)

- Edit the .bashrc and add the following lines:



      export FLUPRO=/pathto/fluka

      export FLUFOR=gfortran

      GFORFLU= gfortran-x.x ( x.x is the version (>4.6) of gfortran installed in Ubumtu


Good Luck

Modeste





________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Mutturaj Mallappa Hosamani <mutturajhphy_at_kud.ac.in>
Sent: Thursday, July 26, 2018 7:37:04 AM
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: /usr/bin/ld: cannot find -lgcc_s

Dear All,
I am facing the problem while installing the fluka in Ubuntu 14.04.5 LTS i686 32 bit

the out when running make is



FLUPRO=/home/nuclear/fluka flutil/lfluka -o flukahp -m fluka
$FLUPRO = /home/nuclear/fluka
 now linking
/home/nuclear/fluka
g77
ar x /home/nuclear/fluka/libflukahp.a fluka.o
g77 -m32 -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/nuclear/fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o -L/home/nuclear/fluka -lflukahp
Driving: g77 -m32 -O3 -g -fexpensive-optimizations -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check -I/home/nuclear/fluka/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o -L/home/nuclear/fluka -lflukahp -lfrtbegin -lg2c -lm -shared-libgcc
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --with-tune=pentium4 i486-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu3)
 /usr/lib/gcc/i486-linux-gnu/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o flukahp /usr/lib/gcc/i486-linux-gnu/3.4.6/crt1.o /usr/lib/gcc/i486-linux-gnu/3.4.6/crti.o /usr/lib/gcc/i486-linux-gnu/3.4.6/crtbegin.o -L/home/nuclear/fluka -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6 -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/3.4.6/../../.. -L/lib/../lib -L/usr/lib/../lib -Map flukahp.map fluka.o -lflukahp -lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/i486-linux-gnu/3.4.6/crtend.o /usr/lib/gcc/i486-linux-gnu/3.4.6/crtn.o
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
cd flutil; FLUPRO=/home/nuclear/fluka make all; cd ..
make[1]: Entering directory `/home/nuclear/fluka/flutil'
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: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [actdline] Error 1
make[1]: Leaving directory `/home/nuclear/fluka/flutil'



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Thu Jul 26 2018 - 21:16:50 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 26 2018 - 21:17:00 CEST