You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ryan Yacyshyn <ry...@gmail.com> on 2017/05/01 04:34:09 UTC

Building Solr greater than 6.2.1

Hi all,

I'm trying to build Solr 6.5.1 but it's is failing. I'm able to
successfully build 6.2.1. I've tried 6.4.0, 6.4.2, and 6.5.1 but the build
fails. I'm not sure what the issue could be. I'm running `ant server` in
the solr dir and this is where it fails:

ivy-configure:
[ivy:configure] :: loading settings :: file =
/Users/rye/lucene-solr2/lucene/top-level-ivy-settings.xml

resolve:

common.init:

compile-lucene-core:

init:

-clover.disable:

-clover.load:

-clover.classpath:

-clover.setup:

clover:

compile-core:

-clover.disable:

-clover.load:

-clover.classpath:

-clover.setup:

clover:

common.compile-core:
    [mkdir] Created dir:
/Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
    [javac] Compiling 186 source files to
/Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
    [javac]
/Users/rye/lucene-solr2/lucene/test-framework/src/java/org/apache/lucene/util/RamUsageTester.java:164:
error: no suitable method found for
collect(Collector<Object,CAP#1,List<Object>>)
    [javac]                   .collect(Collectors.toList());
    [javac]                   ^
    [javac]     method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,?
super CAP#2>,BiConsumer<R#1,R#1>) is not applicable
    [javac]       (cannot infer type-variable(s) R#1
    [javac]         (actual and formal argument lists differ in length))
    [javac]     method Stream.<R#2,A>collect(Collector<? super
CAP#2,A,R#2>) is not applicable
    [javac]       (cannot infer type-variable(s) R#2,A,CAP#3,T#2
    [javac]         (argument mismatch; Collector<CAP#2,CAP#4,List<CAP#2>>
cannot be converted to Collector<? super CAP#2,CAP#4,List<CAP#2>>))
    [javac]   where R#1,T#1,R#2,A,T#2 are type-variables:
    [javac]     R#1 extends Object declared in method
<R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super T#1>,BiConsumer<R#1,R#1>)
    [javac]     T#1 extends Object declared in interface Stream
    [javac]     R#2 extends Object declared in method
<R#2,A>collect(Collector<? super T#1,A,R#2>)
    [javac]     A extends Object declared in method
<R#2,A>collect(Collector<? super T#1,A,R#2>)
    [javac]     T#2 extends Object declared in method <T#2>toList()
    [javac]   where CAP#1,CAP#2,CAP#3,CAP#4 are fresh type-variables:
    [javac]     CAP#1 extends Object from capture of ?
    [javac]     CAP#2 extends Object from capture of ?
    [javac]     CAP#3 extends Object from capture of ?
    [javac]     CAP#4 extends Object from capture of ?
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 error

BUILD FAILED
/Users/rye/lucene-solr2/solr/build.xml:463: The following error occurred
while executing this line:
/Users/rye/lucene-solr2/solr/common-build.xml:476: The following error
occurred while executing this line:
/Users/rye/lucene-solr2/solr/contrib/map-reduce/build.xml:53: The following
error occurred while executing this line:
/Users/rye/lucene-solr2/solr/contrib/morphlines-cell/build.xml:45: The
following error occurred while executing this line:
/Users/rye/lucene-solr2/solr/common-build.xml:443: The following error
occurred while executing this line:
/Users/rye/lucene-solr2/solr/test-framework/build.xml:35: The following
error occurred while executing this line:
/Users/rye/lucene-solr2/lucene/common-build.xml:767: The following error
occurred while executing this line:
/Users/rye/lucene-solr2/lucene/common-build.xml:501: The following error
occurred while executing this line:
/Users/rye/lucene-solr2/lucene/common-build.xml:1967: Compile failed; see
the compiler error output for details.

Total time: 2 minutes 28 seconds

Java version:

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

ant: Apache Ant(TM) version 1.10.0 compiled on December 27 2016
ivy: ivy-2.3.0.jar

Any suggestions I can try?

Regards,
Ryan

Re: Building Solr greater than 6.2.1

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
There was a Java compiler bug I think that was introduced and then fixed.
Took me two days to figure out when I hit that a while ago.

Regards,
    Alex

On 1 May 2017 1:00 PM, "Ryan Yacyshyn" <ry...@gmail.com> wrote:

I was using Java 8 all along but more specifically, it was 1.8.0_25 (full
details below).

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I initially didn't think it was my Java version so I just cleared my ivy
cache and tried building again but it failed. Only after updating to:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

did it work.

Regards,
Ryan



On Mon, 1 May 2017 at 20:44 Shawn Heisey <ap...@elyograg.org> wrote:

> On 5/1/2017 6:34 AM, Ryan Yacyshyn wrote:
> > Thanks Alex, it's working now. I had to update Java.
>
> What version were you using?  Lucene/Solr 6 requires Java 8.  I don't
> think that building 6.2.1 would have been successful if it weren't Java 8.
>
> I'm not familiar with any specific Java release requirements (more
> specific than version 8) for any 6.x version.
>
> Thanks,
> Shawn
>
>

Re: Building Solr greater than 6.2.1

Posted by Ryan Yacyshyn <ry...@gmail.com>.
I was using Java 8 all along but more specifically, it was 1.8.0_25 (full
details below).

java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I initially didn't think it was my Java version so I just cleared my ivy
cache and tried building again but it failed. Only after updating to:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

did it work.

Regards,
Ryan



On Mon, 1 May 2017 at 20:44 Shawn Heisey <ap...@elyograg.org> wrote:

> On 5/1/2017 6:34 AM, Ryan Yacyshyn wrote:
> > Thanks Alex, it's working now. I had to update Java.
>
> What version were you using?  Lucene/Solr 6 requires Java 8.  I don't
> think that building 6.2.1 would have been successful if it weren't Java 8.
>
> I'm not familiar with any specific Java release requirements (more
> specific than version 8) for any 6.x version.
>
> Thanks,
> Shawn
>
>

Re: Building Solr greater than 6.2.1

Posted by Shawn Heisey <ap...@elyograg.org>.
On 5/1/2017 6:34 AM, Ryan Yacyshyn wrote:
> Thanks Alex, it's working now. I had to update Java. 

What version were you using?  Lucene/Solr 6 requires Java 8.  I don't
think that building 6.2.1 would have been successful if it weren't Java 8.

I'm not familiar with any specific Java release requirements (more
specific than version 8) for any 6.x version.

Thanks,
Shawn


Re: Building Solr greater than 6.2.1

Posted by Ryan Yacyshyn <ry...@gmail.com>.
Thanks Alex, it's working now. I had to update Java.

Regards,
Ryan



On Mon, 1 May 2017 at 14:48 Alexandre Rafalovitch <ar...@gmail.com>
wrote:

> Make sure your Java is latest update. Seriously....
>
> Also, if still failing, try blowing away your Ivy cache.
>
> Regards,
>     Alex
>
> On 1 May 2017 6:34 AM, "Ryan Yacyshyn" <ry...@gmail.com> wrote:
>
> > Hi all,
> >
> > I'm trying to build Solr 6.5.1 but it's is failing. I'm able to
> > successfully build 6.2.1. I've tried 6.4.0, 6.4.2, and 6.5.1 but the
> build
> > fails. I'm not sure what the issue could be. I'm running `ant server` in
> > the solr dir and this is where it fails:
> >
> > ivy-configure:
> > [ivy:configure] :: loading settings :: file =
> > /Users/rye/lucene-solr2/lucene/top-level-ivy-settings.xml
> >
> > resolve:
> >
> > common.init:
> >
> > compile-lucene-core:
> >
> > init:
> >
> > -clover.disable:
> >
> > -clover.load:
> >
> > -clover.classpath:
> >
> > -clover.setup:
> >
> > clover:
> >
> > compile-core:
> >
> > -clover.disable:
> >
> > -clover.load:
> >
> > -clover.classpath:
> >
> > -clover.setup:
> >
> > clover:
> >
> > common.compile-core:
> >     [mkdir] Created dir:
> > /Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
> >     [javac] Compiling 186 source files to
> > /Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
> >     [javac]
> > /Users/rye/lucene-solr2/lucene/test-framework/src/
> > java/org/apache/lucene/util/RamUsageTester.java:164:
> > error: no suitable method found for
> > collect(Collector<Object,CAP#1,List<Object>>)
> >     [javac]                   .collect(Collectors.toList());
> >     [javac]                   ^
> >     [javac]     method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,?
> > super CAP#2>,BiConsumer<R#1,R#1>) is not applicable
> >     [javac]       (cannot infer type-variable(s) R#1
> >     [javac]         (actual and formal argument lists differ in length))
> >     [javac]     method Stream.<R#2,A>collect(Collector<? super
> > CAP#2,A,R#2>) is not applicable
> >     [javac]       (cannot infer type-variable(s) R#2,A,CAP#3,T#2
> >     [javac]         (argument mismatch;
> Collector<CAP#2,CAP#4,List<CAP#2>>
> > cannot be converted to Collector<? super CAP#2,CAP#4,List<CAP#2>>))
> >     [javac]   where R#1,T#1,R#2,A,T#2 are type-variables:
> >     [javac]     R#1 extends Object declared in method
> > <R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super
> > T#1>,BiConsumer<R#1,R#1>)
> >     [javac]     T#1 extends Object declared in interface Stream
> >     [javac]     R#2 extends Object declared in method
> > <R#2,A>collect(Collector<? super T#1,A,R#2>)
> >     [javac]     A extends Object declared in method
> > <R#2,A>collect(Collector<? super T#1,A,R#2>)
> >     [javac]     T#2 extends Object declared in method <T#2>toList()
> >     [javac]   where CAP#1,CAP#2,CAP#3,CAP#4 are fresh type-variables:
> >     [javac]     CAP#1 extends Object from capture of ?
> >     [javac]     CAP#2 extends Object from capture of ?
> >     [javac]     CAP#3 extends Object from capture of ?
> >     [javac]     CAP#4 extends Object from capture of ?
> >     [javac] Note: Some input files use or override a deprecated API.
> >     [javac] Note: Recompile with -Xlint:deprecation for details.
> >     [javac] 1 error
> >
> > BUILD FAILED
> > /Users/rye/lucene-solr2/solr/build.xml:463: The following error occurred
> > while executing this line:
> > /Users/rye/lucene-solr2/solr/common-build.xml:476: The following error
> > occurred while executing this line:
> > /Users/rye/lucene-solr2/solr/contrib/map-reduce/build.xml:53: The
> > following
> > error occurred while executing this line:
> > /Users/rye/lucene-solr2/solr/contrib/morphlines-cell/build.xml:45: The
> > following error occurred while executing this line:
> > /Users/rye/lucene-solr2/solr/common-build.xml:443: The following error
> > occurred while executing this line:
> > /Users/rye/lucene-solr2/solr/test-framework/build.xml:35: The following
> > error occurred while executing this line:
> > /Users/rye/lucene-solr2/lucene/common-build.xml:767: The following error
> > occurred while executing this line:
> > /Users/rye/lucene-solr2/lucene/common-build.xml:501: The following error
> > occurred while executing this line:
> > /Users/rye/lucene-solr2/lucene/common-build.xml:1967: Compile failed; see
> > the compiler error output for details.
> >
> > Total time: 2 minutes 28 seconds
> >
> > Java version:
> >
> > java version "1.8.0_25"
> > Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
> > Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
> >
> > ant: Apache Ant(TM) version 1.10.0 compiled on December 27 2016
> > ivy: ivy-2.3.0.jar
> >
> > Any suggestions I can try?
> >
> > Regards,
> > Ryan
> >
>

Re: Building Solr greater than 6.2.1

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Make sure your Java is latest update. Seriously....

Also, if still failing, try blowing away your Ivy cache.

Regards,
    Alex

On 1 May 2017 6:34 AM, "Ryan Yacyshyn" <ry...@gmail.com> wrote:

> Hi all,
>
> I'm trying to build Solr 6.5.1 but it's is failing. I'm able to
> successfully build 6.2.1. I've tried 6.4.0, 6.4.2, and 6.5.1 but the build
> fails. I'm not sure what the issue could be. I'm running `ant server` in
> the solr dir and this is where it fails:
>
> ivy-configure:
> [ivy:configure] :: loading settings :: file =
> /Users/rye/lucene-solr2/lucene/top-level-ivy-settings.xml
>
> resolve:
>
> common.init:
>
> compile-lucene-core:
>
> init:
>
> -clover.disable:
>
> -clover.load:
>
> -clover.classpath:
>
> -clover.setup:
>
> clover:
>
> compile-core:
>
> -clover.disable:
>
> -clover.load:
>
> -clover.classpath:
>
> -clover.setup:
>
> clover:
>
> common.compile-core:
>     [mkdir] Created dir:
> /Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
>     [javac] Compiling 186 source files to
> /Users/rye/lucene-solr2/lucene/build/test-framework/classes/java
>     [javac]
> /Users/rye/lucene-solr2/lucene/test-framework/src/
> java/org/apache/lucene/util/RamUsageTester.java:164:
> error: no suitable method found for
> collect(Collector<Object,CAP#1,List<Object>>)
>     [javac]                   .collect(Collectors.toList());
>     [javac]                   ^
>     [javac]     method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,?
> super CAP#2>,BiConsumer<R#1,R#1>) is not applicable
>     [javac]       (cannot infer type-variable(s) R#1
>     [javac]         (actual and formal argument lists differ in length))
>     [javac]     method Stream.<R#2,A>collect(Collector<? super
> CAP#2,A,R#2>) is not applicable
>     [javac]       (cannot infer type-variable(s) R#2,A,CAP#3,T#2
>     [javac]         (argument mismatch; Collector<CAP#2,CAP#4,List<CAP#2>>
> cannot be converted to Collector<? super CAP#2,CAP#4,List<CAP#2>>))
>     [javac]   where R#1,T#1,R#2,A,T#2 are type-variables:
>     [javac]     R#1 extends Object declared in method
> <R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super
> T#1>,BiConsumer<R#1,R#1>)
>     [javac]     T#1 extends Object declared in interface Stream
>     [javac]     R#2 extends Object declared in method
> <R#2,A>collect(Collector<? super T#1,A,R#2>)
>     [javac]     A extends Object declared in method
> <R#2,A>collect(Collector<? super T#1,A,R#2>)
>     [javac]     T#2 extends Object declared in method <T#2>toList()
>     [javac]   where CAP#1,CAP#2,CAP#3,CAP#4 are fresh type-variables:
>     [javac]     CAP#1 extends Object from capture of ?
>     [javac]     CAP#2 extends Object from capture of ?
>     [javac]     CAP#3 extends Object from capture of ?
>     [javac]     CAP#4 extends Object from capture of ?
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 1 error
>
> BUILD FAILED
> /Users/rye/lucene-solr2/solr/build.xml:463: The following error occurred
> while executing this line:
> /Users/rye/lucene-solr2/solr/common-build.xml:476: The following error
> occurred while executing this line:
> /Users/rye/lucene-solr2/solr/contrib/map-reduce/build.xml:53: The
> following
> error occurred while executing this line:
> /Users/rye/lucene-solr2/solr/contrib/morphlines-cell/build.xml:45: The
> following error occurred while executing this line:
> /Users/rye/lucene-solr2/solr/common-build.xml:443: The following error
> occurred while executing this line:
> /Users/rye/lucene-solr2/solr/test-framework/build.xml:35: The following
> error occurred while executing this line:
> /Users/rye/lucene-solr2/lucene/common-build.xml:767: The following error
> occurred while executing this line:
> /Users/rye/lucene-solr2/lucene/common-build.xml:501: The following error
> occurred while executing this line:
> /Users/rye/lucene-solr2/lucene/common-build.xml:1967: Compile failed; see
> the compiler error output for details.
>
> Total time: 2 minutes 28 seconds
>
> Java version:
>
> java version "1.8.0_25"
> Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
>
> ant: Apache Ant(TM) version 1.10.0 compiled on December 27 2016
> ivy: ivy-2.3.0.jar
>
> Any suggestions I can try?
>
> Regards,
> Ryan
>