Skip to content

Commit

Permalink
fix build to properly copy WiFi examples for EMT CC3200 WiFi library
Browse files Browse the repository at this point in the history
  • Loading branch information
daverusso committed Apr 5, 2016
1 parent c1726ce commit 8c25e7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/build.xml
Expand Up @@ -180,10 +180,15 @@
<!-- download and unzip TI-RTOS closure -->
<antcall target="unzip-closure"/>

<!-- get WiFi library from emt closure, but get examples from Energia -->
<move todir="${target.path}/hardware/cc3200emt/libraries/WiFi">
<fileset dir="${target.path}/hardware/emt/ti/runtime/wiring/cc3200/libraries/WiFi">
</fileset>
</move>
<copy todir="${target.path}/hardware/cc3200emt/libraries/WiFi/examples">
<fileset dir="../hardware/cc3200emt/libraries/WiFi/examples">
</fileset>
</copy>

<!-- copy shared examples folder -->
<copy todir="${target.path}/examples">
Expand Down

12 comments on commit 8c25e7c

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you guys must never do:

ant clean build

If you do, then the target directory doesn't exist ${target.path}/hardware/emt/ti/runtime/wiring/cc3200/libraries/WiFi and the build fails.

I have to do this now:

$ ant clean; mkdir -p linux/work/hardware/emt/ti/runtime/wiring/cc3200/libraries/WiFi; ant build

@daverusso
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hummm... I'll take a look.

FWIW: on every repo update we do an
ant <os>-clean; ant dist
where <os> is linux, windows, ...

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ant linux-clean

doesn't seem to clean the work directory. There is lots of stuff left in there after the clean

ant clean

That basically deletes the work directory

$ ant clean
Buildfile: /home/kimballr/Energia/build/build.xml

subprojects-clean:

clean:
   [delete] Deleting directory /home/kimballr/Energia/core/bin
   [delete] Deleting: /home/kimballr/Energia/core/core.jar

clean:
   [delete] Deleting directory /home/kimballr/Energia/app/bin
   [delete] Deleting: /home/kimballr/Energia/app/pde.jar

linux-clean:
   [delete] Deleting directory /home/kimballr/Energia/build/linux/work

windows-clean:

macosx-clean:

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
$ 

@daverusso
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our build logs show the same ant output and, in a quick review of build.xml, it appears that linux-clean and clean are the same when running on linux. Thinking it must be the difference between build and dist targets, I replaced linux-clean with clean, dist with build, and rebuilt on linux. I still couldn't reproduce the failure.

So, for now ... you should be able to workaround the issue by adding the following line to build.xml

 <mkdir dir="${target.path}/hardware/cc3200emt/libraries/WiFi">

just prior to the offending line

 <copy todir="${target.path}/hardware/cc3200emt/libraries/WiFi/examples">

Please give this a try and let me know if it helps. Also, any additional details plus the ant error messages would be helpful.

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had modified my build.xml with that exact same fix prior to writing the comment when this problem first appeared with the Feb 15th checkin , and yes that fixes it.

However, I was more concerned that your builds aren't failing. I don't know what source or branch you are working with but doing a clean checkout and build doesn't work for me. I followed the instructions from https://github.com/energia/Energia/blob/master/ReadMe.md

$ rm -rf Energia/
$ git clone --recursive https://github.com/energia/Energia.git
Cloning into 'Energia'...
remote: Counting objects: 97900, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 97900 (delta 12), reused 0 (delta 0), pack-reused 97862
Receiving objects: 100% (97900/97900), 1.89 GiB | 2.87 MiB/s, done.
Resolving deltas: 100% (55595/55595), done.
Checking connectivity... done.
Checking out files: 100% (4200/4200), done.
Submodule 'emt' (https://github.com/energia/emt.git) registered for path 'emt'
Cloning into 'emt'...
remote: Counting objects: 5442, done.
remote: Total 5442 (delta 0), reused 0 (delta 0), pack-reused 5442
Receiving objects: 100% (5442/5442), 26.44 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (3491/3491), done.
Checking connectivity... done.
Submodule path 'emt': checked out 'a350116673c64a5ba71a034b3baaa384b888776e'
$ cd Energia/build
$ ant clean build
Buildfile: /mnt/vbox/shared/github/Energia/build/build.xml

subprojects-clean:

clean:

clean:

linux-clean:

windows-clean:

macosx-clean:

clean:

build:

revision-check:

linux-checkos:

subprojects-build:

compile:
  [methods] No changes to PApplet API.
    [mkdir] Created dir: /mnt/vbox/shared/github/Energia/core/bin
    [javac] Compiling 34 source files to /mnt/vbox/shared/github/Energia/core/bin
    [javac] 
    [javac]           WARNING
    [javac] 
    [javac] The -source switch defaults to 1.8 in JDK 1.8.
    [javac] If you specify -target 1.5 you now must also specify -source 1.5.
    [javac] Ant will implicitly add -source 1.5 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings

build:
      [jar] Building jar: /mnt/vbox/shared/github/Energia/core/core.jar

compile:
    [mkdir] Created dir: /mnt/vbox/shared/github/Energia/app/bin
    [javac] Compiling 77 source files to /mnt/vbox/shared/github/Energia/app/bin
    [javac] 
    [javac]           WARNING
    [javac] 
    [javac] The -source switch defaults to 1.8 in JDK 1.8.
    [javac] If you specify -target 1.5 you now must also specify -source 1.5.
    [javac] Ant will implicitly add -source 1.5 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:36: warning: '_' used as an identifier
    [javac] import static processing.app.I18n._;
    [javac]                                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:195: warning: '_' used as an identifier
    [javac]         System.err.println(_("Non-fatal error while setting the Look & Feel."));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:196: warning: '_' used as an identifier
    [javac]         System.err.println(_("The error message follows, however Energia should run fine."));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:231: warning: '_' used as an identifier
    [javac]       Base.showError(_("Problem Setting the Platform"),
    [javac]                      ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:232: warning: '_' used as an identifier
    [javac]                      _("An unknown error occurred while trying to load\n" +
    [javac]                      ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:243: warning: '_' used as an identifier
    [javac]       Base.showError(_("Please install JDK 1.5 or later"),
    [javac]                      ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:244: warning: '_' used as an identifier
    [javac]                      _("Energia requires a full JDK (not just a JRE)\n" +
    [javac]                      ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:283: warning: '_' used as an identifier
    [javac]         Base.showWarning(_("Sketchbook folder disappeared"),
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:284: warning: '_' used as an identifier
    [javac]                          _("The sketchbook folder no longer exists.\n" +
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:558: warning: '_' used as an identifier
    [javac]           Base.showWarning(_("Time for a Break"),
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:559: warning: '_' used as an identifier
    [javac]                            _("You've reached the limit for auto naming of new sketches\n" +
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:563: warning: '_' used as an identifier
    [javac]           Base.showWarning(_("Sunshine"),
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:564: warning: '_' used as an identifier
    [javac]                            _("No really, time for some fresh air for you."), null);
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:707: warning: '_' used as an identifier
    [javac]                                    _("Open an Energia sketch..."),
    [javac]                                    ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:846: warning: '_' used as an identifier
    [javac]           _("<html> " +
    [javac]           ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:856: warning: '_' used as an identifier
    [javac]                                                   _("Quit"),
    [javac]                                                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:977: warning: '_' used as an identifier
    [javac]     item = Editor.newJMenuItem(_("Open..."), 'O');
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1208: warning: '_' used as an identifier
    [javac]             showWarning(_("Sketch Does Not Exist"),
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1209: warning: '_' used as an identifier
    [javac]                         _("The selected sketch no longer exists.\n" +
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1239: warning: '_' used as an identifier
    [javac]               _("The sketch \"{0}\" cannot be used.\n" +
    [javac]               ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1246: warning: '_' used as an identifier
    [javac]             Base.showMessage(_("Ignoring sketch with bad name"), complaining);
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1317: warning: '_' used as an identifier
    [javac]             _("The library \"{0}\" cannot be used.\n" +
    [javac]             ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1322: warning: '_' used as an identifier
    [javac]           Base.showMessage(_("Ignoring bad library name"), mess);
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1557: warning: '_' used as an identifier
    [javac]         showError(_("Problem getting data folder"),
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1558: warning: '_' used as an identifier
    [javac]                   _("Error getting the Energia data folder."), e);
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1565: warning: '_' used as an identifier
    [javac]         showError(_("Settings issues"),
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1566: warning: '_' used as an identifier
    [javac]                   _("Energia cannot run because it could not\n" +
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1880: warning: '_' used as an identifier
    [javac]       showError(_("You forgot your sketchbook"),
    [javac]                 ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1881: warning: '_' used as an identifier
    [javac]                 _("Energia cannot run because it could not\n" +
    [javac]                 ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1901: warning: '_' used as an identifier
    [javac]     String prompt = _("Select (or create new) folder for sketches...");
    [javac]                     ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1925: warning: '_' used as an identifier
    [javac]       showWarning(_("Problem Opening URL"),
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1926: warning: '_' used as an identifier
    [javac]                   I18n.format(_("Could not open the URL\n{0}"), url), e);
    [javac]                               ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1949: warning: '_' used as an identifier
    [javac]       showWarning(_("Problem Opening Folder"),
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:1950: warning: '_' used as an identifier
    [javac]                   I18n.format(_("Could not open the folder\n{0}"), file.getAbsolutePath()), e);
    [javac]                               ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2072: warning: '_' used as an identifier
    [javac]       Base.showReference(_("Guide_MacOSX.html"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2074: warning: '_' used as an identifier
    [javac]       Base.showReference(_("Guide_Windows.html"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2076: warning: '_' used as an identifier
    [javac]       Base.openURL(_("http://www.arduino.cc/playground/Learning/Linux"));
    [javac]                    ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2081: warning: '_' used as an identifier
    [javac]     showReference(_("index.html"));
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2086: warning: '_' used as an identifier
    [javac]     showReference(_("Guide_Environment.html"));
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2091: warning: '_' used as an identifier
    [javac]     showReference(_("environment") + File.separator + _("platforms.html"));
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2091: warning: '_' used as an identifier
    [javac]     showReference(_("environment") + File.separator + _("platforms.html"));
    [javac]                                                       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2096: warning: '_' used as an identifier
    [javac]     showReference(_("Guide_Troubleshooting.html"));
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2101: warning: '_' used as an identifier
    [javac]     showReference(_("FAQ.html"));
    [javac]                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2113: warning: '_' used as an identifier
    [javac]     if (title == null) title = _("Message");
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2129: warning: '_' used as an identifier
    [javac]     if (title == null) title = _("Warning");
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2148: warning: '_' used as an identifier
    [javac]     if (title == null) title = _("Error");
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2496: warning: '_' used as an identifier
    [javac]         _("Could not remove old version of {0}"),
    [javac]         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2506: warning: '_' used as an identifier
    [javac]       _("Could not replace {0}"),
    [javac]       ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2547: warning: '_' used as an identifier
    [javac]         System.err.println(I18n.format(_("Could not delete {0}"), dir));
    [javac]                                        ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Base.java:2570: warning: '_' used as an identifier
    [javac]         System.err.println(I18n.format(_("Could not delete {0}"), dead));
    [javac]                                        ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:29: warning: '_' used as an identifier
    [javac] import static processing.app.I18n._;
    [javac]                                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:368: warning: '_' used as an identifier
    [javac]         statusError(_("No files were added to the sketch."));
    [javac]                     ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:371: warning: '_' used as an identifier
    [javac]         statusNotice(_("One file added to the sketch."));
    [javac]                      ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:375: warning: '_' used as an identifier
    [javac]         I18n.format(_("{0} files added to the sketch."), successful));
    [javac]                     ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:486: warning: '_' used as an identifier
    [javac]     fileMenu = new JMenu(_("File"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:488: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("New"), 'N');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:496: warning: '_' used as an identifier
    [javac]     item = Editor.newJMenuItem(_("Open..."), 'O');
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:505: warning: '_' used as an identifier
    [javac]       sketchbookMenu = new JMenu(_("Sketchbook"));
    [javac]                                  ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:512: warning: '_' used as an identifier
    [javac]       examplesMenu = new JMenu(_("Examples"));
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:517: warning: '_' used as an identifier
    [javac]     item = Editor.newJMenuItem(_("Close"), 'W');
    [javac]                                ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:525: warning: '_' used as an identifier
    [javac]     saveMenuItem = newJMenuItem(_("Save"), 'S');
    [javac]                                 ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:533: warning: '_' used as an identifier
    [javac]     saveAsMenuItem = newJMenuItemShift(_("Save As..."), 'S');
    [javac]                                        ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:543: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("Upload"), 'U');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:551: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("Upload and then Open Serial Monitor"), 'M');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:561: warning: '_' used as an identifier
    [javac]         item = newJMenuItemShift(_("Upload Using Programmer"), 'U');
    [javac]                                  ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:573: warning: '_' used as an identifier
    [javac]     item = newJMenuItemShift(_("Page Setup"), 'P');
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:581: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("Print"), 'P');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:593: warning: '_' used as an identifier
    [javac]       item = newJMenuItem(_("Preferences"), ',');
    [javac]                           ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:603: warning: '_' used as an identifier
    [javac]       item = newJMenuItem(_("Quit"), 'Q');
    [javac]                           ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:638: warning: '_' used as an identifier
    [javac]     sketchMenu = new JMenu(_("Sketch"));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:640: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("Verify / Compile"), 'R');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:650: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Copy Hex File as Path"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:660: warning: '_' used as an identifier
    [javac]                  Base.showMessage(_("No Hex File"),
    [javac]                                   ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:661: warning: '_' used as an identifier
    [javac]                            _("There is no Hex for this Sketch yet. Verify the Sketch first"));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:669: warning: '_' used as an identifier
    [javac]     item = newJMenuItemAlt(_("Show Compilation Folder"), 'R');
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:695: warning: '_' used as an identifier
    [javac]       importMenu = new JMenu(_("Import Library..."));
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:700: warning: '_' used as an identifier
    [javac]     item = newJMenuItem(_("Show Sketch Folder"), 'K');
    [javac]                         ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:709: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Add File..."));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:720: warning: '_' used as an identifier
    [javac]       importMenu = new JMenu(_("Import Library"));
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:768: warning: '_' used as an identifier
    [javac]     toolsMenu = new JMenu(_("Tools"));
    [javac]                           ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:774: warning: '_' used as an identifier
    [javac]     item = newJMenuItemShift(_("Serial Monitor"), 'M');
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:794: warning: '_' used as an identifier
    [javac]       boardsMenu = new JMenu(_("Board"));
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:803: warning: '_' used as an identifier
    [javac]       serialMenu = new JMenu(_("Serial Port"));
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:823: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Update programmer"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1046: warning: '_' used as an identifier
    [javac]       System.out.println(_("serialMenu is null"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1050: warning: '_' used as an identifier
    [javac]       System.out.println(_("name is null"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1057: warning: '_' used as an identifier
    [javac]         System.out.println(_("name is null"));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1117: warning: '_' used as an identifier
    [javac]       System.out.println(_("error retrieving port list"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1133: warning: '_' used as an identifier
    [javac]     JMenu menu = new JMenu(_("Help"));
    [javac]                            ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1172: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Getting Started"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1180: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Environment"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1188: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Troubleshooting"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1196: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Reference"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1204: warning: '_' used as an identifier
    [javac]     item = newJMenuItemShift(_("Find in Reference"), 'F');
    [javac]                              ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1216: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Frequently Asked Questions"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] /mnt/vbox/shared/github/Energia/app/src/processing/app/Editor.java:1224: warning: '_' used as an identifier
    [javac]     item = new JMenuItem(_("Visit Energia.nu"));
    [javac]                          ^
    [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 100 warnings
     [copy] Copying 1 file to /mnt/vbox/shared/github/Energia/app/bin
     [copy] Copying /mnt/vbox/shared/github/Energia/app/src/processing/app/Resources_ja.properties to /mnt/vbox/shared/github/Energia/app/bin/processing/app/Resources_ja.properties

build:
      [jar] Building jar: /mnt/vbox/shared/github/Energia/app/pde.jar

check-common-tools:

download-common-tools-linux:
     [echo] Downloading common tools
      [get] Getting: http://energia.nu/files/tools-common-linux64.tar.bz2
      [get] To: /mnt/vbox/shared/github/Energia/build/linux/tools-common.tar.bz2

unzip-common-tools-linux:
    [untar] Expanding: /mnt/vbox/shared/github/Energia/build/linux/tools-common.tar.bz2 into /mnt/vbox/shared/github/Energia/build/linux/work

linux-build:
     [copy] Copying 19 files to /mnt/vbox/shared/github/Energia/build/linux/work
     [copy] Copying 2 files to /mnt/vbox/shared/github/Energia/build/linux/work
     [copy] Copying 5 files to /mnt/vbox/shared/github/Energia/build/linux/work/lib

assemble:
     [copy] Copying 3 files to /mnt/vbox/shared/github/Energia/build/linux/work/tools
     [copy] Copying 2324 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware
    [mkdir] Created dir: /mnt/vbox/shared/github/Energia/build/linux/work/hardware/emt
     [copy] Copying 103 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc2600emt/libraries
     [copy] Copied 60 empty directories to 3 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc2600emt/libraries
     [copy] Copying 95 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/msp430/libraries
     [copy] Copied 53 empty directories to 2 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/msp430/libraries
     [copy] Copying 96 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/lm4f/libraries
     [copy] Copied 53 empty directories to 2 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/lm4f/libraries
     [copy] Copying 95 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc3200/libraries
     [copy] Copied 53 empty directories to 2 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc3200/libraries
     [copy] Copying 98 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/msp432/libraries
     [copy] Copied 56 empty directories to 3 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/msp432/libraries
     [copy] Copying 103 files to /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc3200emt/libraries
     [copy] Copied 60 empty directories to 3 empty directories under /mnt/vbox/shared/github/Energia/build/linux/work/hardware/cc3200emt/libraries

check-closure:

download-closure:
     [echo] Downloading closure
      [get] Getting: http://energia.nu/files/closure-emt-a61.tar.gz
      [get] To: /mnt/vbox/shared/github/Energia/build/linux/closure-emt-a61.tar.gz

unzip-closure:
    [untar] Expanding: /mnt/vbox/shared/github/Energia/build/linux/closure-emt-a61.tar.gz into /mnt/vbox/shared/github/Energia/build/linux/work/hardware/emt

BUILD FAILED
/mnt/vbox/shared/github/Energia/build/build.xml:82: The following error occurred while executing this line:
/mnt/vbox/shared/github/Energia/build/build.xml:463: The following error occurred while executing this line:
/mnt/vbox/shared/github/Energia/build/build.xml:184: /mnt/vbox/shared/github/Energia/build/linux/work/hardware/emt/ti/runtime/wiring/cc3200/libraries/WiFi does not exist.

Total time: 44 seconds
$ 

BTW: git pull fails in the emt directory

$ cd ../
$ git submodule update --init --recursive
$ git submodule sync
Synchronizing submodule url for 'emt'
$ cd emt
$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

$ git branch -l
* (HEAD detached at a350116)
  master
$ git status
HEAD detached at a350116
nothing to commit, working directory clean
$ git remote -v
origin  https://github.com/energia/emt.git (fetch)
origin  https://github.com/energia/emt.git (push)
$ pwd
/mnt/vbox/shared/github/Energia/emt

@daverusso
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, I was more concerned that your builds aren't failing.

Yep, me too.

Thanks for the build log, I think I now know what's happening: We're building with a later version of the closure (closure-emt-b11.tar.gz rather than closure-emt-a61.tar.gz) which is targeted for the next release of Energia but have not yet updated the .tar.gz that's in the Energia repo.

The Energia repo is huge and takes forever to clone. So, our automated builds/regressions don't clone from scratch and I've been avoiding adding more binary blobs that only makes the problem worse.

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ time git clone --recursive --depth 1 git://github.com/energia/Energia
Cloning into 'Energia'...
remote: Counting objects: 3995, done.
remote: Compressing objects: 100% (2984/2984), done.
remote: Total 3995 (delta 1128), reused 2919 (delta 683), pack-reused 0
Receiving objects: 100% (3995/3995), 178.72 MiB | 2.92 MiB/s, done.
Resolving deltas: 100% (1128/1128), done.
Checking connectivity... done.
Checking out files: 100% (4200/4200), done.
Submodule 'emt' (https://github.com/energia/emt.git) registered for path 'emt'
Cloning into 'emt'...
remote: Counting objects: 5442, done.
remote: Total 5442 (delta 0), reused 0 (delta 0), pack-reused 5442
Receiving objects: 100% (5442/5442), 26.44 MiB | 2.92 MiB/s, done.
Resolving deltas: 100% (3491/3491), done.
Checking connectivity... done.
Submodule path 'emt': checked out 'a350116673c64a5ba71a034b3baaa384b888776e'

real    1m21.168s
user    0m6.552s
sys 0m4.308s
$ 

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From here? http://energia.nu/files/closure-emt-b11.tar.gz

If so, them you must be using a different build.xml .. unless you have renamed b11 to a61 ...

So if I modify build.xml and change emt-a61 to emt-b11 it builds properly now. I didn't try any of the multi tasking examples. However, the crux of the problem is the checked in source code being out of sync with what you are actually using to build and test. The b11 archive has the missing directory, the a61 archive does not.

@daverusso
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From here? http://energia.nu/files/closure-emt-b11.tar.gz

Yes. Every time there's a change to emt, this tar ball is automatically updated (and the version number is incremented).

you must be using a different build.xml .. unless you have renamed b11 to a61 ...

Our builds download the latest version and pass it on the command line:

ant -Dclosure-version=emt-b11 dist

if I modify build.xml and change emt-a61 to emt-b11 it builds properly now

Thanks for verifying this (and pointing out the problem). I'll fix build.xml to add the missing directory so others don't run into the same issue and you can use a clean clone.

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you see my comment about how to speed up your clones by limiting the depth? On my really old machine it takes less than 2 minutes to do a clone

@RickKimball
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our builds download the latest version and pass it on the command line:

ant -Dclosure-version=emt-b11 dist

That would have been useful info ... Thanks that does work

@daverusso
Copy link
Author

@daverusso daverusso commented on 8c25e7c Apr 13, 2016 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.