Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 271953 - Eclipse SDK 3.5 source build is broken
Summary: Eclipse SDK 3.5 source build is broken
Status: CLOSED DUPLICATE of bug 374428
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 3.5   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Kim Moir CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 239589 264920 (view as bug list)
Depends on: 279835
Blocks:
  Show dependency tree
 
Reported: 2009-04-12 00:15 EDT by Matt Whitlock CLA
Modified: 2012-04-02 09:49 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Whitlock CLA 2009-04-12 00:15:42 EDT
Build ID: S-3.5M6-200903130100

Steps To Reproduce:
1. Attempt to build Eclipse 3.5M6 from sourceBuild-srcIncluded.

More information:
@dot:
    [mkdir] Created dir: /tmp/eclipse/plugins/org.eclipse.ui.intro/@dot
    [javac] Compiling 88 source files to /tmp/eclipse/plugins/org.eclipse.ui.intro/@dot
    [javac] ----------
    [javac] 1. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 25)
    [javac]     import org.eclipse.help.search.ISearchIndex;
    [javac]            ^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import org.eclipse.help.search cannot be resolved
    [javac] ----------
    [javac] 2. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 26)
    [javac]     import org.eclipse.help.search.LuceneSearchParticipant;
    [javac]            ^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The import org.eclipse.help.search cannot be resolved
    [javac] ----------
    [javac] 3. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 42)
    [javac]     public class IntroSearchParticipant extends LuceneSearchParticipant {
    [javac]                                                 ^^^^^^^^^^^^^^^^^^^^^^^
    [javac] LuceneSearchParticipant cannot be resolved to a type
    [javac] ----------
    [javac] 4. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 137)
    [javac]     href = resolveVariables(bundleId, content, locale);
    [javac]            ^^^^^^^^^^^^^^^^
    [javac] The method resolveVariables(String, String, String) is undefined for the type IntroSearchParticipant
    [javac] ----------
    [javac] 5. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 151)
    [javac]     public IStatus addDocument(ISearchIndex index, String pluginId, String name, URL url, String id,
    [javac]                                ^^^^^^^^^^^^
    [javac] ISearchIndex cannot be resolved to a type
    [javac] ----------
    [javac] 6. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 170)
    [javac]     private IStatus addPage(ISearchIndex index, String pluginId, String name, URL url, IntroPage page,
    [javac]                             ^^^^^^^^^^^^
    [javac] ISearchIndex cannot be resolved to a type
    [javac] ----------
    [javac] 7. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 179)
    [javac]     addTitle(titleSummary.title, doc);
    [javac]     ^^^^^^^^
    [javac] The method addTitle(String, Document) is undefined for the type IntroSearchParticipant
    [javac] ----------
    [javac] 7 problems (7 errors)
    [javac] Compilation failed. Compiler errors are available in /tmp/eclipse/plugins/org.eclipse.ui.intro/@dot.log

BUILD FAILED
/tmp/eclipse/build.xml:68: The following error occurred while executing this line:
/tmp/eclipse/build.xml:8: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.sdk/build.xml:39: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.sdk/build.xml:17: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.platform/build.xml:381: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.platform/build.xml:255: The following error occurred while executing this line:
/tmp/eclipse/plugins/org.eclipse.ui.intro/build.xml:291: The following error occurred while executing this line:
/tmp/eclipse/plugins/org.eclipse.ui.intro/build.xml:254: Compile failed; see the compiler error output for details.


Apparently, the org.eclipse.ui.intro plugin depends on classes from the org.eclipse.help.base plugin, which has not yet been built at this point in the build process.
Comment 1 Matt Whitlock CLA 2009-05-30 16:14:50 EDT
This is still a problem with the 3.5RC3 source build package!  3.5 should not be released while this bug persists, as it effectively prevents anyone from building Eclipse SDK from sources.

Here's the error output from an unadulterated extraction of eclipse-sourceBuild-srcIncluded-3.5RC3.zip:

[javac] 1. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 25)                                                                                         
[javac]     import org.eclipse.help.search.ISearchIndex;                                                            
[javac]            ^^^^^^^^^^^^^^^^^^^^^^^                                                                          
[javac] The import org.eclipse.help.search cannot be resolved                                                       
[javac] ----------                                                                                                  
[javac] 2. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 26)                                                                                         
[javac]     import org.eclipse.help.search.LuceneSearchParticipant;                                                 
[javac]            ^^^^^^^^^^^^^^^^^^^^^^^                                                                          
[javac] The import org.eclipse.help.search cannot be resolved                                                       
[javac] ----------                                                                                                  
[javac] 3. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 42)                                                                                         
[javac]     public class IntroSearchParticipant extends LuceneSearchParticipant {                                   
[javac]                                                 ^^^^^^^^^^^^^^^^^^^^^^^                                     
[javac] LuceneSearchParticipant cannot be resolved to a type                                                        
[javac] ----------                                                                                                  
[javac] 4. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 137)                                                                                        
[javac]     href = resolveVariables(bundleId, content, locale);                                                     
[javac]            ^^^^^^^^^^^^^^^^                                                                                 
[javac] The method resolveVariables(String, String, String) is undefined for the type IntroSearchParticipant        
[javac] ----------
[javac] 5. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 151)
[javac]     public IStatus addDocument(ISearchIndex index, String pluginId, String name, URL url, String id,
[javac]                                ^^^^^^^^^^^^
[javac] ISearchIndex cannot be resolved to a type
[javac] ----------
[javac] 6. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 170)
[javac]     private IStatus addPage(ISearchIndex index, String pluginId, String name, URL url, IntroPage page,
[javac]                             ^^^^^^^^^^^^
[javac] ISearchIndex cannot be resolved to a type
[javac] ----------
[javac] 7. ERROR in /tmp/eclipse/plugins/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java (at line 179)
[javac]     addTitle(titleSummary.title, doc);
[javac]     ^^^^^^^^
[javac] The method addTitle(String, Document) is undefined for the type IntroSearchParticipant
[javac] ----------
[javac] 7 problems (7 errors)

BUILD FAILED
/tmp/eclipse/build.xml:68: The following error occurred while executing this line:
/tmp/eclipse/build.xml:8: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.sdk/build.xml:43: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.sdk/build.xml:21: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.platform/build.xml:390: The following error occurred while executing this line:
/tmp/eclipse/features/org.eclipse.platform/build.xml:354: The following error occurred while executing this line:
/tmp/eclipse/plugins/org.eclipse.ui.intro/build.xml:336: The following error occurred while executing this line:
/tmp/eclipse/plugins/org.eclipse.ui.intro/build.xml:297: Compile failed; see the compiler error output for details.
Comment 2 Kim Moir CLA 2009-06-03 14:41:55 EDT
The source build doesn't really reflect how we build eclipse anymore.  We build it by checking out the source, compiling it, generating the metadata, running the p2 publisher, publishing the bundles to a repo and then running the p2 director to assemble the bits from the repo.  I'll start writing some documentation on how to use our existing build scripts to build the SDKs, instead of the source build.
Comment 3 Matt Whitlock CLA 2009-06-03 20:13:37 EDT
(In reply to comment #2)
> The source build doesn't really reflect how we build eclipse anymore...

Thanks, Kim.  I've been trying to write a Gentoo ebuild for Eclipse 3.5 for a while now without much success.  If your instructions would include a headless way to compile the Eclipse SDK using PDE/Build and P2, I'd be most appreciative.

Where could I find these instructions once you've written them, or will you post a link to this bug?
Comment 4 Kim Moir CLA 2009-06-04 10:42:47 EDT
I'll update the bug with a link.
Comment 5 Matt Whitlock CLA 2009-06-14 13:03:48 EDT
(In reply to comment #4)
> I'll update the bug with a link.
> 

Kim, any progress on this yet?  Would be nice to get a working Gentoo ebuild ready before the 3.5 release.
Comment 6 Dani Megert CLA 2009-06-15 04:23:53 EDT
This doesn't seem like a blocker to me. Can the severity be downgraded?
Comment 7 Kim Moir CLA 2009-06-15 09:03:20 EDT
I'm still working on it.  I've been testing it all last week.
Comment 8 Matt Whitlock CLA 2009-06-15 11:44:09 EDT
(In reply to comment #6)
> This doesn't seem like a blocker to me. Can the severity be downgraded?
> 

Depends on whether you view having a working source build as a requirement for releasing 3.5.  It's your project, though, so set the severity to whatever you think it should be.  Now that I have a developer's attention, I don't care if this bug report gets downgraded.
Comment 9 Matt Whitlock CLA 2009-07-07 06:02:22 EDT
Eclipse SDK 3.5 was released with the source build still broken.

Kim, is your "documentation on how to use our existing build scripts to build the SDKs, instead of the source build" ready for consumption?
Comment 10 Kim Moir CLA 2009-07-08 15:43:48 EDT
The document is here. 

http://wiki.eclipse.org/Platform-releng-sourcebuild35

However, it doesn't work with the source build included with 3.5.  I'm testing a new source build zip now, but it still has some issues. Once I have fixed all the remaining issues, I'll post it and update this bug with the link.
Comment 11 Andrew Overholt CLA 2009-08-14 07:52:09 EDT
Not meaning to usurp Kim, but you know about eclipse-build, right, Matt?  This is our effort as part of the Linux Tools project to wrap the Eclipse SDK build up into a single build.sh call that will produce something suitable for Linux distributions.  We've got it building on both Fedora and Debian and I can't see any reason why it wouldn't also work on Gentoo.  It does all the p2 stuff that Kim does in the regular build.  We're on #eclipse-linux and linuxtools-dev@eclipse.org if you're interested.

http://wiki.eclipse.org/Linux_Tools_Project/Eclipse_Build
Comment 12 Kim Moir CLA 2009-08-14 09:01:10 EDT
I would agree with Andrew, the Linux tools project is a great resources for building eclipse for distros.
Comment 13 Matt Whitlock CLA 2009-08-14 13:02:19 EDT
(In reply to comment #11)
> Not meaning to usurp Kim, but you know about eclipse-build, right, Matt?

I was aware of eclipse-build, and I've been keeping my eye on it, but so far I haven't seen that it's been applicable to any given source tarball.  It seemed to only work with one particular integration build ID.

Also, it's not really the Gentoo way of doing things to check out any source from Eclipse's SCM.  Gentoo would rather distribute a tarball of the sources on its distfiles mirrors and let the ebuild build from that tarball.
Comment 14 Andrew Overholt CLA 2009-08-17 08:45:03 EDT
(In reply to comment #13)
> (In reply to comment #11)
> > Not meaning to usurp Kim, but you know about eclipse-build, right, Matt?
> 
> I was aware of eclipse-build, and I've been keeping my eye on it, but so far I
> haven't seen that it's been applicable to any given source tarball.  It seemed
> to only work with one particular integration build ID.

Yes, it works with a build ID, but we don't expect distros to re-build the source tarball each time.

> Also, it's not really the Gentoo way of doing things to check out any source
> from Eclipse's SCM.  Gentoo would rather distribute a tarball of the sources on
> its distfiles mirrors and let the ebuild build from that tarball.

eclipse-build has a buildable tarball (similar to srcIncluded but without build.xml files) created from the 3.5 final tag.
Comment 15 Kim Moir CLA 2009-08-17 11:18:49 EDT
*** Bug 239589 has been marked as a duplicate of this bug. ***
Comment 16 Kim Moir CLA 2009-08-24 17:06:10 EDT
*** Bug 264920 has been marked as a duplicate of this bug. ***
Comment 17 Miten Mehta CLA 2009-09-12 10:37:38 EDT
(In reply to comment #12)
> I would agree with Andrew, the Linux tools project is a great resources for
> building eclipse for distros.

Hi Kim,

I have tried instructions again after I saw that the instructions page was updated.  I see the build is still broke.  It platform feature itself does not build.  Please take look.

I am sending the log in separate email to you.

Regards,

Miten.
Comment 18 Kim Moir CLA 2009-09-14 15:13:51 EDT
Are you trying to build using a recent 3.5.1 build or the 3.5 build?  I have been fixing the 3.5.1 build.  Please don't sent logs to my email, please attach them to the bug.
Comment 19 John Arthorne CLA 2012-04-02 09:49:59 EDT

*** This bug has been marked as a duplicate of bug 374428 ***