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

Compilation segfaults #11

Closed
CoderPuppy opened this issue Dec 29, 2013 · 9 comments
Closed

Compilation segfaults #11

CoderPuppy opened this issue Dec 29, 2013 · 9 comments

Comments

@CoderPuppy
Copy link

Log: http://pastebin.com/wr1ZJf6M
OS: Debian Wheezy
uname -a: Linux cpup-laptop 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux

@nddrylliog
Copy link
Member

Which rock version do you have? (rock -V)

@CoderPuppy
Copy link
Author

rock -V: rock 0.9.8 codename columbia, built on Fri Dec 27 23:07:00 2013

@nddrylliog
Copy link
Member

For now, sam requires rock 0.9.9.

Installing rock 0.9.9 is relatively easy:

cd path/to/rock
make backup
git checkout 99x
make clean safe

Then rock -V should report rock 0.9.9

@nddrylliog
Copy link
Member

@CoderPuppy did you get sam to work? Can this issue be closed?

@CoderPuppy
Copy link
Author

Oh yeah. It works now.

@dubst3pp4
Copy link

make clean safe

throws an error on my system:

/usr/local/rock# make clean safe
rm -rf *_tmp/ .libs/
rm -rf `find build/ -name '*.o'`
OOC='bin/safe_rock' make self
make[1]: Betrete Verzeichnis '/usr/local/rock'
mkdir -p bin/
bin/safe_rock -v -pg -O3 +-w -I/usr/local/rock/vendor-prefix/include -L/usr/local/rock/vendor-prefix/lib --gc=dynamic  rock.use -o=bin/rock
[lang/Backtrace] Falling back on execinfo.. (build extension if you want fancy backtraces)
[Exception in PathList]: Classpath element cannot be found: /usr/local/rock/vendor-prefix/include
(SIGABRT) abort program
[lang/Backtrace] Falling back on execinfo.. (build extension if you want fancy backtraces)
bin/safe_rock(lang_Backtrace__BacktraceHandler_backtrace_impl+0x6c) [0x517182]
bin/safe_rock(lang_Exception__Exception_getCurrentBacktrace+0x13) [0x50be99]
bin/safe_rock(lang_Exception___signalHandler+0x121) [0x50c17f]
/lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x2b6a8e67bff0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x2b6a8e67bf77]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x2b6a8e67f5e8]
bin/safe_rock(lang_Exception__Exception_throw_impl+0x29) [0x50c7c6]
bin/safe_rock(rock_frontend_PathList__PathList_add_impl+0xe0) [0x496024]
bin/safe_rock(rock_frontend_CommandLine__CommandLine_init+0x38e) [0x490ad2]
bin/safe_rock(rock_frontend_CommandLine__CommandLine_new+0x2c) [0x4920ab]
bin/safe_rock(main+0x2d) [0x48f982]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x2b6a8e666de5]
bin/safe_rock() [0x48f9b2]
make[1]: *** [self] Fehler 6
make[1]: Verlasse Verzeichnis '/usr/local/rock'
make: *** [safe] Fehler 2

Any ideas? It would be great if someone could update the install guide (http://ooc-lang.org/install/) :-)

@nddrylliog
Copy link
Member

@dubst3pp4 In that case, it's a bit different.. in 0.9.9, vendor-prefix appeared, but apparently you had rock from earlier. Here's what you should try:

cd /usr/local/rock
rm -rf libs # old way to distribute the GC
make boehmgc # install boehm-gc in vendor-prefix
make safe # compile new rock from old rock

Since 0.9.9 is very much bleeding edge and, as you've noticed, you're running into different problems because of the time you checked out the repo. There's a lot of new stuff in 0.9.9, when it comes out (ie. when it's merged with master), release notes will contain instructions to upgrade from 0.9.8 .. and the install from scratch instructions will still be the same :)

@dubst3pp4
Copy link

Thank you very much, this worked :-)

/usr/local/rock# rock -V
rock 0.9.9-head codename lena, built on Tue Feb  4 14:15:55 2014

@nddrylliog
Copy link
Member

@dubst3pp4 for next time: try not to comment on old/closed issues, except if it's the exact same problem :) opening a new issue is cheap. Glad you got it all worked out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants