Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run configuration script on Mac OS Sonoma 14.5 and M3 chip #1239

Open
hbouchard opened this issue Jan 14, 2025 · 0 comments
Open

Fail to run configuration script on Mac OS Sonoma 14.5 and M3 chip #1239

hbouchard opened this issue Jan 14, 2025 · 0 comments
Labels

Comments

@hbouchard
Copy link

Describe the bug
FORTRAN compiler failed to compile a simple test program with the selected compiler flags

To Reproduce
...

Expected behavior
Fail to compile

Screenshots
Terminal output
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

MacBook-Air:EGSnrc MC$ ./HEN_HOUSE/scripts/configure

###############################################################################
configure
###############################################################################

Copyright (C) 2015 National Research Council Canada

This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See LICENCE file for
details or http://www.gnu.org/licenses/agpl.txt

###############################################################################

EGSnrc configuration script.

This script configures EGSnrc for use on your system. The configuration
options will be saved in a configuration file inside the $HEN_HOUSE/specs
directory. You can use this configuration by setting the environment variable
$EGS_CONFIG to the path of the configuration file.

You can use this script to generate as many different configurations as you
wish (for instance, you may have different compilers installed or various
operating systems on the same file system). If the environment variable
$HEN_HOUSE is set for previous EGSnrc installations, it should probably be
unset prior to calling this script.

This script will ask you questions to configure EGSnrc.

Any response you enter overrides the suggested default shown in brackets.
This implies that if you want to add something to the default answer, you
must re-type this default answer as part of your response.

To accept the default answer shown in brackets: just press enter.
To submit an empty answer, overriding the default: enter '--' as a response.
To get help for some questions requiring input: enter '?' as a response.

###############################################################################

You can exit this script at any time by typing Ctrl-C.

Press enter to continue.

Checking system type ... arm-apple-darwin23.5.0
Checking for make ... yes (/usr/bin/make)

Looking for available fortran compilers ... found: gfortran

Input fortran compiler: [gfortran]
Testing if gfortran works ... yes. Object extension is 'o'
Testing if gfortran can create executables ... yes. Extension is ''
Checking for compiler version ... GNU Fortran (Homebrew GCC 14.2.0_1) version 14.2.0

Input standard compilation flags: [-fPIC]
Input optimization flags: [-O2 -mtune=native ] -02
Input flags for debugging: [-g] -g
Input libraries that your compiler may need:

Will use the following compiler settings:
F77 = gfortran
FCFLAGS = -fPIC
FDEBUG = -g
FOPT = -02
FLIBS =

Testing if compilation flags work ... no

Error: your FORTRAN compiler failed to compile a simple test program
with the selected compiler flags:

gfortran -c -fPIC -g -02

Run this script again to select different compiler flags.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Operating system
mcOS 14.5 (Sonoma) chip M3

EGSnrc version
2025

Additional context
...

@hbouchard hbouchard added the bug label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant