neuroConstruct icon indicating copy to clipboard operation
neuroConstruct copied to clipboard

Can't install on mac via ant run

Open MRIO opened this issue 5 years ago • 11 comments

Sorry if I'm being monke, but:

trying to follow the simple build instructions via ant, but ant run fails. I'm on Big Sur and I have ant via homebrew. But this happens

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

What is the best way to proceed?

╰─ ant run
Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init:
     [echo] ----------- neuroConstruct v1.7.2 ------------
     [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:
    [mkdir] Created dir: /Users/m/Sync/Projects/Code/neuroConstruct/classes

libneuromljar:
     [echo] Building the libNeuroML jar in: ./NeuroML2, true

initnml:
     [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar
    [mkdir] Created dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build

compilenml:
     [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build
    [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] error: Source option 6 is no longer supported. Use 7 or later.
    [javac] error: Target option 6 is no longer supported. Use 7 or later.

BUILD FAILED
/Users/m/Sync/Projects/Code/neuroConstruct/build.xml:180: The following error occurred while executing this line:
/Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build.xml:82: Compile failed; see the compiler error output for details.

MRIO avatar Jan 28 '21 10:01 MRIO

@MRIO I've just updated to Big sur too and having lots of fun with incompatibilities and moved libraries. Some of these I've started fixing in some repos, e.g. https://github.com/NeuroML/org.neuroml1.model/commit/d4f796495ec6f22412adeac66708c23492d80079, and I'll get round to testing nC today hopefully

pgleeson avatar Jan 28 '21 11:01 pgleeson

lots of fun

I can’t say I envy you =], and thanks for getting back to me. I’ll be watching nC closely —

MRIO avatar Jan 28 '21 11:01 MRIO

@MRIO Can you try building the latest commit? Have fixed the "Source option 6 is no longer supported" issue...

pgleeson avatar Jan 28 '21 13:01 pgleeson

Nope, can't... , /Users/m/Sync/Projects/Code/neuroConstruct/build.xml:235: /Users/m/Sync/Projects/Code/neuroConstruct/jNeuroMLJar does not exist.

╰─ ant run
Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init:
     [echo] ----------- neuroConstruct v1.7.2 ------------
     [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:

libneuromljar:

compile:
    [javac] Compiling 372 source files to /Users/m/Sync/Projects/Code/neuroConstruct/classes

BUILD FAILED
/Users/m/Sync/Projects/Code/neuroConstruct/build.xml:235: /Users/m/Sync/Projects/Code/neuroConstruct/jNeuroMLJar does not exist.

MRIO avatar Jan 28 '21 13:01 MRIO

Have you run - ./updatenC.sh & checked no errors? See https://github.com/NeuralEnsemble/neuroConstruct/blob/master/.travis.yml#L16

pgleeson avatar Jan 28 '21 14:01 pgleeson

I did, and there were nothing out of the ordinary happened, ending with a lovely

Already up to date. /Users/m/Sync/Projects/Code/neuroConstruct

Feeling a bit helpless today =/

Thanks,

M.

MRIO avatar Jan 28 '21 14:01 MRIO

Try: svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar in that dir & make sure the folder is there before rebuilding...

pgleeson avatar Jan 28 '21 14:01 pgleeson

jNeuroMLJar is there, and even after git pull it still gives me the previous problem:

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

╰─ ant run Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init: [echo] ----------- neuroConstruct v1.7.2 ------------ [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:

libneuromljar: [echo] Building the libNeuroML jar in: ./NeuroML2, true

initnml: [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar

compilenml: [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 [javac] error: Source option 6 is no longer supported. Use 7 or later. [javac] error: Target option 6 is no longer supported. Use 7 or later.

On 28 Jan 2021, at 15:43, Padraig Gleeson [email protected] wrote:

Try: svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar in that dir & make sure the folder is there before rebuilding...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeuralEnsemble/neuroConstruct/issues/66#issuecomment-769119814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5EGFEOSU75B37R77MNMQTS4FZZRANCNFSM4WW27XQQ.

MRIO avatar Jan 28 '21 14:01 MRIO

I double checked build.xml and the correct indications are there:

<javac srcdir="${src.dir}"
       destdir="${build.dest}"
       debug="${debug}"
       optimize="${optimize}"
       compiler="modern"
       source="1.8"
       target=“1.8"

On 28 Jan 2021, at 15:52, Mario Negrello [email protected] wrote:

jNeuroMLJar is there, and even after git pull it still gives me the previous problem:

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

╰─ ant run Buildfile: /Users/m/Sync/Projects/Code/neuroConstruct/build.xml

init: [echo] ----------- neuroConstruct v1.7.2 ------------ [echo] Initialised neuroConstruct project to build jar: .//neuroConstruct_1.7.2.jar

prepare:

libneuromljar: [echo] Building the libNeuroML jar in: ./NeuroML2, true

initnml: [echo] Initialising NeuroML with base dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2, jar file: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/libNeuroML-2.0.0.jar

compilenml: [echo] Compiling NeuroML code to dir: /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] Compiling 22 source files to /Users/m/Sync/Projects/Code/neuroConstruct/NeuroML2/build [javac] warning: [options] bootstrap class path not set in conjunction with -source 6 [javac] error: Source option 6 is no longer supported. Use 7 or later. [javac] error: Target option 6 is no longer supported. Use 7 or later.

On 28 Jan 2021, at 15:43, Padraig Gleeson <[email protected] mailto:[email protected]> wrote:

Try: svn co https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar https://svn.code.sf.net/p/neuroml/code/jNeuroMLJar jNeuroMLJar in that dir & make sure the folder is there before rebuilding...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeuralEnsemble/neuroConstruct/issues/66#issuecomment-769119814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5EGFEOSU75B37R77MNMQTS4FZZRANCNFSM4WW27XQQ.

MRIO avatar Jan 28 '21 14:01 MRIO

I committed a version of the jNeuroMLjar which was built with java 1.7 (which should be enough). Can you:

 cd jNeuroMLJar/
 svn up
 cd ..
 ant clean 
 ant run

pgleeson avatar Jan 28 '21 16:01 pgleeson

Sadly it didn’t work at revision 1326. Same hurdle…

[javac] error: Source option 6 is no longer supported. Use 7 or later.
[javac] error: Target option 6 is no longer supported. Use 7 or later.

On 28 Jan 2021, at 17:23, Padraig Gleeson [email protected] wrote:

cd jNeuroMLJar/ svn up cd .. ant clean ant run

MRIO avatar Jan 28 '21 19:01 MRIO