Comments (11)
GC is the Boehm garbage collector. It's probably not installed by default with OS X, so it really should be mentioned on our readme. I don't use OS X myself, so I can't give you specific installation instructions but hopefully an Apple-using compatriot will be along if you need specifics.
from volta.
I used these commands to create a working libgc.a.
curl http://www.hboehm.info/gc/gc_source/gc-7.4.2.tar.gz -o gc-7.4.2.tar.gz
tar xfv gc-7.4.2.tar.gz
cd gc-7.4.2
git clone git://github.com/ivmai/libatomic_ops.git
./configure
make -j9
cp .libs/libgc.a <somewhere where volta can find it>
I personally just install it in a 'lib' folder and point volta to it with:
-L
<path>/lib
from volta.
OK, thanks ! Now it finds the GC lib (at least, doesn't complain about not finding it).
BUT : I get make: [run] Error 42 (ignored)
. What is it ?
from volta.
This means it works! make run
compiles and runs the test.volt file (which happens to exit with error code 42). You now have a fully functional Volt compiler! :)
from volta.
42... should've guessed ! Thanks again !
from volta.
One more thing : how do I build it manually ?
from volta.
Add the following file as volt.conf next the binary (proably in the Volta repo) and edit if needed:
# This is a comment
#
# One argument per line, a whole line is read unescaped.
#
# Replacer variables.
# %@execdir% directory where the binary is located.
# %@arch% architecture of the current target.
# %@platform% platform of the current target.
#
--stdlib-file
%@execdir%/rt/libvrt-%@arch%-%@platform%.bc
--stdlib-I
%@execdir%/rt/src
--stdlib-file
%@execdir%/../Watt/libwatt-%@arch%-%@platform%.bc
--stdlib-I
%@execdir%/../Watt/src
-L
%@execdir%
-l
gc
-l
dl
With that config file you will need to checkout the Watt repo next to the Volta repo and then build it.
We hope to add more documentation and howto's in the coming weeks.
from volta.
You can join us on IRC in #volt on Freenode. And also feel free to checkout our Trello board for some of the plans: https://trello.com/b/tnuM8Sjy/volt
from volta.
One more thing which isn't documentated, how to build Tesla and Watt:
You either need the Volt compiler in your $PATH or an environment variable called VOLT
to link to the ready Volt binary, for me it is: VOLT=../Volta/volt
. E.g.: VOLT=../Volta/volt make
.
from volta.
OK, will see that this evening. BTW, #7 .
from volta.
OK, everything seems good, everything works, everything compiles, everything is beautiful
from volta.
Related Issues (20)
- Volt vs D HOT 7
- Volt site CMS HOT 1
- Safe int HOT 2
- take ideas from Julia and Nim languages HOT 12
- Does Volta need foreach_revese? HOT 6
- Change logical operators to word HOT 1
- Feature modular/configurable runtime HOT 6
- Why is separating class ind struct is bad? HOT 6
- Ideas, queries and issues HOT 5
- Coming from D guide HOT 9
- About Volta web site
- Pattern matching HOT 1
- Function decorator bloat HOT 13
- Distribute the compiler with all dll that are needed HOT 1
- error: No valid LLVM Toolchains found! HOT 5
- is Volt development stopped ? HOT 2
- Build failed (macOS) [can be fixed] HOT 9
- Volt is BROKEN and should be fixed HOT 2
- main.volt:1:1: error: can't find module 'core.compiler.defaultsymbols'.
- error while building hello file from Getting Set Up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volta.