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

new openjdk package on ubuntu 16.04 #192

Closed
mauricefallon opened this issue Aug 23, 2017 · 4 comments
Closed

new openjdk package on ubuntu 16.04 #192

mauricefallon opened this issue Aug 23, 2017 · 4 comments

Comments

@mauricefallon
Copy link

Regarding the build instructions:
http://lcm-proj.github.io/build_instructions.html

openjdk-6-jdk is no longer available as of ubuntu 16.04. openjdk-8-jdk seems to work just fine.

Could you update the website to mention that?

thanks!

@dehann
Copy link
Contributor

dehann commented Sep 20, 2017

I'm using openjdk-8-jdk too. I also had to checkout v1.3-lts to get bootstrap.sh and configure.sh files which are not currently in master. Should probably add that to the build instructions too.

Thanks

@dehann
Copy link
Contributor

dehann commented Sep 20, 2017

Hi, I'm trying to compile master (both 9e53469, and 61c9e34) on 16.04 using either openjdk-8 or openjdk-7. They all produce the same issue in the hamcrest dependency. Has this issue been seen before?

...

Scanning dependencies of target test-cpp-memq_test
[ 92%] Building CXX object test/cpp/CMakeFiles/test-cpp-memq_test.dir/memq_test.cpp.o
[ 93%] Building CXX object test/cpp/CMakeFiles/test-cpp-memq_test.dir/common.cpp.o
[ 94%] Linking CXX executable test-cpp-memq_test
[ 94%] Built target test-cpp-memq_test
[ 95%] Building Java objects for hamcrest-core.jar
org/hamcrest/core/AllOf.java:60: error: no suitable method found for allOf(List<Matcher<? super T#1>>)
        return allOf(Arrays.asList(matchers));
               ^
    method AllOf.<T#2>allOf(Iterable<Matcher<? super T#2>>) is not applicable
      (inference variable T#3 has incompatible bounds
        equality constraints: Matcher<? super CAP#1>
        lower bounds: Matcher<? super T#1>)
    method AllOf.<T#1>allOf(Matcher<? super T#1>...) is not applicable
      (no instance(s) of type variable(s) T#3 exist so that List<T#3> conforms to Matcher<? super T#1>)
    method AllOf.<T#4>allOf(Matcher<? super T#4>,Matcher<? super T#4>) is not applicable
      (cannot infer type-variable(s) T#4
        (actual and formal argument lists differ in length))
    method AllOf.<T#5>allOf(Matcher<? super T#5>,Matcher<? super T#5>,Matcher<? super T#5>) is not applicable
      (cannot infer type-variable(s) T#5
        (actual and formal argument lists differ in length))
    method AllOf.<T#6>allOf(Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>) is not applicable
      (cannot infer type-variable(s) T#6
        (actual and formal argument lists differ in length))
    method AllOf.<T#7>allOf(Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>) is not applicable
      (cannot infer type-variable(s) T#7
        (actual and formal argument lists differ in length))
    method AllOf.<T#8>allOf(Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>) is not applicable
      (cannot infer type-variable(s) T#8
        (actual and formal argument lists differ in length))
  where T#1,T#2,T#3,T#4,T#5,T#6,T#7,T#8 are type-variables:
    T#1 extends Object declared in method <T#1>allOf(Matcher<? super T#1>...)
    T#2 extends Object declared in method <T#2>allOf(Iterable<Matcher<? super T#2>>)
    T#3 extends Object declared in method <T#3>asList(T#3...)
    T#4 extends Object declared in method <T#4>allOf(Matcher<? super T#4>,Matcher<? super T#4>)
    T#5 extends Object declared in method <T#5>allOf(Matcher<? super T#5>,Matcher<? super T#5>,Matcher<? super T#5>)
    T#6 extends Object declared in method <T#6>allOf(Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>)
    T#7 extends Object declared in method <T#7>allOf(Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>)
    T#8 extends Object declared in method <T#8>allOf(Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>)
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Object super: T#1 from capture of ? super T#1
org/hamcrest/core/AnyOf.java:50: error: no suitable method found for anyOf(List<Matcher<? super T#1>>)
        return anyOf(Arrays.asList(matchers));
               ^
    method AnyOf.<T#2>anyOf(Iterable<Matcher<? super T#2>>) is not applicable
      (inference variable T#3 has incompatible bounds
        equality constraints: Matcher<? super CAP#1>
        lower bounds: Matcher<? super T#1>)
    method AnyOf.<T#1>anyOf(Matcher<? super T#1>...) is not applicable
      (no instance(s) of type variable(s) T#3 exist so that List<T#3> conforms to Matcher<? super T#1>)
    method AnyOf.<T#4>anyOf(Matcher<T#4>,Matcher<? super T#4>) is not applicable
      (cannot infer type-variable(s) T#4
        (actual and formal argument lists differ in length))
    method AnyOf.<T#5>anyOf(Matcher<T#5>,Matcher<? super T#5>,Matcher<? super T#5>) is not applicable
      (cannot infer type-variable(s) T#5
        (actual and formal argument lists differ in length))
    method AnyOf.<T#6>anyOf(Matcher<T#6>,Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>) is not applicable
      (cannot infer type-variable(s) T#6
        (actual and formal argument lists differ in length))
    method AnyOf.<T#7>anyOf(Matcher<T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>) is not applicable
      (cannot infer type-variable(s) T#7
        (actual and formal argument lists differ in length))
    method AnyOf.<T#8>anyOf(Matcher<T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>) is not applicable
      (cannot infer type-variable(s) T#8
        (actual and formal argument lists differ in length))
  where T#1,T#2,T#3,T#4,T#5,T#6,T#7,T#8 are type-variables:
    T#1 extends Object declared in method <T#1>anyOf(Matcher<? super T#1>...)
    T#2 extends Object declared in method <T#2>anyOf(Iterable<Matcher<? super T#2>>)
    T#3 extends Object declared in method <T#3>asList(T#3...)
    T#4 extends Object declared in method <T#4>anyOf(Matcher<T#4>,Matcher<? super T#4>)
    T#5 extends Object declared in method <T#5>anyOf(Matcher<T#5>,Matcher<? super T#5>,Matcher<? super T#5>)
    T#6 extends Object declared in method <T#6>anyOf(Matcher<T#6>,Matcher<? super T#6>,Matcher<? super T#6>,Matcher<? super T#6>)
    T#7 extends Object declared in method <T#7>anyOf(Matcher<T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>,Matcher<? super T#7>)
    T#8 extends Object declared in method <T#8>anyOf(Matcher<T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>,Matcher<? super T#8>)
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Object super: T#1 from capture of ? super T#1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
test/java/hamcrest-core-1.3/CMakeFiles/hamcrest-core.dir/build.make:106: recipe for target 'test/java/hamcrest-core-1.3/CMakeFiles/hamcrest-core.dir/java_compiled_hamcrest-core' failed
make[2]: *** [test/java/hamcrest-core-1.3/CMakeFiles/hamcrest-core.dir/java_compiled_hamcrest-core] Error 1
CMakeFiles/Makefile2:1879: recipe for target 'test/java/hamcrest-core-1.3/CMakeFiles/hamcrest-core.dir/all' failed
make[1]: *** [test/java/hamcrest-core-1.3/CMakeFiles/hamcrest-core.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

@dehann
Copy link
Contributor

dehann commented Sep 21, 2017

My issue seems to be related to a difference in java-8-oracle (which works) and openjdk-7/8/9. Thanks @rdeits.

@ashuang
Copy link
Member

ashuang commented Oct 30, 2017

fixed in master. online docs will be updated with the next release. thanks for the report, and sorry it took so long to fix

mojasp pushed a commit to Barkhausen-Institut/lcm-sec that referenced this issue May 23, 2022
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

3 participants