Giter Site home page Giter Site logo

-Lgc library not found about volta HOT 11 CLOSED

voltlang avatar voltlang commented on June 2, 2024
-Lgc library not found

from volta.

Comments (11)

bhelyer avatar bhelyer commented on June 2, 2024

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.

Wallbraker avatar Wallbraker commented on June 2, 2024

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.

perfaram avatar perfaram commented on June 2, 2024

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.

Dav1dde avatar Dav1dde commented on June 2, 2024

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.

perfaram avatar perfaram commented on June 2, 2024

42... should've guessed ! Thanks again !

from volta.

perfaram avatar perfaram commented on June 2, 2024

One more thing : how do I build it manually ?

from volta.

Wallbraker avatar Wallbraker commented on June 2, 2024

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.

Wallbraker avatar Wallbraker commented on June 2, 2024

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.

Dav1dde avatar Dav1dde commented on June 2, 2024

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.

perfaram avatar perfaram commented on June 2, 2024

OK, will see that this evening. BTW, #7 .

from volta.

perfaram avatar perfaram commented on June 2, 2024

OK, everything seems good, everything works, everything compiles, everything is beautiful 😄

from volta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.