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 Umesh Prasad <um...@gmail.com> on 2013/04/12 17:17:36 UTC

Downloaded Solr 4.2.1 Source: Build Failing

common.compile-core:
    [javac] Compiling 337 source files to
/Users/umeshprasad/Downloads/solr-4.2.1/solr/build/solr-core/classes/java
    [javac]
/Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
*omponent/QueryComponent.java:765: cannot find symbol
    [javac] symbol  : class ShardFieldSortedHitQueue
    [javac] location: class org.apache.solr.handler.component.QueryComponent
    [javac]       ShardFieldSortedHitQueue queue;*
    [javac]       ^
    [javac]
/Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java:766:
cannot find symbol
    [javac] symbol  : class ShardFieldSortedHitQueue
    [javac] location: class org.apache.solr.handler.component.QueryComponent
    [javac]       queue = new ShardFieldSortedHitQueue(sortFields,
ss.getOffset() + ss.getCount());
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors


-- 
---
Thanks & Regards
Umesh Prasad

Re: Downloaded Solr 4.2.1 Source: Build Failing

Posted by Jack Park <ja...@topicquests.org>.
What I learned is that I needed to upgrade Ant, then needed to install
Ivy; the build.xml in the outer subversion directory has an ant target
to install Ivy, and one to run-maven-build. I ran that, then switched
to /solr and ran "ant dist" which finished in under 2 minutes.

On Sun, Apr 14, 2013 at 10:14 AM, Steve Rowe <sa...@gmail.com> wrote:
> Hi Umesh,
>
> I have the exact same Java 1.6 version as you, on OS X v10.8.3.
>
> I downloaded the source distribution from the same mirror as you did, and ran 'ant dist' under the solr/ directory, and got "BUILD SUCCESSFUL".
>
> (FYI, building the source distribution is part of the "smoke testing" we do as part of validating a release, and this passed for me on my OS X 10.8.3 machine before I voted to release 4.2.1.)
>
> What version of Ant are you using?
>
> What command are you using to build?
>
> Did you try running 'ant clean' from the top level and then re-building?
>
> Steve
>
> On Apr 14, 2013, at 7:41 AM, Umesh Prasad <um...@gmail.com> wrote:
>
>> Further update on same.
>> Build on Branch
>> http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_2_1 succeeds
>> fine.
>> Build fails only for Source code downloaded from
>> http://apache.techartifact.com/mirror/lucene/solr/4.2.1/solr-4.2.1-src.tgz
>>
>>
>>
>>
>> On Sun, Apr 14, 2013 at 1:05 PM, Umesh Prasad <um...@gmail.com> wrote:
>>
>>> j*ava version "1.6.0_43"
>>> Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
>>> Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
>>> *
>>> Mac OS X : Version 10.7.5
>>>
>>> --
>>> Umesh
>>>
>>>
>>>
>>> On Sat, Apr 13, 2013 at 12:08 AM, Chris Hostetter <
>>> hossman_lucene@fucit.org> wrote:
>>>
>>>>
>>>> :
>>>> /Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
>>>> : *omponent/QueryComponent.java:765: cannot find symbol
>>>> :     [javac] symbol  : class ShardFieldSortedHitQueue
>>>> :     [javac] location: class
>>>> org.apache.solr.handler.component.QueryComponent
>>>> :     [javac]       ShardFieldSortedHitQueue queue;*
>>>>
>>>> Weird ... can you provide us more details about the java compiler you are
>>>> using?
>>>>
>>>> ShardFieldSortedHitQueue is a package protected class declared in
>>>> ShardDoc.java (in the same package as QueryComponent).  That isn't exactly
>>>> a best practice, but it shouldn't be causing a compilation failure.
>>>>
>>>>
>>>> -Hoss
>>>>
>>>
>>>
>>>
>>> --
>>> ---
>>> Thanks & Regards
>>> Umesh Prasad
>>>
>>
>>
>>
>> --
>> ---
>> Thanks & Regards
>> Umesh Prasad
>

Re: Downloaded Solr 4.2.1 Source: Build Failing

Posted by Steve Rowe <sa...@gmail.com>.
Hi Umesh,

I have the exact same Java 1.6 version as you, on OS X v10.8.3.

I downloaded the source distribution from the same mirror as you did, and ran 'ant dist' under the solr/ directory, and got "BUILD SUCCESSFUL".

(FYI, building the source distribution is part of the "smoke testing" we do as part of validating a release, and this passed for me on my OS X 10.8.3 machine before I voted to release 4.2.1.)

What version of Ant are you using?

What command are you using to build?

Did you try running 'ant clean' from the top level and then re-building?

Steve

On Apr 14, 2013, at 7:41 AM, Umesh Prasad <um...@gmail.com> wrote:

> Further update on same.
> Build on Branch
> http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_2_1 succeeds
> fine.
> Build fails only for Source code downloaded from
> http://apache.techartifact.com/mirror/lucene/solr/4.2.1/solr-4.2.1-src.tgz
> 
> 
> 
> 
> On Sun, Apr 14, 2013 at 1:05 PM, Umesh Prasad <um...@gmail.com> wrote:
> 
>> j*ava version "1.6.0_43"
>> Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
>> Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
>> *
>> Mac OS X : Version 10.7.5
>> 
>> --
>> Umesh
>> 
>> 
>> 
>> On Sat, Apr 13, 2013 at 12:08 AM, Chris Hostetter <
>> hossman_lucene@fucit.org> wrote:
>> 
>>> 
>>> :
>>> /Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
>>> : *omponent/QueryComponent.java:765: cannot find symbol
>>> :     [javac] symbol  : class ShardFieldSortedHitQueue
>>> :     [javac] location: class
>>> org.apache.solr.handler.component.QueryComponent
>>> :     [javac]       ShardFieldSortedHitQueue queue;*
>>> 
>>> Weird ... can you provide us more details about the java compiler you are
>>> using?
>>> 
>>> ShardFieldSortedHitQueue is a package protected class declared in
>>> ShardDoc.java (in the same package as QueryComponent).  That isn't exactly
>>> a best practice, but it shouldn't be causing a compilation failure.
>>> 
>>> 
>>> -Hoss
>>> 
>> 
>> 
>> 
>> --
>> ---
>> Thanks & Regards
>> Umesh Prasad
>> 
> 
> 
> 
> -- 
> ---
> Thanks & Regards
> Umesh Prasad


Re: Downloaded Solr 4.2.1 Source: Build Failing

Posted by Umesh Prasad <um...@gmail.com>.
Further update on same.
Build on Branch
http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_2_1 succeeds
fine.
Build fails only for Source code downloaded from
http://apache.techartifact.com/mirror/lucene/solr/4.2.1/solr-4.2.1-src.tgz




On Sun, Apr 14, 2013 at 1:05 PM, Umesh Prasad <um...@gmail.com> wrote:

>  j*ava version "1.6.0_43"
> Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
> Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
> *
> Mac OS X : Version 10.7.5
>
> --
> Umesh
>
>
>
> On Sat, Apr 13, 2013 at 12:08 AM, Chris Hostetter <
> hossman_lucene@fucit.org> wrote:
>
>>
>> :
>> /Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
>> : *omponent/QueryComponent.java:765: cannot find symbol
>> :     [javac] symbol  : class ShardFieldSortedHitQueue
>> :     [javac] location: class
>> org.apache.solr.handler.component.QueryComponent
>> :     [javac]       ShardFieldSortedHitQueue queue;*
>>
>> Weird ... can you provide us more details about the java compiler you are
>> using?
>>
>> ShardFieldSortedHitQueue is a package protected class declared in
>> ShardDoc.java (in the same package as QueryComponent).  That isn't exactly
>> a best practice, but it shouldn't be causing a compilation failure.
>>
>>
>> -Hoss
>>
>
>
>
> --
> ---
> Thanks & Regards
> Umesh Prasad
>



-- 
---
Thanks & Regards
Umesh Prasad

Re: Downloaded Solr 4.2.1 Source: Build Failing

Posted by Umesh Prasad <um...@gmail.com>.
 j*ava version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
*
Mac OS X : Version 10.7.5

--
Umesh



On Sat, Apr 13, 2013 at 12:08 AM, Chris Hostetter
<ho...@fucit.org>wrote:

>
> :
> /Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
> : *omponent/QueryComponent.java:765: cannot find symbol
> :     [javac] symbol  : class ShardFieldSortedHitQueue
> :     [javac] location: class
> org.apache.solr.handler.component.QueryComponent
> :     [javac]       ShardFieldSortedHitQueue queue;*
>
> Weird ... can you provide us more details about the java compiler you are
> using?
>
> ShardFieldSortedHitQueue is a package protected class declared in
> ShardDoc.java (in the same package as QueryComponent).  That isn't exactly
> a best practice, but it shouldn't be causing a compilation failure.
>
>
> -Hoss
>



-- 
---
Thanks & Regards
Umesh Prasad

Re: Downloaded Solr 4.2.1 Source: Build Failing

Posted by Chris Hostetter <ho...@fucit.org>.
: /Users/umeshprasad/Downloads/solr-4.2.1/solr/core/src/java/org/apache/solr/handler/c
: *omponent/QueryComponent.java:765: cannot find symbol
:     [javac] symbol  : class ShardFieldSortedHitQueue
:     [javac] location: class org.apache.solr.handler.component.QueryComponent
:     [javac]       ShardFieldSortedHitQueue queue;*

Weird ... can you provide us more details about the java compiler you are 
using?

ShardFieldSortedHitQueue is a package protected class declared in 
ShardDoc.java (in the same package as QueryComponent).  That isn't exactly 
a best practice, but it shouldn't be causing a compilation failure.


-Hoss