[fluka-discuss]: RE: Linking error when building executable

From: <mark.ibison_at_cockcroft.ac.uk>
Date: Mon, 6 Feb 2017 08:55:31 +0000

Hello Anton,

Thank you! I was confused because compile-and-link had been working a little while ago.
I had completely overlooked the setting of the destination directory for the executable.

Everything seems fine now.

Regards,
Mark

From: Anton Lechner [mailto:Anton.Lechner_at_cern.ch]
Sent: 03 February 2017 17:37
To: Ibison, Mark (Liverpool Uni.,DL,-); fluka-discuss_at_fluka.org
Subject: RE: Linking error when building executable

Dear Mark,

It is simply a permission problem: you try to generate the executable in a system directory (/usr/local/fluka) where you don't have write permissions. In general it is bad practice to generate user code in system directories.

You should change following line
/usr/local/fluka/flutil/lfluka -o /usr/local/fluka/fluka_source12a -m fluka ../windows/source12a.o

to something like:
/usr/local/fluka/flutil/lfluka -o ../windows/fluka_source12a -m fluka ../windows/source12a.o

Then the executable will be created in the same directory where you have the object file (and I guess also the source routine).

Cheers,
Anton

________________________________
From: owner-fluka-discuss_at_mi.infn.it<mailto:owner-fluka-discuss_at_mi.infn.it> [owner-fluka-discuss_at_mi.infn.it] on behalf of mark.ibison_at_cockcroft.ac.uk<mailto:mark.ibison_at_cockcroft.ac.uk> [mark.ibison_at_cockcroft.ac.uk]
Sent: 03 February 2017 17:11
To: fluka-discuss_at_fluka.org<mailto:fluka-discuss_at_fluka.org>
Subject: [fluka-discuss]: Linking error when building executable
Dear FLUKA Users,

I am receiving the attached errors in the linking phase of building a new executable with the user-defined SOURCE routine, from the file ' source12a.f'.
There are no compiler errors, and the code has built and run successfully in another environment.
I am running FLUPIX under VirtualBox in Windows 7.

I am sure it is a minor problem because I have been able to link and run similar code previously.

Thanks.

Mark Ibison



Dr Mark Ibison
Accelerator Beam Diagnostics

QUASAR Group
University of Liverpool Dept of Physics
Cockcroft Institute
Daresbury Laboratory
WARRINGTON
WA4 4AD

Tel. +44 (0)1925 864056
Email: mark.ibison_at_cockcroft.ac.uk<mailto:mark.ibison_at_cockcroft.ac.uk>



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Mon Feb 06 2017 - 11:42:13 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 06 2017 - 11:42:17 CET