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

Getting 'unknown options: -noall_load' error #65

Closed
gcanessag opened this issue Sep 27, 2023 · 10 comments
Closed

Getting 'unknown options: -noall_load' error #65

gcanessag opened this issue Sep 27, 2023 · 10 comments

Comments

@gcanessag
Copy link

gcanessag commented Sep 27, 2023

Trying to install pycutest through brew, pasting output:

% brew install cutest --without-single                                       
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################################################################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################################################################################################################################################################################################### 100.0%
==> Fetching optimizers/cutest/cutest
==> Downloading https://github.com/ralna/CUTEst/archive/v2.0.2.tar.gz
Already downloaded: /Users/gcanessa/Library/Caches/Homebrew/downloads/19e24677b1620da0b5e5f79ce1bfc503b2eac3c4f76af8a0797076ef84b98116--CUTEst-2.0.2.tar.gz
==> Installing cutest from optimizers/cutest
==> Patching
==> ./install_cutest < cutest.input
==> gfortran -fPIC -shared -Wl,-all_load libcutest.a -Wl,-noall_load -o libcutest_double.dylib -Wl,-undefined -Wl,dynamic_lookup -headerpad_max_install_names
Last 15 lines from /Users/gcanessa/Library/Logs/Homebrew/cutest/02.gfortran:

gfortran
-fPIC
-shared
-Wl,-all_load
libcutest.a
-Wl,-noall_load
-o
libcutest_double.dylib
-Wl,-undefined
-Wl,dynamic_lookup
-headerpad_max_install_names

ld: unknown options: -noall_load 
collect2: error: ld returned 1 exit status

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/optimizers/homebrew-cutest/issues
@wangqiuoe
Copy link

Did you solve the problem?

@gcanessag
Copy link
Author

Nope... I downloaded Docker and created a container. Did the calls and runs there and then exported the csv into the main drive. But to this day, no mac support unfortunately.

@jfowkes
Copy link

jfowkes commented Apr 25, 2024

@dpo this is a bug with the homebrew-cutest installer on MacOS with gfortran-13:

==> Installing optimizers/cutest/cutest --without-single
==> Patching
==> ./install_cutest < cutest.input
==> gfortran -fPIC -shared -Wl,-all_load libcutest.a -Wl,-noall_load -o libcutes
Last 15 lines from /Users/runner/Library/Logs/Homebrew/cutest/02.gfortran:

gfortran
-fPIC
-shared
-Wl,-all_load
libcutest.a
-Wl,-noall_load
-o
libcutest_double.dylib
-Wl,-undefined
-Wl,dynamic_lookup
-headerpad_max_install_names

ld: unknown options: -noall_load 
collect2: error: ld returned 1 exit status

The -noall_load option is deprecated and should be removed as per:
https://stackoverflow.com/questions/32983398/what-is-noall-load-flag-replacement-on-mac-os-x

@jfowkes
Copy link

jfowkes commented Jun 5, 2024

@amontoison can we get this fixed? homebrew-cutest is now broken due to this.

@amontoison
Copy link

You just need.to remove the flag -noall_load. It could be also easier to switch to the Meson build system.

@jfowkes
Copy link

jfowkes commented Jun 5, 2024

@amontoison right but that needs to be done here in the homebrew recipe:
https://github.com/optimizers/homebrew-cutest/blob/master/cutest.rb#L70

@amontoison
Copy link

I opened #66.

@amontoison
Copy link

You probably need to ping Dominique, I can't merge pull requests in this organization.

@dpo
Copy link
Member

dpo commented Jun 12, 2024

Thank you for the report, and sorry for the delay. Fixed in #72.

@dpo dpo closed this as completed Jun 12, 2024
@gcanessag
Copy link
Author

It installed with no issues now, appreciate the help thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants