ld: can't re-map file, errno=22 file #5904
Unanswered
Derek-Schutt
asked this question in
Everyday usage
Replies: 1 comment 4 replies
-
Brew says these are also installed. I also see that you're running on an ARM device but have an x86 install, is that intentional? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am trying to compile a program with gfortran that compiles fine on a linux box. However, when I try to compile it on my Mac studio (M1), I get a bunch of errors that say:
ld: can't re-map file, errno=22 file '/usr/local/Cellar/gcc/14.2.0_1/lib/gcc/current/libgcc_s.1.1.dylib' for architecture x86_64 collect2: error: ld returned 1 exit status ld: can't re-map file, errno=22 file '/usr/local/Cellar/gcc/14.2.0_1/lib/gcc/current/libgcc_s.1.1.dylib' for architecture x86_64 collect2: error: ld returned 1 exit status
I have just reinstalled homebrew, and the only two packages I have installed are gcc and gmt. Can anyone please tell me how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions