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

Build fails with latest vips library #450

Open
joeyave opened this issue Jun 14, 2023 · 8 comments
Open

Build fails with latest vips library #450

joeyave opened this issue Jun 14, 2023 · 8 comments

Comments

@joeyave
Copy link

joeyave commented Jun 14, 2023

/opt/homebrew/Cellar/go/1.20.3/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
ld: warning: directory not found for option '-L/opt/homebrew/Cellar/vips/8.14.1_1/lib'
ld: warning: directory not found for option '-L/opt/homebrew/Cellar/glib/2.74.6/lib'
ld: library not found for -lvips
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@zenyui
Copy link

zenyui commented Aug 17, 2023

@joeyave just experienced the same. do you have a fix?

@joeyave
Copy link
Author

joeyave commented Aug 18, 2023

@joeyave just experienced the same. do you have a fix?

Nope. Only downgrading vips.

@zenyui
Copy link

zenyui commented Aug 18, 2023

@joeyave were you able to downgrade with homebrew or did you build from source?

@seopei
Copy link

seopei commented Sep 6, 2023

@joeyave how exactly did you manage to downgrade and to which version?

@shu-pf
Copy link

shu-pf commented Sep 7, 2023

I solved it this way.

  1. uninstall vips

     $ brew uninstall vips
    
  2. Download past installation scripts.
    Create the file vips.rb by duplicating the following.
    ver. 8.14.4

  3. Installation

    $ brew install -s vips.rb
    

@seopei
Copy link

seopei commented Sep 7, 2023

@shu-pf thanks! Downgrading did not do the trick for me. It was a caching problem. I had to run go clean -cache and then it worked

@siddharthg
Copy link

@seopei was facing the same issue! go clean -cache helped.

@bartzz
Copy link

bartzz commented Oct 31, 2023

/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: ignoring file /opt/homebrew/Cellar/glib/2.78.1/lib/libgobject-2.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/glib/2.78.1/lib/libgio-2.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/opt/gettext/lib/libintl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/glib/2.78.1/lib/libglib-2.0.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /opt/homebrew/Cellar/vips/8.14.5_1/lib/libvips.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
  "_g_free", referenced from:

I'm getting those errors on 8.14.5 go v.1.21.1

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

No branches or pull requests

6 participants