dreal / homebrew-dreal

homebrew tap for dReal
0 stars 0 forks source link

Too many symbolic links when building Dreal through homebrew #4

Closed rdeits closed 6 years ago

rdeits commented 6 years ago

I'm trying to run the Drake install_prereqs script on OSX, but I'm running into issues with the dreal installation through homebrew. Can you help me out?

Running brew install dreal gives:

==> Installing dreal from dreal/dreal
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading https://github.com/dreal/dreal4/archive/4.17.12.3.tar.gz
Already downloaded: /Users/rdeits/Library/Caches/Homebrew/dreal-4.17.12.3.tar.gz
==> bazel build --compilation_mode=opt //:archive
Last 15 lines from /Users/rdeits/Library/Logs/Homebrew/dreal/01.bazel:
//:archive

WARNING: ignoring _JAVA_OPTIONS in environment.
.............
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //:archive (3 packages loaded)
Analyzing: target //:archive (28 packages loaded)
ERROR: /private/tmp/dreal-20180117-3777-1g6dpc1/dreal4-4.17.12.3/dreal/util/BUILD:85:1: no such package '@ibex//': error globbing [include/**]: /private/var/tmp/_bazel_rdeits/4a7526f7ba71fd9d78dce8928e67de17/external/ibex/include/_usr_local_include/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2 (Too many levels of symbolic links) and referenced by '//dreal/util:ibex_converter'
ERROR: Analysis of target '//:archive' failed; build aborted: no such package '@ibex//': error globbing [include/**]: /private/var/tmp/_bazel_rdeits/4a7526f7ba71fd9d78dce8928e67de17/external/ibex/include/_usr_local_include/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2/gphoto2 (Too many levels of symbolic links)
INFO: Elapsed time: 7.810s
FAILED: Build did NOT complete successfully (32 packages loaded)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/dreal/homebrew-dreal/issues

This is on OSX 10.11.6 and Homebrew 1.4.3-51-g3e8b057.

soonho-tri commented 6 years ago

This is strange. I'll take a look.

In the meantime, I'll upload a pre-built package (a.k.a. bottle) for OSX-10.11 so that you can avoid this problem.

rdeits commented 6 years ago

Okay, thank you!

soonho-tri commented 6 years ago

It's updated. Could you try the following and let me know how it works?

brew update
brew install dreal/dreal/dreal    # Install dreal from dreal/dreal tap
dreal -h  # should give you usage and options.
rdeits commented 6 years ago

Yes, that works, thank you!

soonho-tri commented 6 years ago

I think there is something wrong with gphoto2 package. Could you confirm that there is actually a cycle /usr/local/include/gphoto2/gphoto2/....? For instance, please try:

ls -l /usr/local/include/gphoto2/gphoto2
ls -l /usr/local/include/gphoto2/gphoto2/gphoto2/gphoto2
rdeits commented 6 years ago

Yes, indeed, good catch.

➜ ls -la gphoto2
lrwxr-xr-x  1 rdeits  admin  1 Oct 14 08:23 gphoto2 -> .
soonho-tri commented 6 years ago

Thanks for the confirmation. I'll try to fix this on my side but it could be quite difficult. Please consider reporting this to upstream (at homebrew) if you want.

soonho-tri commented 6 years ago

Closing this.