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 failed #5

Open
miminashi opened this issue Sep 30, 2019 · 20 comments
Open

build failed #5

miminashi opened this issue Sep 30, 2019 · 20 comments
Assignees

Comments

@miminashi
Copy link

  • OS: macOS 10.14.6
  • Homwbrew: 2.1.11

this is the brew install log

$ brew install --HEAD tfcollins/homebrew-formulae/i-i-o-oscilloscope
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from ae08b15cb to e37d1d462.
Updated 5 taps (osx-cross/avr, heroku/brew, homebrew/core, homebrew/cask and jeffreywildman/virt-manager).
==> Updated Formulae
cocoapods ✔                                    heroku/brew/heroku
erlang ✔                                       hlint
go ✔                                           istioctl
jeffreywildman/virt-manager/osinfo-db ✔        jena
vim ✔                                          jenkins
youtube-dl ✔                                   jenkins-lts
afl-fuzz                                       jfrog-cli-go
ammonite-repl                                  libomp
angular-cli                                    librealsense
benthos                                        lightgbm
bettercap                                      maxwell
cake                                           micronaut
calicoctl                                      minio
cargo-completion                               osx-cross/avr/avr-gcc
chamber                                        paket
checkstyle                                     php-code-sniffer
cimg                                           presto
coinutils                                      rclone
convox                                         recon-ng
doctl                                          rom-tools
entr                                           serverless
eslint                                         skaffold
evince                                         sonobuoy
exim                                           terraformer
exploitdb                                      terragrunt
folly                                          tflint
fselect                                        topgrade
fwup                                           traefik
ginac                                          ucloud
git-secret                                     wabt
go-bindata                                     wiremock-standalone
godep                                          wskdeploy
goreleaser                                     wtf
gosu                                           yarn
hadoop                                         you-get
hebcal                                         zola
helmfile

==> Tapping tfcollins/formulae
Cloning into '/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 1), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Tapped 3 formulae (35 files, 28.9KB).
==> Installing i-i-o-oscilloscope from tfcollins/formulae
==> Installing dependencies for tfcollins/formulae/i-i-o-oscilloscope: glib, gtkdatabox, curl, jansson, szip, hdf5 and libmatio
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.62.0_1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/85/85744e48731ddb3aa62a4bdc0c1331571129d49f2a
######################################################################## 100.0%
==> Pouring glib-2.62.0_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.62.0_1: 430 files, 15.3MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: gtkdatabox
==> Downloading https://homebrew.bintray.com/bottles/gtkdatabox-0.9.3.0_2.mojave.bottle.1.tar
######################################################################## 100.0%
==> Pouring gtkdatabox-0.9.3.0_2.mojave.bottle.1.tar.gz
🍺  /usr/local/Cellar/gtkdatabox/0.9.3.0_2: 28 files, 395.3KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: curl
==> Downloading https://homebrew.bintray.com/bottles/curl-7.66.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/40/40b832d7e108407eb3fb1b378163f08ca5b58492bd
######################################################################## 100.0%
==> Pouring curl-7.66.0.mojave.bottle.tar.gz
==> Caveats
curl is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have curl first in your PATH run:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile

For compilers to find curl you may need to set:
  export LDFLAGS="-L/usr/local/opt/curl/lib"
  export CPPFLAGS="-I/usr/local/opt/curl/include"

For pkg-config to find curl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"


zsh completions have been installed to:
  /usr/local/opt/curl/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/curl/7.66.0: 456 files, 3.2MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: jansson
==> Downloading https://homebrew.bintray.com/bottles/jansson-2.12.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring jansson-2.12.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/jansson/2.12: 11 files, 157.5KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: szip
==> Downloading https://homebrew.bintray.com/bottles/szip-2.1.1_1.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring szip-2.1.1_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/szip/2.1.1_1: 11 files, 109.4KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: hdf5
==> Downloading https://homebrew.bintray.com/bottles/hdf5-1.10.5_1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/28/28ee1944f9b17a50bddbfbc1730d06373efaf2f188
######################################################################## 100.0%
==> Pouring hdf5-1.10.5_1.mojave.bottle.tar.gz
Warning: hdf5 dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
🍺  /usr/local/Cellar/hdf5/1.10.5_1: 256 files, 14.6MB
==> Installing tfcollins/formulae/i-i-o-oscilloscope dependency: libmatio
==> Downloading https://homebrew.bintray.com/bottles/libmatio-1.5.17.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/05/057efff5b22a8167a731ff318e4997bbe9d20b0199
######################################################################## 100.0%
==> Pouring libmatio-1.5.17.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/libmatio/1.5.17: 38 files, 875.2KB
==> Installing tfcollins/formulae/i-i-o-oscilloscope --HEAD
==> Cloning https://github.com/analogdevicesinc/iio-oscilloscope.git
Cloning into '/Users/miminashi/Library/Caches/Homebrew/i-i-o-oscilloscope--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> cmake ./CMakeLists.txt -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/i-i-o-oscilloscope/HEAD-
Last 15 lines from /Users/miminashi/Library/Logs/Homebrew/i-i-o-oscilloscope/01.HEAD-9159e07':
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
   used as include directory in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/plugins
LIBIIO_LIBRARIES
    linked by target "oscmain" in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x
    linked by target "osc" in directory /tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x

-- Configuring incomplete, errors occurred!
See also "/tmp/i-i-o-oscilloscope-20190930-48997-ec5r4x/CMakeFiles/CMakeOutput.log".

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

Did you install libad9361 and libiio? See more details in the mac section here: https://wiki.analog.com/sdrseminars

@tfcollins tfcollins self-assigned this Oct 2, 2019
@rgov rgov mentioned this issue Nov 22, 2020
@hasantahir
Copy link

I have been trying to install this using brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope on Big Sur 11.3.1 without any success. I have installed the packages libiio (version 0.17) and libad9361 as per the Wiki before the brew installation. However, brew tries to install libiio 0.21 which results in a make error, the last few lines of which are:

/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/lib/libpthread.tbd
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2

xcode-select --install does not fix this.

I would appreciate it if there are any pointers to fix this.

Thanks.

@tfcollins
Copy link
Owner

What version of libxml2 you do have installed?

xml2-config --version

@hasantahir
Copy link

Thanks for your response.
It is 2.9.10

@tfcollins
Copy link
Owner

tfcollins commented May 21, 2021

With macOS 10.15+ you can just use the taps to install everything. So I would remove the frameworks installed by the pkgs. They are in /Library/Frameworks.
If you continue to get this error you need to track down the cmake recipe or pkg-config file that is providing that flag.
I cannot repeat this on any of my systems.

@hasantahir
Copy link

Thanks I will give it a try and report back.

@jmichel3
Copy link

jmichel3 commented Jun 8, 2021

Like @hasantahir, I've also been trying to install using brew install --HEAD tfcollins/homebrew-formulae/iio-oscilloscope on MacOS Big Sur 11.4. My make error, however, relates to a type name in the gtkdatabox package that it can't find:

==> make install
Last 15 lines from /Users/jonathan.m/Library/Logs/Homebrew/iio-oscilloscope/02.make:
/usr/local/Cellar/gtkdatabox/1.0.0/include/gtkdatabox_graph.h:105:4: error: unknown type name 'GdkRGBA'
   GdkRGBA *gtk_databox_graph_get_rgba (GtkDataboxGraph * graph);
   ^
4 errors generated.
4 errors generated.
make[2]: *** [CMakeFiles/osc.dir/plugins/fir_filter.c.o] Error 1
make[2]: *** [CMakeFiles/osc.dir/dialogs.c.o] Error 1
12 errors generated.
4 errors generated.
make[2]: *** [CMakeFiles/osc.dir/osc.c.o] Error 1
make[2]: *** [CMakeFiles/osc.dir/plugins/dac_data_manager.c.o] Error 1
12 errors generated.
make[2]: *** [CMakeFiles/osc.dir/oscplot.c.o] Error 1
make[1]: *** [CMakeFiles/osc.dir/all] Error 2
make: *** [all] Error 2

I've tried removing and reinstalling the gtkdatabox package with no luck. Any suggestions on resolving this? Much appreciated.

@tfcollins
Copy link
Owner

@jmichel3 I've just hit this myself on Saturday. gtkdatabox updated and broke IIO-Scope. brew from what I can tell doesn't have a great way to pin old versions.

@jmichel3
Copy link

jmichel3 commented Jun 9, 2021

I see. Thank you for the quick reply. Would this gtkdatabox update affect installs and makes on other platforms?

@tfcollins
Copy link
Owner

We are looking into this in general across Windows/Linux/macOS.

@psiqueira
Copy link

I've tracked it down and this is the same problem that I have been having!

@tfcollins
Copy link
Owner

For a temporary workaround, I've added an old variant of the gtkdatabox recipe to try here: https://github.com/tfcollins/homebrew-formulae/tree/fix-gtk-upgrade

@mbound
Copy link

mbound commented Aug 31, 2021

Hi, has anyone find a solution to the build issue with the icu4c library not being found?
I keep getting the error below - I am on Catalina 10.15.7

[ 47%] Linking C shared library iio.framework/iio
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E cmake_link_script CMakeFiles/iio.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang  -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.21.0 -o iio.framework/Versions/0.21/iio -install_name @rpath/iio.framework/Versions/0.21/iio CMakeFiles/iio.dir/backend.c.o CMakeFiles/iio.dir/channel.c.o CMakeFiles/iio.dir/device.c.o CMakeFiles/iio.dir/context.c.o CMakeFiles/iio.dir/buffer.c.o CMakeFiles/iio.dir/utilities.c.o CMakeFiles/iio.dir/scan.c.o CMakeFiles/iio.dir/sort.c.o CMakeFiles/iio.dir/usb.c.o CMakeFiles/iio.dir/serial.c.o CMakeFiles/iio.dir/network.c.o CMakeFiles/iio.dir/dns_sd_bonjour.c.o CMakeFiles/iio.dir/dns_sd.c.o CMakeFiles/iio.dir/xml.c.o CMakeFiles/iio.dir/lock.c.o CMakeFiles/iio.dir/iiod-client.c.o  /usr/local/lib/libusb-1.0.dylib /usr/local/lib/libserialport.dylib -framework CoreServices -L/opt/local/lib -lxml2 /usr/local/lib/liblzma.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd -L/opt/local/lib -licui18n -licuuc -licudata -liconv -lm /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libpthread.tbd 
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2

@tfcollins
Copy link
Owner

@mbound have you run the suggested branch?

@mbound
Copy link

mbound commented Aug 31, 2021

@mbound have you run the suggested branch?

@tfcollins isn't that for the gtkdatabox issue?

I haven't tried that branch yet.

@ycjustin-msoc
Copy link

@tfcollins Hi I have same issue while installing the gtkdatabox-prev1
I first checkout to the "fix-gtk-upgrade" branch in "/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae"
Then install iio-oscilloscope, but get stuck with following msg:

==> Downloading https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1
##O#- #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "gtkdatabox-prev1_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1

https://ghcr.io/v2/homebrew/core seems no longer valid for homebrew.

the url in gtkdatabox-prev1.rb exists, it's able to download and make install manually. But just can't install successfully with brew install.
btw, I use "HOMEBREW_NO_AUTO_UPDATE=1" to prevent redirecting git branch to master, otherwise gtkdatabox-prev1 will disappear.

Do you have any suggestion?

Thanks

@tfcollins
Copy link
Owner

@ycjustin-msoc in your post you said you were able to install it manually. What remaining issue do you have?

@mbound
Copy link

mbound commented Sep 5, 2021

@tfcollins I've tested the fix-gtk-upgrade branch but I get the same error as before when installing libiio. I believe we are talking about two separate issues, the thread has been somewhat hijacked from the OP issue about libicu4c, which is the issue I am having.

==> cmake .. -DOSX_INSTALL_FRAMEWORKSDIR=/usr/local/Cellar/libiio/0.21/Frameworks -DOSX_PACKAGE=OFF
==> make
Last 15 lines from /Users/lucalodigiani/Library/Logs/Homebrew/libiio/02.make:
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/xml.c.o -MF CMakeFiles/iio.dir/xml.c.o.d -o CMakeFiles/iio.dir/xml.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/xml.c
[ 41%] Building C object CMakeFiles/iio.dir/lock.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/lock.c.o -MF CMakeFiles/iio.dir/lock.c.o.d -o CMakeFiles/iio.dir/lock.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/lock.c
[ 44%] Building C object CMakeFiles/iio.dir/iiod-client.c.o
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -DLIBIIO_EXPORTS=1 -D_DARWIN_C_SOURCE -D_POSIX_C_SOURCE=200809L -D__XSI_VISIBLE=500 -Diio_EXPORTS -I/usr/local/include/libusb-1.0 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21 -I/tmp/libiio-20210905-34475-obu0wj/libiio-0.21/build -I/opt/local/include -I/opt/local/include/libxml2 -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fPIC -std=c99 -MD -MT CMakeFiles/iio.dir/iiod-client.c.o -MF CMakeFiles/iio.dir/iiod-client.c.o.d -o CMakeFiles/iio.dir/iiod-client.c.o -c /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/iiod-client.c
Copying OS X content iio.framework/Versions/0.21/Headers/iio.h
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E copy /tmp/libiio-20210905-34475-obu0wj/libiio-0.21/iio.h iio.framework/Versions/0.21/Headers/iio.h
[ 47%] Linking C shared library iio.framework/iio
/usr/local/Cellar/cmake/3.21.2/bin/cmake -E cmake_link_script CMakeFiles/iio.dir/link.txt --verbose=1
/usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang  -Wall -Wextra -pedantic -Wno-unused-parameter -O3 -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -dynamiclib -Wl,-headerpad_max_install_names -current_version 0.21.0 -o iio.framework/Versions/0.21/iio -install_name @rpath/iio.framework/Versions/0.21/iio CMakeFiles/iio.dir/backend.c.o CMakeFiles/iio.dir/channel.c.o CMakeFiles/iio.dir/device.c.o CMakeFiles/iio.dir/context.c.o CMakeFiles/iio.dir/buffer.c.o CMakeFiles/iio.dir/utilities.c.o CMakeFiles/iio.dir/scan.c.o CMakeFiles/iio.dir/sort.c.o CMakeFiles/iio.dir/usb.c.o CMakeFiles/iio.dir/serial.c.o CMakeFiles/iio.dir/network.c.o CMakeFiles/iio.dir/dns_sd_bonjour.c.o CMakeFiles/iio.dir/dns_sd.c.o CMakeFiles/iio.dir/xml.c.o CMakeFiles/iio.dir/lock.c.o CMakeFiles/iio.dir/iiod-client.c.o  /usr/local/lib/libusb-1.0.dylib /usr/local/lib/libserialport.dylib -framework CoreServices -L/opt/local/lib -lxml2 /usr/local/lib/liblzma.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libz.tbd -L/opt/local/lib -licui18n -licuuc -licudata -liconv -lm /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libpthread.tbd 
ld: library not found for -licui18n
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [iio.framework/Versions/0.21/iio] Error 1
make[1]: *** [CMakeFiles/iio.dir/all] Error 2
make: *** [all] Error 2

I don't think it's related to the gtkdatabox issue reported later in the thread?

@shreejithshanker
Copy link

@tfcollins Hi I have same issue while installing the gtkdatabox-prev1 I first checkout to the "fix-gtk-upgrade" branch in "/usr/local/Homebrew/Library/Taps/tfcollins/homebrew-formulae" Then install iio-oscilloscope, but get stuck with following msg:

==> Downloading https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1 ##O#- # curl: (22) The requested URL returned error: 404 Error: Failed to download resource "gtkdatabox-prev1_bottle_manifest" Download failed: https://ghcr.io/v2/homebrew/core/gtkdatabox-prev1/manifests/0.9.3.1_1

https://ghcr.io/v2/homebrew/core seems no longer valid for homebrew.

the url in gtkdatabox-prev1.rb exists, it's able to download and make install manually. But just can't install successfully with brew install. btw, I use "HOMEBREW_NO_AUTO_UPDATE=1" to prevent redirecting git branch to master, otherwise gtkdatabox-prev1 will disappear.

Do you have any suggestion?

Thanks

How did you get around this one? I have [email protected] installed manually, but brew still breaks at this phase - it does not pick up the installed gtkdatabox.

@tfcollins
Copy link
Owner

@shreejithshanker can you open a new issue and provide more detail on your setup? Primarily what macOS version and brew version.

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

8 participants