lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
980 stars 388 forks source link

make fail #317

Closed chiehpower closed 4 years ago

chiehpower commented 4 years ago

Hi all,

I downloaded the latest version (1.4.0), and I can successfully cmake step. However, I got error on make step. Here is my error message.

[ 83%] Built target test-c-eventlog_test
[ 90%] Built target lcm-test-types-cpp.sources
[ 92%] Built target test-cpp-memq_test
[ 94%] Built target test-cpp-client
[ 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
      (cannot infer type-variable(s) T#1
        (varargs mismatch; 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
      (cannot infer type-variable(s) T#1
        (varargs mismatch; 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
org/hamcrest/CoreMatchers.java:234: warning: [dep-ann] deprecated item is not annotated with @Deprecated
  public static <T> org.hamcrest.Matcher<T> is(java.lang.Class<T> type) {
                                            ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
1 warning
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:1705: 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:162: recipe for target 'all' failed
make: *** [all] Error 2
build ›› pwd                                                                   
/home/chieh/Downloads/lcm-1.4.0/build

Is there any idea for this?

Thank you

chiehpower commented 4 years ago

I use the java-1.8.0-openjdk-amd64 to solve the problem!

Command

sudo update-java-alternatives -s java-1.8.0-openjdk-amd64 
make 
sudo make install
sbdyl commented 6 months ago

Hi all,

I downloaded the version (1.4.0), but still got error on make step. Here is my error message. [ 0%] Built target lcm_use_file [ 7%] Built target lcm [ 14%] Built target lcm-static [ 21%] Built target lcm-gen [ 22%] Built target lcm-logplayer [ 24%] Built target lcm-logger [ 25%] Built target lcm-sink [ 27%] Built target lcm-tester [ 28%] Built target lcm-logfilter [ 29%] Built target lcm-source [ 31%] Built target lcm-buftest-sender [ 32%] Built target lcm-buftest-receiver [ 33%] Built target lcm-example [ 33%] Built target lcm-logplayer-gui-alias [ 34%] Built target jchart2d [ 36%] Built target lcm-java [ 37%] Built target lcm-python-init [ 40%] Built target lcm-python [ 45%] Built target lcm-lua [ 46%] Built target gtest [ 47%] Built target gtest_main [ 54%] Built target lcm-test-types-c.sources [ 67%] Built target lcm-test-types-c [ 75%] Built target lcm-test-types-java [ 77%] Built target test-c-server [ 79%] Built target test-c-client [ 81%] Built target test-c-eventlog_test [ 83%] Built target test-c-udpm_test [ 84%] Built target test-c-memq_test [ 90%] Built target lcm-test-types-cpp.sources [ 92%] Built target test-cpp-memq_test [ 94%] Built target test-cpp-client [ 96%] Built target hamcrest-core [ 98%] Built target junit [ 99%] Building Java objects for lcm-test-java.jar lcmtest/LcmTestClient.java:12: 错误: 无法访问primitives_t import lcmtest.primitives_t; ^ 错误的类文件: /home/xian/libex/lcm/build/test/types/lcm-test-types.jar(lcmtest/primitives_t.class) 类文件具有错误的版本 55.0, 应为 52.0 请删除该文件或确保该文件位于正确的类路径子目录中。 make[2]: *** [test/java/CMakeFiles/lcm-test-java.dir/build.make:74:test/java/CMakeFiles/lcm-test-java.dir/java_compiled_lcm-test-java] 错误 1 make[1]: *** [CMakeFiles/Makefile2:1661:test/java/CMakeFiles/lcm-test-java.dir/all] 错误 2 make: *** [Makefile:163:all] 错误 2 Is there any idea for this?

Thank you