RE: [fluka-discuss]: install FLUKA in ubuntu 12.04

From: Anton Lechner <Anton.Lechner_at_cern.ch>
Date: Mon, 7 Jul 2014 07:12:26 +0000

Dear Ahmed,

Did you use in gfortran (rather than g77) in a previous attempt to compile FLUKA? At least it seems that the object file was compiled gfortran, while you now use g77 when linking. I would recommend a fresh installation.

Cheers, Anton



________________________________________
From: Shakeel Ahmed, Dr. [shakeel_at_pinstech.org.pk]
Sent: 07 July 2014 08:24
To: Anton Lechner; nozarm_at_triumf.ca
Cc: fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: install FLUKA in ubuntu 12.04

Dear Folks
Ultimately I am getting following error in compilation of FLUKA on ubunto 11.4 and 32 bit machine with gcc version 4.6.3
I will appreciate if some one help in this situation

make[1]: Entering directory `/home/shakeel/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
actdline.o: In function `lstnbl_':
/home/shakeel/FLUKA/flutil/actdline.f:28: undefined reference to `_gfortran_runtime_error_at'
/home/shakeel/FLUKA/flutil/actdline.f:25: undefined reference to `_gfortran_runtime_error_at'
actdline.o: In function `actdline':
/home/shakeel/FLUKA/flutil/actdline.f:5: undefined reference to `_gfortran_st_open'
/home/shakeel/FLUKA/flutil/actdline.f:6: undefined reference to `_gfortran_st_open'
/home/shakeel/FLUKA/flutil/actdline.f:16: undefined reference to `_gfortran_st_write'
/home/shakeel/FLUKA/flutil/actdline.f:16: undefined reference to `_gfortran_transfer_character_write'
/home/shakeel/FLUKA/flutil/actdline.f:16: undefined reference to `_gfortran_st_write_done'
/home/shakeel/FLUKA/flutil/actdline.f:9: undefined reference to `_gfortran_st_read'
/home/shakeel/FLUKA/flutil/actdline.f:9: undefined reference to `_gfortran_transfer_character'
/home/shakeel/FLUKA/flutil/actdline.f:9: undefined reference to `_gfortran_st_read_done'
/home/shakeel/FLUKA/flutil/actdline.f:22: undefined reference to `_gfortran_stop_string'
/home/shakeel/FLUKA/flutil/actdline.f:18: undefined reference to `_gfortran_st_write'
/home/shakeel/FLUKA/flutil/actdline.f:18: undefined reference to `_gfortran_st_write_done'
/home/shakeel/FLUKA/flutil/actdline.f:16: undefined reference to `_gfortran_runtime_error_at'
actdline.o: In function `main':
/home/shakeel/FLUKA/flutil/actdline.f:23: undefined reference to `_gfortran_set_args'
/home/shakeel/FLUKA/flutil/actdline.f:23: undefined reference to `_gfortran_set_options'
/home/shakeel/FLUKA/flutil/actdline.f:23: undefined reference to `_gfortran_set_fpe'
/home/shakeel/FLUKA/flutil/actdline.f:23: undefined reference to `_gfortran_set_record_marker'
collect2: ld returned 1 exit status
make[1]: *** [actdline] Error 1
make[1]: Leaving directory `/home/shakeel/FLUKA/flutil'


________________________________________
From: Anton Lechner [Anton.Lechner_at_cern.ch]
Sent: Thursday, July 03, 2014 1:06 PM
To: Shakeel Ahmed, Dr.; nozarm_at_triumf.ca
Cc: fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: install FLUKA in ubuntu 12.04

Dear Ahmed,

I appears that you have the same problem as already previously discussed on the list, i.e. it seems you don't have the gcc compatibility libraries or they are just not found. Following answers may help:
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5097.html (not that the file proposed for download in this answer was for a previous Ubuntu version)
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5099.html
http://www.fluka.org/web_archive/earchive/new-fluka-discuss/5591.html

[I suppose you are using a 32bit system, as you specified previously]

Cheers, Anton


________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Shakeel Ahmed, Dr. [shakeel_at_pinstech.org.pk]
Sent: 03 July 2014 07:17
To: nozarm_at_triumf.ca
Cc: fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: install FLUKA in ubuntu 12.04

Thanks Mina
I tried and successfully install g77 but now I am getting different type of error which is

gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu5)
 /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 crt1.o crti.o /usr/lib/gcc/i486-linux-gnu/3.4.6/crtbegin.o -L/home/shakeel/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 crtn.o
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
cd flutil; FLUPRO=/home/shakeel/FLUKA make all; cd ..
make[1]: Entering directory `/home/shakeel/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 crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [actdline] Error 1
make[1]: Leaving directory `/home/shakeel/FLUKA/flutil'

Can any one help me in this regards
thanks
shakeel




________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] On Behalf Of Mina Nozar [nozarm_at_triumf.ca]
Sent: Thursday, July 03, 2014 3:31 AM
To: felixpino_at_usb.ve; fluka-discuss_at_fluka.org
Subject: Re: [fluka-discuss]: install FLUKA in ubuntu 12.04

Hello Felix (?)

Try building g77 from the tar file:

http://conquer-ur-computer.blogspot.ca/2011/02/g77-offline-installation-for-all-ubuntu.html

Let me know how it goes.
Mina

On 14-07-02 01:34 PM, felixpino_at_usb.ve wrote:
> Dear experts,
>
> Has someone installed FLUKA in ubuntu 12.04 (32 bit)?. I have a
> problem with the g77 compiler, how can I get this compiler for ubuntu
> 12.04?
>
> Thanks
>
Received on Mon Jul 07 2014 - 10:31:57 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 07 2014 - 10:31:59 CEST