Bug 319460 - Please update instructions to build Eclipse from source
Summary: Please update instructions to build Eclipse from source
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P5 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-Releng-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-07-10 07:42 EDT by Aaron Digulla CLA
Modified: 2013-08-27 02:05 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Digulla CLA 2010-07-10 07:42:37 EDT
Build Identifier: 3.6 Helios

The instructions on http://wiki.eclipse.org/Platform-releng-sourcebuild35 are outdated. If you follow them, you will get this error:

BUILD FAILED
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:55: The following error occurred while executing this line:                                                                                                    
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:107: The following error occurred while executing this line:                                                                                                   
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/build.xml:35: The following error occurred while executing this line:                                                                                                              
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/build.xml:20: Property mapsRepo was circularly defined.                                                                                                


The reason is this line of code in several build.properties files:

mapsRepo=${mapsRepo}

If you fix that (with skipFetch=true and setting mapsRepo to some random string), you get:


buildMasterFeature:
lines 1-24
BUILD FAILED
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:55: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:107: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/build.xml:35: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/build.xml:35: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/build.xml:91: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/master/customTargets.xml:18: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/master/allElements.xml:16: The following error occurred while executing this line:
/home/digulla/packages/eclipse/eclipse-sourceBuild-srcIncluded-3.6/eclipse/plugins/org.eclipse.pde.build_3.6.0.v20100603/scripts/genericTargets.xml:107: eclipse.buildScript doesn't support the "generateSourceReferences" attribute

Some more comments to the build:

1. All to specify -consoleLog as an option to "build"; otherwise the build just fails but there is no error message.

2. I get lots of errors because of missing plugins. Is the build using my default workspace? It should probably create a new one.

3. It gets more and more complicated to locate the files necessary for the runtime environments (CDC, Java 1.4, Java 1.5). I suggest to either extract the files which result from these build steps from the SDK download or to supply them as a download from eclipse.org so users don't have to try to build CDC 1.0 on Java 6 in a 64bit Linux box.

Reproducible: Always

Steps to Reproduce:
1. Download eclipse-sourceBuild-srcIncluded-3.6.zip from http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/sourceBuilds.php
2. Follow the instructions on http://wiki.eclipse.org/Platform-releng-sourcebuild35
3.
Comment 1 Denis Roy CLA 2010-11-30 14:21:28 EST
Kim, we ran into similar problems with the build, using build.eclipse.org (x86_64).

Using:
eclipse-sourceBuild-srcFetch-3.6.1.zip
    and
eclipse-SDK-3.6.1-linux-gtk-x86_64.tar.gz
    and this command line:
./build -os linux -ws gtk -arch x86_64

We found and fixed the mapsRepo references in the following build.properties files by setting the correct repo information.

find . -name '*.properties' -exec grep -H 'mapsRepo' {} \;
./eclipse/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/templates/headless-build/build.properties:mapsRepo=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
./org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk.examples/build.properties:mapsRepo=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
./org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/master/build.properties:mapsRepo=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
./org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk.tests/build.properties:mapsRepo=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
./org.eclipse.releng.eclipsebuilder/equinox/buildConfigs/equinox.p2.installer/build.properties:mapsRepo=:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse

We've ensured that skipFetch=false in buildScripts/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/sdk/srcBuild/build.properties




The build script now ends with the following:

generateScript:
[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied.
[eclipse.buildScript] Bundle org.eclipse.platform.doc.user:
[eclipse.buildScript]   Missing required plug-in org.eclipse.help_[3.2.0,4.0.0).
[eclipse.buildScript] Bundle org.eclipse.platform.doc.isv:
[eclipse.buildScript]   Missing required plug-in org.eclipse.help_[3.2.0,4.0.0).

BUILD FAILED
/opt/public/technology/phoenix/lts/buildScripts/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:55: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/org.eclipse.releng.eclipsebuilder/buildFromSource.xml:107: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/org.eclipse.releng.eclipsebuilder/build.xml:35: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/eclipse/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/build.xml:35: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/eclipse/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/build.xml:91: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/master/customTargets.xml:18: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/org.eclipse.releng.eclipsebuilder/eclipse/buildConfigs/master/allElements.xml:16: The following error occurred while executing this line:
/opt/public/technology/phoenix/lts/buildScripts/eclipse/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/scripts/genericTargets.xml:107: Unable to find feature: master.
Comment 2 Marius Cirsta CLA 2011-01-16 00:53:59 EST
 I can confirm this , it also happened to me when trying to compile version 3.6.1 or even 3.7M4.
 It says that eclipse/plugins/org.eclipse.pde.build_3.6.100.v20101122/scripts/build.xml:20: Property mapsRepo was circularly defined. 
 Just removing line 20 :  http://ftp.osuosl.org/pub/eclipse/eclipse/downloads/drops/S-3.7M4-201012081300/eclipse-sourceBuild-srcIncluded-3.7M4.zip
 seems to help and it gets past that error but then fails again, later in the build ( don't know if the issues are related):
 eclipse/plugins/org.eclipse.pde.build_3.6.100.v20101122/scripts/genericTargets.xml:56: Could not retrieve feature.xml or build.properties for feature org.eclipse.sdk.examples.
 It would be nice to be able to compile Eclipse.
 Thanks.
Comment 3 Marius Cirsta CLA 2011-01-16 00:55:45 EST
 Sorry , I meant line 20 : <property file="${buildProperties}"/>
Comment 4 Aaron Digulla CLA 2011-01-21 22:41:35 EST
In the meantime, if you need to fix something in an Eclipse JAR/plugin, here is a workaround if you can't use PDE for some reason:

http://blog.pdark.de/2010/11/10/building-patches-for-eclipse/

It's a hack but with it, I could compile complex projects like SWT and BIRT within ten minutes.
Comment 5 David Williams CLA 2013-08-14 00:24:02 EDT
There's no plans to fix anything in "old build streams". For current build streams, for Kepler (4.3) on, can use 
http://wiki.eclipse.org/Platform-releng/Platform_Build

I'll leave this open, as P5, "helpwanted" since if anyone can/wants to fix old wiki page, feel free to take the bug and fix the page. Not sure it is even possible to do what it says, any longer (if tools, etc., are still available and accessible). 

I suggest if no changes in bug status or comments by, say, end of 2014, we close as "won't fix".
Comment 6 David Williams CLA 2013-08-27 02:05:38 EDT
(In reply to comment #5)
> There's no plans to fix anything in "old build streams". For current build
> streams, for Kepler (4.3) on, can use 
> http://wiki.eclipse.org/Platform-releng/Platform_Build
> 
> I'll leave this open, as P5, "helpwanted" since if anyone can/wants to fix
> old wiki page, feel free to take the bug and fix the page. Not sure it is
> even possible to do what it says, any longer (if tools, etc., are still
> available and accessible). 
> 
> I suggest if no changes in bug status or comments by, say, end of 2014, we
> close as "won't fix".

Actually, I meant to say "end of 2013". 
And, I've decided it does no harm to close as "won't fix" now. 
If someone else wants to work on this for "old" build, feel free to reopen and describe your plans.