Re: No flukahp file

From: Jeremy Northum <jnorthum_at_gmail.com>
Date: Fri, 16 Nov 2012 16:27:21 -0600

Hi Phil,

I ran into this issue a while back. It's a issue with the gcc libraries
that comes with Ubuntu, not necessarily an issue with fluka.

Here are some suggested fixes:

http://askubuntu.com/questions/75116/how-do-you-build-older-gcc-versions-errors-about-crti-o-not-being-found

https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/738098

http://stackoverflow.com/questions/6329887/compiling-problems-cannot-find-crt1-o

Creating a symbolic link seemed to work for a lot of people (see the first
and third links). I honestly can't remember what I did to fix the problem.
I may have just copied the necessarily files into the correct directory.

Hope this gets you going in the right direction.

Jeremy

On Thu, Nov 15, 2012 at 3:26 PM, Phil Loscoe <phil_at_q1techserv.com> wrote:

> Dear Fluka Experts****
>
> I just attempted to install Fluka using the latest respin
> (fluka2011.2-linuxAA.tar.gz, 27Oct2012) on a PC running Ubuntu 11.10. I
> followed the installation instructions as given in the 2012 Fluka
> Beginner's Course, supplemented by the Fluka on-line manual. Installation
> seemed to go OK, but when I attempted to run an example problem (Ex1 files
> downloaded from the 2012 Fluka Beginner's Course) the log file contained
> only a single line: “/home/pgl/FLUKA/flutil/rfluka: 358:
> /home/pgl/FLUKA/flukahp: not found”.****
>
> ** **
>
> The only flukahp file I could find in my FLUKA folder is flukahp.map****
>
> ** **
>
> Although I had run the “make” command, I next ran the command
> “$FLUPRO/flutil/lfluka -m fluka “ as described in the manual to generate
> (or regenerate?) the missing flkahp file, with the following results:****
>
> ** **
>
> p*gl_at_ubuntu-q1ts:~$ cd $FLUPRO *
>
> *pgl_at_ubuntu-q1ts:~/FLUKA$ $FLUPRO/flutil/lfluka -m fluka *
>
> *$FLUPRO = /home/pgl/FLUKA *
>
> * now linking *
>
> */home/pgl/FLUKA *
>
> *g77 *
>
> *ar x /home/pgl/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/pgl/FLUKA/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map
> fluka.o -L/home/pgl/FLUKA -lflukahp *
>
> *Driving: g77 -m32 -O3 -g -fexpensive-optimizations -funroll-loops
> -fstrength-reduce -Wall -fno-automatic -fno-silent -ffortran-bounds-check
> -I/home/pgl/FLUKA/flukapro -v -o flukahp -Xlinker -Map -Xlinker flukahp.map
> fluka.o -L/home/pgl/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 crt1.o crti.o
> /usr/lib/gcc/i486-linux-gnu/3.4.6/crtbegin.o -L/home/pgl/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 *
>
> * *
>
> I then re-ran the Ex1 problem with exactly the same result:
> “/home/pgl/FLUKA/flutil/rfluka: 358: /home/pgl/FLUKA/flukahp: not found”.*
> ***
>
> ** **
>
> Any suggestions would be greatly appreciated.****
>
> ** **
>
> Respectfully, Phil****
>
> ** **
>
> ** **
>
Received on Sat Nov 17 2012 - 11:28:46 CET

This archive was generated by hypermail 2.2.0 : Sat Nov 17 2012 - 11:28:47 CET