Re: Project fails to compile on different machines

2015-03-11 Thread Aaron France
The makefile is not ran in parallel -- the Makefile is being explicit for
non-Clojure users.

Read above -- the issue is solved, there's an issue with the profiles and
AOT.

On Wed, 11 Mar 2015 at 16:21 Tassilo Horn t...@gnu.org wrote:

 Aaron France aaron.l.fra...@gmail.com writes:

 Hi Aaron,

  The makefile calls compile then uberjar, which is why things are
  compiled twice, so it seems my problem lies *just* with uberjar.

 So why do you compile and then let uberjar compile again?  And there's
 also no need to call the deps target explicitly.  Leiningen does that
 automatically.  (Or all in all, I don't see any reason why you use a
 Makefile at all.)

  Any idea why compile would succeed but then uberjar would fail?

 A shot in the blue: GNU make builds receipes in parallel if they don't
 depend on each other and MAKEFLAGS contains the -jN flag where N denotes
 the max number of parallel makes.  Your receipes don't depend on each
 other thus could be executed in parallel.  But then there's a chance
 that two compilations (one from lein compile, one from lein uberjar) run
 in parallel and overwrite each other's files, or a file gets loaded
 which is currently being written to.

 So my guess is, on system 1 MAKEFLAGS is -j1 or unset, on system 2
 MAKEFLAGS contains at least -j2.

 Bye,
 Tassilo


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project fails to compile on different machines

2015-03-11 Thread Tassilo Horn
Aaron France aaron.l.fra...@gmail.com writes:

Hi Aaron,

 The makefile calls compile then uberjar, which is why things are
 compiled twice, so it seems my problem lies *just* with uberjar.

So why do you compile and then let uberjar compile again?  And there's
also no need to call the deps target explicitly.  Leiningen does that
automatically.  (Or all in all, I don't see any reason why you use a
Makefile at all.)

 Any idea why compile would succeed but then uberjar would fail?

A shot in the blue: GNU make builds receipes in parallel if they don't
depend on each other and MAKEFLAGS contains the -jN flag where N denotes
the max number of parallel makes.  Your receipes don't depend on each
other thus could be executed in parallel.  But then there's a chance
that two compilations (one from lein compile, one from lein uberjar) run
in parallel and overwrite each other's files, or a file gets loaded
which is currently being written to.

So my guess is, on system 1 MAKEFLAGS is -j1 or unset, on system 2
MAKEFLAGS contains at least -j2.

Bye,
Tassilo

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project fails to compile on different machines

2015-03-11 Thread Tassilo Horn
Aaron France aaron.l.fra...@gmail.com writes:

 Here is output compiling on the different machines:
 https://gist.github.com/AeroNotix/70a2d10bbb050aa0542a

What does your Makefile look like?  Does it just call lein uberjar or
what?

I think it's strange that even on the machine where it builds
successfully every namespace seems to get compiled twice.

Bye,
Tassilo

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project fails to compile on different machines

2015-03-11 Thread Aaron France
Hi,

The relevant parts of the Makefile are 
here: https://gist.github.com/AeroNotix/f65a846781357db59ced

On Wednesday, 11 March 2015 14:01:20 UTC+1, Tassilo Horn wrote:

 Aaron France aaron.l...@gmail.com javascript: writes: 

  Here is output compiling on the different machines: 
  https://gist.github.com/AeroNotix/70a2d10bbb050aa0542a 

 What does your Makefile look like?  Does it just call lein uberjar or 
 what? 

 I think it's strange that even on the machine where it builds 
 successfully every namespace seems to get compiled twice. 

 Bye, 
 Tassilo 


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project fails to compile on different machines

2015-03-11 Thread Aaron France
The makefile calls compile then uberjar, which is why things are compiled 
twice, so it seems my problem lies *just* with uberjar.


Any idea why compile would succeed but then uberjar would fail?

On Wednesday, 11 March 2015 14:22:17 UTC+1, Aaron France wrote:

 Hi,

 The relevant parts of the Makefile are here: 
 https://gist.github.com/AeroNotix/f65a846781357db59ced

 On Wednesday, 11 March 2015 14:01:20 UTC+1, Tassilo Horn wrote:

 Aaron France aaron.l...@gmail.com writes: 

  Here is output compiling on the different machines: 
  https://gist.github.com/AeroNotix/70a2d10bbb050aa0542a 

 What does your Makefile look like?  Does it just call lein uberjar or 
 what? 

 I think it's strange that even on the machine where it builds 
 successfully every namespace seems to get compiled twice. 

 Bye, 
 Tassilo 



-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Project fails to compile on different machines

2015-03-10 Thread Aaron France
Hi,


I have a project (unfortunately private) that uses a lot of java interop to 
provide Java with a seemless java-like API.


On one of my development machines I can compile the project fine, but the 
other not. Both are set up (what I think)
in the same relevant ways. 

Here is output compiling on the different machines: 
https://gist.github.com/AeroNotix/70a2d10bbb050aa0542a

The lein version is 2.5.0 on both machines (I'm using the lein.sh script)

Aaron


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project fails to compile on different machines

2015-03-10 Thread Aaron France
prred correctly? I've cleaned the maven cache on both machines completely.

On Wed, 11 Mar 2015 at 00:26 Ivan L ivan.laza...@gmail.com wrote:

 seems like a clear classnotfound error to me.  make sure both environments
 are building from a clean state (no build caches) and that your classes are
 being prred correctly.

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups Clojure group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/clojure/UtnchSngQAY/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Project fails to compile on different machines

2015-03-10 Thread Ivan L
seems like a clear classnotfound error to me.  make sure both environments are 
building from a clean state (no build caches) and that your classes are being 
prred correctly.

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.