Skip to content
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

recompiling the compiler: Segmentation fault: 11 #349

Closed
bentxt opened this issue Jun 22, 2019 · 8 comments
Closed

recompiling the compiler: Segmentation fault: 11 #349

bentxt opened this issue Jun 22, 2019 · 8 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@bentxt
Copy link

bentxt commented Jun 22, 2019

doing as described in the readme:

the 'vc' compiler segfaults

mkdir -p ~/code && cd ~/code  # ~/code directory has to be used (it's a temporary limitation)
git clone https://github.com/vlang/v
cd v/compiler
wget https://vlang.io/v.c # Download the V compiler's source translated to C
cc -w -o vc v.c           # Build it with Clang or GCC
./vc -o v .               # Use the resulting V binary to build V from V source

Segmentation fault: 11


this is on mac os
$ cc -v
Apple LLVM version 10.0.1 (clang-1001.0.46.3)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@zac-garby
Copy link

what happens if you type clang v.c

@cheslip
Copy link

cheslip commented Jun 22, 2019

see #345

@jgouly
Copy link

jgouly commented Jun 22, 2019

You need to mkdir /var/tmp/vlang0.0.12/

@Bowero
Copy link
Member

Bowero commented Jun 22, 2019

what happens if you type clang v.c

resolved my issue.

@bentxt
Copy link
Author

bentxt commented Jun 22, 2019

clang v.c -o vc
./vc
V 0.0.12
>>> println('hello')
Segmentation fault: 11

@CryZe
Copy link

CryZe commented Jun 22, 2019

@bentxt you need mkdir /var/tmp/vlang0.0.12/

@bentxt
Copy link
Author

bentxt commented Jun 22, 2019

yes thanks

mkdir /var/tmp/vlang0.0.12/

solved my issue, while using 'clang' didnt' make a difference

@bentxt bentxt closed this as completed Jun 22, 2019
@bentxt
Copy link
Author

bentxt commented Jun 22, 2019

thanks for super fast (realtime) help

yuyi98 pushed a commit to yuyi98/v that referenced this issue Jun 21, 2022
@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

7 participants