New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cparser compiler detection #239

Closed
nkindt opened this Issue Oct 20, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@nkindt

nkindt commented Oct 20, 2018

CParser is a pretty good C99 compiler with aggressive code optimizations. Would be great to have it in xmake.
https://github.com/libfirm/cparser

@waruqi

This comment has been minimized.

Member

waruqi commented Oct 20, 2018

This looks like a great compiler, I will consider supporting it in the next release.

@waruqi waruqi added this to the v2.2.3 milestone Oct 20, 2018

@nkindt

This comment has been minimized.

nkindt commented Oct 20, 2018

Great, thanks!

@waruqi

This comment has been minimized.

Member

waruqi commented Oct 21, 2018

I have supported this compiler, you can update the master version to try it. https://github.com/tboox/xmake/releases/download/v2.2.2/xmake-v2.2.3-dev.exe

8d54743

@nkindt

This comment has been minimized.

nkindt commented Oct 22, 2018

Ok, will test as soon as possible.

@nkindt

This comment has been minimized.

nkindt commented Oct 23, 2018

I would need to test it on Linux (cparser doesn't work on Windows) and have troubles doing a fresh compile. Compiling 2.2.3 works fine but gives the same issue as the Debian package installation:

not found main script: /home/nk/.local/share/xmake/core/_xmake_main.lua

If i do the bash magic it gets all mixed up and things get worse:

sudo bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh)
bash: /dev/fd/63: No such file or directory
nk@h530 ~ $ curl: (23) Failed writing body (2175 != 2759)

Could you advice on how to compile and run 2.2.3 properly or give a ready binary?

@waruqi

This comment has been minimized.

Member

waruqi commented Oct 24, 2018

You can try running bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -) to install it and you need not add sudo.

Or you can clone source code to compile and install it. You can docs https://xmake.io/#/home?id=compilation

@nkindt

This comment has been minimized.

nkindt commented Oct 25, 2018

Executing the above command gets me here:

...
installing to /home/nk/.local ...
plat: linux
arch: x86_64
rm: cannot remove '/home/nk/.local/share/xmake/core': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/scripts': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/templates': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/plugins': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/languages': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/platforms': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/rules': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/xmake': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/modules': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/actions': Permission denied
rm: cannot remove '/home/nk/.local/share/xmake/repository': Permission denied
makefile:61: recipe for target 'install' failed
make: *** [install] Error 1
Install Fail
@waruqi

This comment has been minimized.

Member

waruqi commented Oct 26, 2018

You can remove the previous installed files and reinstall it.

$ sudo rm -rf /home/nk/.local/share/xmake/
$ sudo rm /home/nk/.local/bin/xmake
$ bash <(wget https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh -O -) 
@nkindt

This comment has been minimized.

nkindt commented Oct 31, 2018

Was a bit busy, everything seems to work, thanks!

@nkindt nkindt closed this Oct 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment