Re: [fluka-discuss]: problem with "cannot find crt1.o" again

From: Vittorio Boccone <dr.vittorio.boccone_at_ieee.org>
Date: Sat, 9 Jul 2016 23:28:01 +0200

Hi, well Uubuntu 32 bit is not the best distribution where you could install FLUKA, but I guess you can get it going pretty rapidly.

Avoid linking here and there changing the position on the system library… that’s a dirty hack. Better use the standard variables which handle the party of the libraries to be loaded.
For me it works.

My steps:
- Fresh installation of ubuntu 14.04 32bit
- Supposed you’ve go the g77 in.
- You need to install the libc6
> sudo apt-get install libc6-*
- Add in the LIBRARY_PATH (possibly add this in the .bashrc file so you’ll have this behaviour by default)
> export LIBRARY_PATH=${LIBRARY_PATH}:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/gcc/i686-linux-gnu/4.8
- define
> export FLUPRO=<your_path_to_fluka> and FLUFOR=g77 (possibly add this in the .bashrc file so you’ll have this behaviour by default)
- build:
> make

Should works.
Vittorio


> On 09 Jul 2016, at 09:17, Roman Savinov <rsavinov_at_calpoly.edu> wrote:
>
> Dear Fluka experts,
>
> I know this problem was addressed here several times already but all proposed solutions didn't work for me. The problem is that some libraries can not be found, for example:
>
> /usr/bin/ld: cannot find crt1.o: No such file or directory
>
> I followed this thread: http://www.fluka.org/web_archive/earchive/new-fluka-discuss/6950.html
> specifically I tried to create a soft link in /usr/lib directory but it didn't help:
>
> linux_at_linux-HP-Pavilion-g4-Notebook-PC:~/FLUKA$ sudo locate crt1.o
> /usr/lib/debug/usr/lib/i386-linux-gnu/Mcrt1.o
> /usr/lib/debug/usr/lib/i386-linux-gnu/Scrt1.o
> /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o
> /usr/lib/debug/usr/lib/i386-linux-gnu/gcrt1.o
> /usr/lib/i386-linux-gnu/Mcrt1.o
> /usr/lib/i386-linux-gnu/Scrt1.o
> /usr/lib/i386-linux-gnu/crt1.o
> /usr/lib/i386-linux-gnu/gcrt1.o
>
> linux_at_linux-HP-Pavilion-g4-Notebook-PC:~/FLUKA$ sudo ln -s /usr/lib/i386-linux-gnu/crt1.o /usr/lib/crt1.o
> ln: failed to create symbolic link ‘/usr/lib/crt1.o’: File exists
> linux_at_linux-HP-Pavilion-g4-Notebook-PC:~/FLUKA$
>
> (this is the second time I run it, thus "File exist")
>
> I do have g77 and gcc. Maybe I am missing something else?
>
> Attached is the log of the Fluka compiling.
>
> Thank you,
>
> Roman
>
> <fluka_make_log.txt>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id¬c_info
Received on Sun Jul 10 2016 - 00:51:46 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 10 2016 - 00:51:48 CEST