-
|
After updating Ubuntu to version 25.04, I followed the usual procedure to install EGSnrc. Compiling mortran3.f /home/mario/EGSnrc/HEN_HOUSE/lib/linux64/machine.f mortran3.f:2278:72: 2278 | 99 O(J+M-1)=ICHAR(CH(M)) mortran3.f:2287:72: Mortran compilation ... Compiling pegs4_linux64.f with flags '-fPIC -O2 -mtune=native -mcmodel=medium' pegs4_linux64.f:3610:28: => Compiling BEAMnrc tool dosxyz_show ... dosxyz_show.c: In function 'get_data': dosxyz_show.c:1268:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] The result of compiling a simulation code is the following: $ myapp -i point_source.egsinp The used code worked on previous Ubuntu version and actually works on Windows 11. I've already installed EGSnrc several times on previous versions of Ubuntu and Windows 11, so I'm familiar with the procedure. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
|
This is an issue with the newer compilers, if you switch to an older gcc compiler it should work fine. Just keep in mind that you should really start fresh and clone into a new folder when switching compilers. |
Beta Was this translation helpful? Give feedback.
-
|
I looked over my notes, the flag for newer gcc's is
|
Beta Was this translation helpful? Give feedback.
-
|
I got the same error. Again searched for a$ in egsnrc.mortran file,
replaced it with a. Recompiled the code. Now it is running myapp code.
But I don't know this substitution is correct, but it works
…On Wed, 22 Oct 2025, 11:42 pm MaF-MPJ, ***@***.***> wrote:
I made the indicated substitution in the HEN_HOUSE/src/egsnrc.mortran
file, but I still get the same error:
At line 22111 of file egsnrc_linux.F (unit = 6, file = 'stdout')
Fortran runtime error: Missing comma between descriptors
(a$)
^
I ran a grep search for other occurrences of /a$, but found none in the
entire /EGSnrc folder and sub-folders.
—
Reply to this email directly, view it on GitHub
<#1335 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQK3RGUNHHT36DFW6RU7CV33Y7CH7AVCNFSM6AAAAACJTOROIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINZVGQYDIOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Yes I did ‘make clean’ and then ‘make’
I modified two instances of a$ in the egsnrc.mortran file and replaced with
a.
It compiled with 8 warnings. But successfully runs my input files.
Is this correct. Or does it change the getinp. I think these takes data of
atomic relaxation and Rayleigh interaction.
…On Thu, 23 Oct 2025 at 12:06 AM, Reid Townson ***@***.***> wrote:
Did you recompile the application? E.g. in egs_home/myapp do make clean;
make.
—
Reply to this email directly, view it on GitHub
<#1335 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQK3RGSLKPSZAIVAEWI53AD3Y7FDHAVCNFSM6AAAAACJTOROIOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINZVGQZDCNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I finally did it!
Last note Thanks everyone for the great help! |
Beta Was this translation helpful? Give feedback.

I finally did it!
Procedure:
-iPIC -std=legacy"flags for gfortran (it doesn't matter whether you use the GUI or not);HEN_HOUSE/src/egsnrc.mortranfile and replace "/a$" with "/a"(5 substitutions);make clean" and then "make" commands;egsnrc_linux64.Ffile created by make in the same folder and replace "a$" with "a" (2 substitutions);makeagain (without first running themake cleancommand!).This worked for the
myappfolder, created as instructed in the Getting Started tutorial.Last note
Does the message "
library needed for dlopen -ldl" imply a problem?Thanks everyone for the great h…