Fork me on GitHub
#planck
<
2016-12-07
>
tianshu15:12:22

Hi, I'm trying to compile planck on arch linux.

tianshu15:12:37

met a exception when execute script/build

mfikes15:12:57

Or, perhaps a better question: What exception did you see?

tianshu15:12:53

my network is bad, so uploading snippet takes time..😂

tianshu15:12:11

the first time, it download dependencies successfully. I think

tianshu15:12:04

It's looks like missing the clojurescript jar in classpath?

tianshu15:12:35

please give me some tips to figure out where's the problem.

mfikes15:12:11

@doglooksgood Are you trying to build a released beta version, or master?

tianshu15:12:20

on master branch

mfikes15:12:24

@doglooksgood My guess would be that if you did a script/clean and then a script/build then it might clear the problem. The root cause might be that you may not have lein set up or somesuch that caused it.

tianshu15:12:27

which branch should i use

mfikes15:12:40

The head of master doesn’t need to build ClojureScript itself.

mfikes15:12:12

Is the snippet above from the very beginning of the output?

tianshu15:12:00

yes, it begin with ### Building planck-cljs.

tianshu15:12:14

seems script/clean does not work

mfikes15:12:15

@doglooksgood In the lib subdirectory of where you cloned planck does it have a cljs-1.9.330-1.jar file?

tianshu15:12:16

yes, it does

tianshu15:12:22

~/ ps uax|grep java
tianshu  18011  122  1.7 3331632 69856 pts/2   Sl+  23:52   0:01 java -Xbootclasspath/a:/home/tianshu/.lein/self-installs/leiningen-2.7.0-standalone.jar -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dleiningen.original.pwd=/home/tianshu/repos/planck/planck-cljs -Dleiningen.script=script/lein -classpath /home/tianshu/.lein/self-installs/leiningen-2.7.0-standalone.jar clojure.main -m leiningen.core.main with-profile build classpath
this is the process when bulid is running.

mfikes15:12:18

I’m going to set up a Arch VM and see if I can reproduce the issue.

mfikes15:12:37

Are you running a particular version of Arch?

tianshu15:12:17

before this, is it possible caused by my leiningen version is 2.7.1?

tianshu15:12:38

it still download the 2.7.0, so I have two jar in self-installs.

mfikes15:12:49

I’m using lein 2.7.1

tianshu15:12:39

so, will the build script download lein 2.7.0?

mfikes15:12:55

Yes, there is a planck-cljs/script/lein that it uses

tianshu16:12:08

~/.lein/ cat /proc/version Linux version 4.8.11-1-ARCH (builduser@tobias) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016

mfikes16:12:57

OK. I have Linux archlinux.vagrant.vm 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64 GNU/Linux set up now. Perhaps that is close enough.

mfikes16:12:17

I’m updating that VM to ensure it has the latest...

mfikes16:12:05

Looks like it is getting linux-4.8.12-2-x86_64

tianshu16:12:39

I just look at the process I've post above, it seems like the clojurescript jar is not located in classpath?

tianshu16:12:13

or the lib directory is added by default?

tianshu16:12:50

i think i have to go to bed for now. 💤 it's midnight here

mfikes16:12:04

@doglooksgood Thanks for sharing. I was able to build in that VM. I did discover another issue with the built planck binary that I’ll log, but otherwise things built.