bimg icon indicating copy to clipboard operation
bimg copied to clipboard

Build fails with latest vips library

Open joeyave opened this issue 1 year ago • 8 comments

/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)

joeyave avatar Jun 14 '23 11:06 joeyave

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

zenyui avatar Aug 17 '23 17:08 zenyui

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

Nope. Only downgrading vips.

joeyave avatar Aug 18 '23 13:08 joeyave

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

zenyui avatar Aug 18 '23 13:08 zenyui

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

seopei avatar Sep 06 '23 15:09 seopei

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
    

shu-pf avatar Sep 07 '23 04:09 shu-pf

@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

seopei avatar Sep 07 '23 14:09 seopei

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

siddharthg avatar Sep 11 '23 07:09 siddharthg

/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

bartzz avatar Oct 31 '23 10:10 bartzz