Hey Guys,
I currently trying to install EGSnrc on my personal laptop.
Windows 10 V.1803, OS Build 17134.407.
I am able to compile everything except for dosxyznrc (despite multiple tries, and reverting back to previous versions of mingw64 that were illustrated in the install guide on github).
This is the error thrown by the installer:
=> Compiling DOSXYZnrc(in-phantom dose calculation tool)…
Mortran compilation for dosxyznrc_win6432.F
mortran3.exe: using following I/O units
raw/hex data file: C:EGSnrcHEN_HOUSEbinwin6432mortran3.dat
command line files:
-> appending C:EGSnrcHEN_HOUSEsrcegsnrc.macros
-> appending C:EGSnrcHEN_HOUSEutilstiming.macros
-> appending C:EGSnrcHEN_HOUSElibwin6432machine.macros
-> appending C:EGSnrcHEN_HOUSEsrcranmar.macros
-> appending dosxyznrc_user_macros.mortran
-> appending srcxyznrc.macros
-> appending C:EGSnrcHEN_HOUSEsrctransportp.macros
-> appending C:EGSnrcHEN_HOUSEsrcpegs4_macros.mortran
-> appending C:EGSnrcHEN_HOUSEutilsphsp_macros.mortran
-> appending C:EGSnrcHEN_HOUSEutilsiaea_phsp_macros.mortran
-> appending dosxyznrc.mortran
-> appending C:EGSnrcHEN_HOUSEsrcget_inputs.mortran
-> appending C:EGSnrcHEN_HOUSEsrcget_media_inputs.mortran
-> appending C:EGSnrcHEN_HOUSElibwin6432machine.mortran
-> appending srcxyznrc.mortran
-> appending C:EGSnrcHEN_HOUSEsrcranmar.mortran
-> appending C:EGSnrcHEN_HOUSEutilsnrcaux.mortran
-> appending C:EGSnrcHEN_HOUSEsrcegs_utilities.mortran
-> appending C:EGSnrcHEN_HOUSEsrcegs_parallel.mortran
-> appending C:EGSnrcHEN_HOUSEsrcpegs4_routines.mortran
-> appending C:EGSnrcHEN_HOUSEsrcegsnrc.mortran
generated mortjob.mortran
fortran output: dosxyznrc_win6432.F
mortlst output: dosxyznrc_win6432.mortlst
Mortran compiling …
OK
C:EGSnrcHEN_HOUSEmakefilesstandard_makefile:87: recipe for target ‘C:EGSnrcegs_homebinwin6432dosxyznrc.exe’ failed
process_begin: CreateProcess(NULL, echo ., …) failed.
make (e=2): The system cannot find the file specified.
mingw32-make: * [C:EGSnrcegs_homebinwin6432dosxyznrc.exe] Error 2
Compilation failed!
Any thoughts?
Cody Church
Dalhousie University
Is there a log file ($HEN_HOUSE/log/) with more details on the issue? Otherwise can you go inside the $EGS_HOME/dosxyznrc/ directory and issue the command ‘make’ to see what is the tripping point?
LikeLike
Hey,
This is the error I get:
C:\EGSnrc\egs_home\dosxyznrc>mingw32-make
Makefile:47: C:\EGSnrc\HEN_HOUSE\specs\win.conf: No such file or directory
Makefile:48: beamnrc.spec: No such file or directory
Makefile:49: dosxyznrc_.spec: No such file or directory
mingw32-make: * No rule to make target ‘dosxyznrc_.spec’. Stop.
the .conf file in the HENHOUSE is named win6432, and if I change it to the win.conf, I get the same error from the previous message I posted.
The log file shows the same error.
Thanks,
Cody
LikeLike
Also, I have noticed that none of the egs++ codes are being compiled, nor am I able to compile executables for any of the included accelerators in the EGSnrc build.
LikeLike
That makes “perfect sense”, inasmuch as there is a problem with the configuration name (win.conf vs win6432.conf). Now I don’t know WHY this happens or where… Can you track down in the log file the point where the conf file is named and created, for additional clues?
LikeLike
Is the EGS_CONFIG environment variable set correctly?
LikeLike
The EGS_CONFIG file is set correctly! One thing is right hah!
This also looks a tad bit fishy at some point during the install:
” C:\EGSnrc\HEN_HOUSE\specs/C:\EGSnrc\HEN_HOUSE\specs\win6432.conf by typing on your command prompt
set EGS_CONFIG=C:\EGSnrc\HEN_HOUSE\specs/C:\EGSnrc\HEN_HOUSE\specs\win6432.conf
for a temporary setting or by adding/updating EGS_CONFIG permanently
on your system properties:
Start->[Settings]
>Control panel>System->Advanced->Environment Variablesand then just go to a user code directory and type ‘make’.
Whats with the C:\ … /C:\?
Other than that, I am not seeing where that would be. I have used the find statement to look for win6432.conf/win6432/.conf and the above was the oddest looking thing I could find.
The name of the .conf file is determined by the user input from the windows installer.
https://lh3.googleusercontent.com/2ojxDcmX706NJk9pHQODaKMc7CSGcMIvgudvWPUXE6FI9z-gUkxnbPUeMk_kvdVfwuHj1D3eIFDaeGX-T7BFSaIqGcpGsyjz-8g=s0
LikeLike
In the installer when you ran it, under “configuration name” was it just “win6432” (that’s what it should be), or did it have a path? That double path thing is pretty weird.
LikeLike
It was win6432 on the installer. So I am still at a loss for what to do.
https://lh3.googleusercontent.com/R3sHH7V9ikWPd2QHoli4Qx1Etv_xnpwO4YZCXn7cvn9MgNagofP0917rZUd4TDtg4OnkVhLg8v1iASD7pB_JGHXFAJS-yz3Cetk=s0
LikeLike
I’m at a loss too. It’s not fun, but I guess clear all environment variables (and your PATH) of everything to do with EGSnrc. Just leave the PATH addition for mingw. Reboot. Delete the egsnrc directories (or rename). Then run the installer fresh and make sure to check the ‘set environment’ button (and desktop icons I imagine). Cross fingers.
If you’re sure that won’t work, or if you try it and get the same problem, send the log file.
LikeLike
Ok so I’m pretty sure the problem here was changing compilers and then reinstalling in the same EGSnrc directory. The installer isn’t quite smart enough to handle that. So delete your EGSnrc directory (or rename it), and do a fresh install. E.g. if you are using git (recommended):
git clone github.com – nrc-cnrc/EGSnrc EGSnrc
Then run the installer. Use mingw6.3.0 which I think you already are.
LikeLike
So I factory reset my laptop and the installation worked! But I need to change the file “dosxyznrc_user_macros.mortran” so that I can use larger phantom sizes.
When I change this, the dosxyznrc.exe will not compile. What else needs to be modified to enable this?
LikeLike
If it doesn’t compile after that change, but does compile when you revert the change, it means you don’t have enough memory. Try reducing the dimensions to exactly what you need, or reduce MXMED and MXANG to see if you can eek out any more space.
LikeLike
You are indeed right. I just scaled down the max i,j,k to 300x300x100 and it worked. What is confusing is that I have 16 GB of RAM on this laptop and my PC but I could compile 512x512x512 on my PC.
Regardless, I am in business so thanks for all of your help!
LikeLike