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

Error building buckaroo in Mac #112

Closed
ogranada opened this issue Aug 6, 2017 · 2 comments
Closed

Error building buckaroo in Mac #112

ogranada opened this issue Aug 6, 2017 · 2 comments

Comments

@ogranada
Copy link

ogranada commented Aug 6, 2017

I was trying to install buckaroo in my Mac (Sierra) using brew and I got next error.

==> Installing buckaroo@1.2.1 from loopperfect/lp
==> Using the sandbox
/usr/bin/sandbox-exec -f /tmp/homebrew20170805-53405-k9wsxt.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/loopperfect/homebrew-lp/buckaroo@1.2.1.rb --verbose
==> Cloning https://github.com/LoopPerfect/buckaroo.git
Updating /Users/ogranada/Library/Caches/Homebrew/buckaroo@1.2.1--git
git config remote.origin.url https://github.com/LoopPerfect/buckaroo.git
git config remote.origin.fetch +refs/tags/v1.2.1:refs/tags/v1.2.1
==> Checking out tag v1.2.1
git checkout -f v1.2.1 --
HEAD is now at 3533be2... bumping version to 1.2.1
git reset --hard v1.2.1
HEAD is now at 3533be2 bumping version to 1.2.1
==> buck build :buckaroo-cli
Not using buckd because watchman isn't installed.
[-] PARSING BUCK FILES...FINISHED 0.2s [100%]
BUILT 1/62 JOBS 6.2s //:reactive-streams-source-jar
BUILT 2/62 JOBS 6.1s //:slf4j-api-binary-jar
BUILT 3/62 JOBS 0.3s //:jimfs-source-jar
BUILT 4/62 JOBS 0.1s //:reactive-streams-binary-jar
BUILT 5/62 JOBS 6.4s //:jsch-binary-jar
BUILT 6/62 JOBS 0.1s //:javatuples-source-jar
BUILT 7/62 JOBS 6.2s //:okio-source-jar
BUILT 8/62 JOBS 0.5s //:jimfs-binary-jar
BUILT 9/62 JOBS 0.1s //:javatuples-binary-jar
BUILT 10/62 JOBS 0.5s //:okio-binary-jar
BUILT 11/62 JOBS 0.2s //:mustache-binary-jar
BUILT 12/62 JOBS 0.6s //:mustache-source-jar
BUILT 13/62 JOBS 0.5s //:gson-source-jar
BUILT 14/62 JOBS 0.7s //:gson-binary-jar
BUILT 15/62 JOBS 0.6s //:okhttp-source-jar
BUILT 16/62 JOBS 1.2s //:okhttp-binary-jar
BUILT 17/62 JOBS 1.7s //:guava-source-jar
BUILT 18/62 JOBS 0.3s //:slf4j-nop-binary-jar
BUILT 19/62 JOBS 0.5s //:jparsec-source-jar
BUILT 20/62 JOBS 1.0s //:jparsec-binary-jar
BUILT 21/62 JOBS 0.2s //:slf4j-nop-source-jar
BUILT 22/62 JOBS 0.3s //:jansi-source-jar
BUILT 23/62 JOBS 0.5s //:jansi-binary-jar
BUILT 24/62 JOBS 0.5s //:jsch-source-jar
BUILT 25/62 JOBS 3.5s //:guava-binary-jar
BUILT 26/62 JOBS 0.5s //:slf4j-api-source-jar
BUILT 27/62 JOBS 0.3s //:slf4j-api#class-abi
BUILT 28/62 JOBS 0.0s //:reactive-streams#class-abi
BUILT 29/62 JOBS 0.2s //:jsch#class-abi
BUILT 30/62 JOBS 0.2s //:jimfs#class-abi
BUILT 31/62 JOBS 0.0s //:okio
BUILT 32/62 JOBS 0.1s //:javatuples#class-abi
BUILT 33/62 JOBS 0.1s //:mustache#class-abi
BUILT 34/62 JOBS 0.1s //:okio#class-abi
BUILT 35/62 JOBS 0.1s //:mustache
BUILT 36/62 JOBS 0.2s //:jimfs
BUILT 37/62 JOBS 0.2s //:reactive-streams
BUILT 38/62 JOBS 0.2s //:okhttp#class-abi
BUILT 39/62 JOBS 0.0s //:javatuples
BUILT 40/62 JOBS 0.0s //:slf4j-nop#class-abi
BUILT 41/62 JOBS 0.2s //:gson
BUILT 42/62 JOBS 0.2s //:okhttp
BUILT 43/62 JOBS 0.0s //:slf4j-nop
BUILT 44/62 JOBS 0.2s //:gson#class-abi
BUILT 45/62 JOBS 3.6s //:rxjava-binary-jar
BUILT 46/62 JOBS 0.1s //:jansi
BUILT 47/62 JOBS 0.3s //:jparsec#class-abi
BUILT 48/62 JOBS 0.1s //:jansi#class-abi
BUILT 49/62 JOBS 0.3s //:jparsec
BUILT 50/62 JOBS 0.2s //:jsch
BUILT 51/62 JOBS 0.1s //:slf4j-api
BUILT 52/62 JOBS 3.5s //:jgit-jar
BUILT 53/62 JOBS 3.5s //:rxjava-source-jar
BUILT 54/62 JOBS 1.0s //:guava
BUILT 55/62 JOBS 0.8s //:jgit-jar-fixed
BUILT 56/62 JOBS 2.0s //:guava#class-abi
BUILT 57/62 JOBS 1.7s //:rxjava#class-abi
BUILT 58/62 JOBS 0.9s //:rxjava
BUILT 59/62 JOBS 0.8s //:jgit
BUILT 60/62 JOBS 1.0s //:jgit#class-abi
BUILD FAILED: //:buckaroo failed with exit code 1:
javac
stderr: /private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/tasks/CommonTasks.java:58: error: unreported exception L; must be caught or declared to be thrown
            Either.orThrow(Serializers.parseProject(EvenMoreFiles.read(path))))
                          ^
/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/tasks/CommonTasks.java:69: error: unreported exception L; must be caught or declared to be thrown
            Either.orThrow(Serializers.parseDependencyLocks(EvenMoreFiles.read(path))))
                          ^
/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/tasks/CommonTasks.java:156: error: unreported exception L; must be caught or declared to be thrown
            Either.orThrow(Serializers.parseConfig(EvenMoreFiles.read(path))))
                          ^
/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/tasks/CommonTasks.java:189: error: unreported exception L; must be caught or declared to be thrown
                return Either.orThrow(Serializers.parseConfig(defaulConfigString));
                                     ^
/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/tasks/CommonTasks.java:191: error: unreported exception L; must be caught or declared to be thrown
            return Either.orThrow(Serializers.parseConfig(EvenMoreFiles.read(configFilePath)));
                                 ^
/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/MoreObservables.java:-1: note: Some input files use unchecked or unsafe operations.

/private/tmp/buckaroo@1.2.1-20170805-53407-rvt9ms/src/main/java/com/loopperfect/buckaroo/MoreObservables.java:-1: note: Recompile with -Xlint:unchecked for details.

Errors: 5. Warnings: 0.

[-] BUILDING...FINISHED 29.8s [100%] (61/61 JOBS, 61 UPDATED, 61 [100.0%] CACHE MISS)
[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)

==> Formula
Tap: loopperfect/lp
Path: /usr/local/Homebrew/Library/Taps/loopperfect/homebrew-lp/buckaroo@1.2.1.rb
==> Configuration
HOMEBREW_VERSION: 1.3.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 05e9086355607e9103030b1f0e3f186e674ce063
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 814f73407c97e2e272e2b1721cbed8d4ec9a603a
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit ivybridge
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.11.0 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_60, 1.6.0_65-b14-468
macOS: 10.12.6-x86_64
Xcode: 8.3.3
CLT: 8.3.2.0.1.1492020469
X11: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
CFLAGS: -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include/darwin
CXXFLAGS: -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/include/darwin
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.12
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin:/usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/ant/bin:/usr/local/opt/buck/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: loopperfect/lp/buckaroo@1.2.1 1.2.1 did not build
Logs:
     /Users/ogranada/Library/Logs/Homebrew/buckaroo@1.2.1/00.options.out
     /Users/ogranada/Library/Logs/Homebrew/buckaroo@1.2.1/01.buck
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/loopperfect/homebrew-lp/issues
@nikhedonia
Copy link
Collaborator

I don't have a mac around, but i think that updating your JDK version would fix this issue.
@njlr what do you think?

@ogranada
Copy link
Author

ogranada commented Aug 7, 2017

I fix it, Not is about JDK version and Java home, my Java version is 1.8.0_144 but start working when I executed:

export JAVA_HOME="`/usr/libexec/java_home`"

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

2 participants