Hi, in PKGBUILD you should quote variables that may contain spaces, in particular ${srcdir} and ${pkgdir} on lines 30, 37, 39, 48-49, 53, 61, 74-76, 78-81 and 91-94. Otherwise the build fails when there are directories that contain spaces.
See https://wiki.archlinux.org/index.php/Arch_packaging_standards.
Have a nice day.
Search Criteria
Package Details: emscripten-git 1.37.22.9.g559ac73cf-1
| Git Clone URL: | https://aur.archlinux.org/emscripten-git.git (read-only) |
|---|---|
| Package Base: | emscripten-git |
| Description: | LLVM-to-JavaScript compiler |
| Upstream URL: | http://emscripten.org |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Submitter: | benob |
| Maintainer: | haawda |
| Last Packager: | haawda |
| Votes: | 32 |
| Popularity: | 0.107796 |
| First Submitted: | 2012-10-01 17:47 |
| Last Updated: | 2017-10-12 22:31 |
Dependencies (11)
- nodejs (nodejs-0.12, nodejs-bigger-heap, nodejs-git, nodejs5, nodejs6-bin, nodejs-lts-argon, nodejs-lts-boron)
- python
- python2 (placeholder, pypy19, python26, stackless-python2)
- clang (clang-assert, clang-polly-svn, clang-pypy-stm, clang-svn, clang38) (make)
- cmake (cmake-git) (make)
- git (git-git) (make)
- libxml2 (libxml2-git, libxml2-linenum) (make)
- ocaml-ctypes (ocaml-ctypes-git) (make)
- gcc-go (gcc-go-git, gcc-go-multilib-x32, gcc-go-multilib) (optional) – for using llvm-go, go may also work
- java-environment (intellij-jdk, java-gcj-compat, jdk, jdk-arm, jdk-dcevm, jdk-devel, jdk5, jdk6, jdk7, jdk7-openjdk-infinality, jdk8, jdk8-j9-bin, jdk8-openjdk-infinality, jdk8-openjdk-jetbrains, jdk8-openjdk-jetbrains-git, jdk9-openj9-bin, tuxjdk, zulu-jdk, jdk7-openjdk, jdk8-openjdk, jdk9-openjdk) (optional) – for using clojure
- ruby (ruby1.8, rubinius-ruby) (optional) – for running some scripts
Required by (3)
- binaryen (requires emscripten) (make)
- binaryen-git (requires emscripten) (make)
- webjcs-git (requires emscripten) (optional)
Sources (5)
Latest Comments
midgard commented on 2017-08-13 14:25
haawda commented on 2016-12-27 21:00
Thanks for the hint, done.
gyscos commented on 2016-12-27 10:56
You could copy the stable emscripten.sh:
https://git.archlinux.org/svntogit/community.git/tree/trunk/emscripten.sh?h=packages/emscripten
gyscos commented on 2016-12-27 09:43
Looks like `/etc/profile.d/emscripten.sh` sets $EMSCRIPTEN_FASTCOMP to `/opt/emscripten-fastcomp` instead of `/usr/lib/emscripten-fastcomp`, leading to "No such file" errors.
haawda commented on 2015-08-23 18:43
Well I definitely had such problems, but right now it works fine, so I removed the option for the time being.
jplatte commented on 2015-08-23 18:29
Well I never had any problems building this before parallel builds were inactivated. What are the reasons you did this?
haawda commented on 2015-08-23 16:39
I had reasons to turn off parallel builds with options=('!makeflags').
jplatte commented on 2015-08-23 13:59
The option MAKEFLAGS from makepkg.conf is ignored, this package takes forever to build on multicore processors because it only compiles one file at a time.
Svenstaro commented on 2015-06-03 19:52
Doesn't this need clang as makedeps?
garyamort commented on 2015-02-25 22:26
Problem was in my makepkg config.
I edited /etc/makepkg.conf and removed -fvar-tracking-assigments from
#DEBUG_CFLAGS="-g -fvar-tracking-assignments"
#DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
garyamort commented on 2015-02-25 22:16
I'm getting
"clang: error: unknown argument: '-fvar-tracking-assignments'"
haawda commented on 2015-01-25 23:33
I think, not upstream but me was the culprit. I borrowd some ideas from the stable PKGBUILD which hopefully fix this.
Svenstaro commented on 2015-01-25 23:08
Getting this:
CRITICAL root: Cannot find /opt/emscripten-fastcomp/clang++, check the paths in ~/.emscripten
Perhaps some things have been changing upstream?
carstene1ns commented on 2014-11-02 08:55
@Svenstaro et al.: done[1]. I did a few things a bit different than this package, though. However, as I just recently started using emscipten, there might be things to improve. Most tests of the included test suite run fine so far.
[1]: https://aur.archlinux.org/packages/emscripten/
haawda commented on 2014-09-26 20:20
fixed
Idorobots commented on 2014-09-26 12:13
haawda, I've run into the same problem as lugubrious. It turns out that the current PKGBUILD doesn't compile emscripten-fastcomp-clang even though it's required to properly run emscripten. I've made a patch that fixes that (in addition to fixing `emcc --help` etc):
https://gist.github.com/Idorobots/ad4d749074f1d3715019
Svenstaro commented on 2014-09-25 00:45
Somebody make an emscripten (no git) package from the releases so I can eventually stick it into [community]! :P
haawda commented on 2014-09-24 20:11
lugubrious, I cannot reproduce your error.
lugubrious commented on 2014-09-24 07:02
I've figured out what's wrong - I need to run it with EMCC_FAST_COMPILER=0
Is there any way to run it with the fast compiler or do I need more tools?
Also as an amendment, I had to remove then reinstall clang to get it to correctly copy over the clang files to /opt/emscripten-fasctomp/
lugubrious commented on 2014-09-24 06:45
I'm getting this error
error: unknown target triple 'asmjs-unknown-emscripten', please use -triple or -arch
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
Any ideas? I'm a bit clueless. thanks
lugubrious commented on 2014-09-24 03:14
After the current build I was getting this error
WARNING root: Could not verify LLVM version: [Errno 2] No such file or directory
INFO root: (Emscripten: Running sanity checks)
CRITICAL root: Cannot find /opt/emscripten-fastcomp/clang++, check the paths in ~/.emscripten
The fix was symbolically linking them over
$ sudo cp -s /usr/bin/clang* /opt/emscripten-fastcomp/
haawda commented on 2014-09-16 18:54
build failed when using clang to compile, so I explicitely set CC=gcc now.
flaviut commented on 2014-08-17 02:41
Well, either it fixed itself or running makepkg twice fixes it.
flaviut commented on 2014-08-17 02:26
fatal: Cannot update paths and switch to branch 'makepkg' at the same time.
Did you intend to checkout 'origin/incoming' which can not be resolved as commit?
==> ERROR: Failure while creating working copy of emscripten git repo
Aborting...
I'm not really sure what the problem is, I've tried to massage the git commands manually a bit, but it still seems to be failing.
EscapedNull commented on 2014-08-07 21:42
haawada, I don't know how I didn't find that page when I was looking for a solution, but sure enough, it worked. I was running emcc in a proot without binding /dev/shm. Cheers and thanks for the update!
haawda commented on 2014-08-07 16:57
Does this help?
http://stackoverflow.com/questions/3314031/django-celery-implementation-oserror-errno-38-function-not-implemented#comment7543003_3699231
EscapedNull commented on 2014-08-07 15:12
After the update to package version 1.20.0, the python invoker script (emcc) always crashes. I tried
$ cp -i emscripten-git/emscripten.config ~/.emscripten
$ source ./emscripten-git/emscripten.sh
$ emcc --clear-cache
and still have had no luck. I don't know whether this is a fault of the package, emscripten itself, my system, or something else. Here is the full stack trace and additional info:
http://pastebin.com/tRwGn8db
Looks like I'll be downgrading back to 1.18.3. If anyone else has run into this problem, please share. Any help is appreciated.
haawda commented on 2014-06-25 20:22
EscapedNull: this is the default behaviour of -git-packages.
Btw., I updated the package, but I am really not sure if it is packaged correctly. Help is appreciated.
EscapedNull commented on 2014-04-28 12:21
What's up with these version numbers? PKGBUILD says 1.15.0, AUR says 1.15.0-1, and after upgrading em++ --version says 1.16.0? Anyway, thanks for the upgrade! em++ automatically detected the version change and cleared the cache; no logout was required for me. :)
bitwave commented on 2014-04-23 14:59
please add cmake as build dependency
cruelbob commented on 2014-03-21 20:43
I updated PKGBUILD. If you have previous version then you should restart system because of env variables.
Svenstaro commented on 2014-03-21 18:58
The .emscripten file should look like this because you set those variables.
LLVM_ROOT = os.path.expanduser(os.getenv('EMSCRIPTEN_FASTCOMP') or '/opt/emscripten-fastcomp') # directory
Instead, it has this
LLVM_ROOT = os.path.expanduser(os.getenv('LLVM') or '/usr/bin') # directory
You should change the default config the package generates or provide the user with a good install message.
EscapedNull commented on 2014-03-20 12:41
@cruelbob I tried
rm -i ~/.emscripten
./emscripten.sh
emcc
and I still got the same "no JSBackend" message, even after logging out and logging back in. Note that it says "Running sanity checks" every time the "no JSBackend" message appears. Probably emscripten.sh needs to be sourced by ~/.bash_profile or something, to make the environment variables persistent. Copying the config manually works, and it's easier.
cruelbob commented on 2014-03-20 04:49
@Svenstaro
@EscapedNull
To everyone. emscripten.sh includes:
export EM_CONFIG="/usr/lib/emscripten/emscripten.config"
On first run(in stall script) emscripten does sanity checks and creates sanity config files.
So you should restart or relogin to your computer. After that emscripten works properly. Dont copy config file to your home directory. I will add this msg to install script.
cruelbob commented on 2014-03-20 04:48
@Svenstaro
@EscapedNull
To everyone. emscripten.sh includes:
export EM_CONFIG="/usr/lib/emscripten/emscripten.config"
On first run(in stall script) emscripten does sanity checks and creates sanity config files.
So you should restart or relogin to your computer. After that emscripten works properly. Dont copy config file to your home directory. I will add this msg to to install script.
Svenstaro commented on 2014-03-20 02:33
Also, really really don't do thing with the current user, please. That includes running a script that will generate something for the current user. This only works once. Please don't do that. Write a message there instead, informing the user.
Svenstaro commented on 2014-03-20 02:31
@cruelbob: The issue is illustrated right here by EscapedNull.
EscapedNull commented on 2014-03-20 02:31
@Svenstaro That worked! Thanks! For the next person who runs into this:
cp -i emscripten.config ~/.emscripten
@cruelbob Mad props on upgrading to fastcomp. I guess this means no more compile-time coffee breaks :)
Svenstaro commented on 2014-03-20 02:15
You are seeing my issue probably. Manually copy proper config file in place.
EscapedNull commented on 2014-03-20 01:48
When I run emcc/em++ I get:
CRITICAL root: fastcomp in use, but LLVM has not been built with the JavaScript backend as a target, llc reports [...]
Has anyone else run into this?
cruelbob commented on 2014-03-19 06:26
Svenstaro, What is wrong in install script for you?
Svenstaro commented on 2014-03-18 02:02
The install script didn't work reliably for me. I had to copy the config by hand to make it work. When I ran emcc, it told me that it was actually running for the first time. Anyway, it works quite well, so thanks for the PKGBUILD.
cruelbob commented on 2014-03-13 15:05
I switched emscripten backend in this packet to llvm-backend(c++) version. For details see url from my previous comment.
cruelbob commented on 2014-03-13 15:03
I switched backend to llvm-backend(c++). See url from previous comment.
cruelbob commented on 2014-02-19 16:34
EscapedNull commented on 2014-02-19 15:56
benob, thanks for the reply. I didn't realize emscripten itself was written in Javascript. It makes sense now. Looking forward to trying the C++ backend when/if it becomes available.
benob commented on 2014-02-19 15:46
Emscripten needs a js interpreter because the compiler (from LLVM to js) itself is written in javascript. A new c++ backend is being written but I don't know the current status.
EscapedNull commented on 2014-02-19 15:39
Why is Node.js a dependency? You can use emscripten to compile to browser Javascript just the same.
cruelbob commented on 2014-01-10 10:33
ok, it is up-to-date now
benob commented on 2014-01-09 15:46
Disowning package as I don't use it anymore
cruelbob commented on 2014-01-09 11:15
may be you can add enviroment variable to system?
emscripten.sh to /etc/profile.d
#!/bin/bash
export EMSCRIPTEN=/usr/lib/emscripten
flying-sheep commented on 2013-10-26 10:50
that branch isn’t up-to-date, so it’s hardly “emscripten-git” anymore.
benob commented on 2013-09-18 08:18
Updated source, thanks.
DIDI2002 commented on 2013-09-17 21:39
note to anyone wondering:
source=('git://github.com/kripken/emscripten.git#branch=llvmsvn'
cruelbob commented on 2013-08-13 06:47
Emscripten from master branch now doesnt work with clang 3.3 from pacman. I think you can see llvmsvn branch of emscripten.
benob commented on 2013-05-29 22:01
I applied the patch, thanks.
m13253 commented on 2013-05-29 15:21
Please update your PKGBUILD to meet the new https://wiki.archlinux.org/index.php/Arch_CVS/SVN_PKGBUILD_guidelines
I have already made a patch: http://pastebin.com/DtdZ8Z9D
P.S: And with the new CVS PKGBUILD way, it is no longer needed to build in a separate emscripten-build directory, because makepkg will automatically clone a backup for you.