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

CUTEst installation issue, file not found #82

Closed
frankecurtis opened this issue Jun 24, 2024 · 8 comments
Closed

CUTEst installation issue, file not found #82

frankecurtis opened this issue Jun 24, 2024 · 8 comments

Comments

@frankecurtis
Copy link

frankecurtis commented Jun 24, 2024

I'm having issues installing cutest.

Macbook Pro running macOS 14.5 (23F79). I have updated Xcode 15.4 (15F31d) command line tools. I'm using Homebrew 4.3.7. The command

brew install cutest --without-single

leads to the following error:

==> Fetching optimizers/cutest/cutest
==> Downloading https://github.com/ralna/CUTEst/archive/refs/tags/v2.1.0.tar.gz
Already downloaded: /Users/frankecurtis/Library/Caches/Homebrew/downloads/7338c3fd131e4e9e4b5e9a3624ed8242d33e6f02d3a1aa51ae7ddb1371469ffd--CUTEst-2.1.0.tar.gz
==> Installing cutest from optimizers/cutest
==> Patching
==> ./install_cutest < cutest.input
==> gfortran -fPIC -shared -Wl,-all_load libcutest.a -o libcutest_double.dylib -Wl,-undefined -Wl,dynamic_lookup -headerpad_max_install_names
Last 15 lines from /Users/frankecurtis/Library/Logs/Homebrew/cutest/02.gfortran:

gfortran
-fPIC
-shared
-Wl,-all_load
libcutest.a

-o
libcutest_double.dylib
-Wl,-undefined
-Wl,dynamic_lookup
-headerpad_max_install_names

ld: file not found:
collect2: error: ld returned 1 exit status

Not sure if it's something to do with my configuration or cutest itself. Note: I'm using the new default shell (zsh), although I'm not sure if that matters here. Thanks!

@jfowkes
Copy link

jfowkes commented Jul 4, 2024

I can confirm that I'm also seeing this error now. Very strange as it was working fine a few weeks ago when this homebrew formula was updated, so no idea what has suddenly changed to make it fail in this way. Possibly the new macOS linker?

@dpo
Copy link
Member

dpo commented Jul 6, 2024

Hi @frankecurtis. Sorry for the delay. I just tried on my Mac, and it worked. I’m also using macOS 14.5 with the latest command-line tools. Could you share the contents of /Users/frankecurtis/Library/Logs/Homebrew/cutest/02.gfortran (maybe in the form of a gist)? Does brew doctor report anything? I’m also using zsh, but I don’t think it’s relevant here.

@frankecurtis
Copy link
Author

Thanks, @dpo . brew doctor doesn't report any issues. ("Your system is ready to brew.") Here is the log you asked about. Do you see any red flags?
cutest.txt

@dpo
Copy link
Member

dpo commented Jul 12, 2024

There’s not much in the log file, actually. Would you by any chance have environment variables that point to another CUTEst installation? If not, I’ll simply rebuild the bottles to see if that solves the issue. I’ll open a PR now.

dpo added a commit that referenced this issue Jul 12, 2024
Try to solve issue described in #82.
@dpo dpo mentioned this issue Jul 12, 2024
github-actions bot pushed a commit that referenced this issue Jul 12, 2024
Try to solve issue described in #82.

Closes #83.

Signed-off-by: Dominique <[email protected]>
@dpo
Copy link
Member

dpo commented Jul 12, 2024

@frankecurtis @jfowkes Please give it another try and let me know if the new bottles fix the issue.

@jfowkes
Copy link

jfowkes commented Jul 15, 2024

Hi @dpo, still failing for me unfortunately. It looks like there's no bottle for brew install cutest --without-single and it's trying to build from source:

==> Fetching optimizers/cutest/cutest
==> Downloading https://github.com/ralna/CUTEst/archive/refs/tags/v2.1.0.tar.gz
==> Downloading from https://codeload.github.com/ralna/CUTEst/tar.gz/refs/tags/v2.1.0==> Installing cutest from optimizers/cutest
==> Installing dependencies for optimizers/cutest/cutest: optimizers/cutest/archdefs, optimizers/cutest/gsl@1 and optimizers/cutest/sifdecode
==> Installing optimizers/cutest/cutest dependency: optimizers/cutest/archdefs
==> Pouring archdefs-2.2.8.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/archdefs/2.2.8: 81 files, 84.8KB
==> Installing optimizers/cutest/cutest dependency: optimizers/cutest/gsl@1
==> Pouring gsl
🍺  /opt/homebrew/Cellar/gsl@1/1.16_3: 249 files, 7.4MB
==> Installing optimizers/cutest/cutest dependency: optimizers/cutest/sifdecode
==> Pouring sifdecode-2.4.2.arm64_sonoma.bottle.tar.gz
🍺  /opt/homebrew/Cellar/sifdecode/2.4.2: 564 files, 4.8MB
==> Installing optimizers/cutest/cutest --without-single
==> Patching
==> ./install_cutest < cutest.input
==> gfortran -fPIC -shared -Wl,-all_load libcutest.a  -o libcutest_double.dylib 
Last 15 lines from /Users/runner/Library/Logs/Homebrew/cutest/02.gfortran:
gfortran
-fPIC
-shared
-Wl,-all_load
libcutest.a
-o
libcutest_double.dylib
-Wl,-undefined
-Wl,dynamic_lookup
-headerpad_max_install_names
ld: file not found: 
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
These open issues may also help:
CUTEst installation issue, file not found https://github.com/optimizers/homebrew-cutest/issues/82
Error: Process completed with exit code 1.

I would still expect the source build to succeed through...

@dpo
Copy link
Member

dpo commented Jul 17, 2024

There’s no botte because it’s a non-default build, so it’s expected that it would build from source. I’ll try again when I’m at my computer.

@dpo
Copy link
Member

dpo commented Jul 17, 2024

Should be fixed now. 🤞

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.

3 participants