Mint 16 and Elementary OS installation issue

10 views
Skip to first unread message

x ray

unread,
Nov 21, 2017, 6:08:52 AM11/21/17
to crack-lang-dev
Hi Michael,

Here I am reproducing the message I left on your blob :

---
I tried to install version 1.1 on Linux Mint :

Distro: Linux Mint 17 Qiana
Operating System: Ubuntu 14.04.5 LTS
Kernel: Linux 3.13.0-24-generic
Architecture: x86_64

I followed the install steps (building/installig LLVM 3.3 and then crack 1.1).

Now I can do a

crack --version

but if I try to do crack hello.crk I get a

segmentation fault.

I want to use Crack for a serious project and I don't have the choice of the OS (Windows and Mint).
--

How can I help you ?

x ray

unread,
Nov 21, 2017, 6:30:31 AM11/21/17
to crack-lang-dev
Here are the installation logs. Can you you tell if there is anything wrong ?

The procedure I have followed is the one on Git (INSTALL), except that I used "sudo make install" for both llvm and crack.


llvm-logs.7z
crack-logs.7z

Michael Muller

unread,
Nov 21, 2017, 8:17:49 AM11/21/17
to crack-lang-dev
Can you send these either uncompressed or with a more common compression format (e.g. gzip, bzip, pkzip)?  It seems unlikely that there's anything odd going on in your install.

Two questions:
1) How much memory does your VM have configured? I've had problems with OOMing on 64-bit desktop-oriented systems with less than 1G of ram.
2) Can you please run "./crack_dbg -- hello.crk" from the root of the source directory, then enter "r" at the prompt (to run the program) and past the output?

The latter runs gdb, and will hopefully give us a little more information about exactly what's going wrong.

On Tue, Nov 21, 2017 at 6:30 AM, x ray <theka...@gmail.com> wrote:
Here are the installation logs. Can you you tell if there is anything wrong ?

The procedure I have followed is the one on Git (INSTALL), except that I used "sudo make install" for both llvm and crack.


--
You received this message because you are subscribed to the Google Groups "crack-lang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crack-lang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

x ray

unread,
Nov 21, 2017, 1:52:23 PM11/21/17
to crack-lang-dev

My virtual machine has  1987 MB of RAM.

crack_dbg  is not on the machine, It has apparently not been built.

I have joined the logs in a zip format and also the list of files I have in the crack-1.1 folder.






crack-logs.zip
list.txt
llvm-logs.zip

Michael Muller

unread,
Nov 21, 2017, 2:05:48 PM11/21/17
to crack-lang-dev
On Tue, Nov 21, 2017 at 1:52 PM, x ray <theka...@gmail.com> wrote:

My virtual machine has  1987 MB of RAM.

Ok, that should be fine.
 

crack_dbg  is not on the machine, It has apparently not been built.

Yeah, it's probably not in the distribution tarball.  Can you pull it from github?  You can either clone the repo at head:


Or pull just the crack_dbg script from github:


(once again, you'll want to do that from the root of the crack source tree -- it uses relative paths to the libraries) 


I have joined the logs in a zip format and also the list of files I have in the crack-1.1 folder.






Michael Muller

unread,
Nov 21, 2017, 2:13:38 PM11/21/17
to crack-lang-dev
What's interesting is that "crackdoc" seems to be working for you during install - that does a pretty good of exercising the program and a lot of libraries.  Does "crackc hello.crk" work for you?

x ray

unread,
Nov 22, 2017, 8:09:39 AM11/22/17
to crack-lang-dev
I cannot find crackc either :(

As for the debug, I ran it after downloading the crack_dbg.  I hope it speaks to you :

denis@X2 ~/Downloads/crack-1.1 $ ./crack_dbg -- hello.crk
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./.libs/crack...done.
(gdb) r
Starting program: /home/denis/Downloads/crack-1.1/.libs/crack hello.crk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff64c7156 in __dynamic_cast () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb)






x ray

unread,
Nov 22, 2017, 8:55:25 AM11/22/17
to crack-lang-dev
denis@X2 ~/Downloads/crack-1.1 $ cat hello.crk
// first ever crack program!  (updated to take advantage of newer features)
// Copyright 2009-2010 Google Inc.
//
//   This Source Code Form is subject to the terms of the Mozilla Public
//   License, v. 2.0. If a copy of the MPL was not distributed with this
//   file, You can obtain one at http://mozilla.org/MPL/2.0/.
//

import crack.io cout;
cout `hello world!\n`;
(gdb) bt
#0  0x00007ffff64c7156 in __dynamic_cast () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007ffff6dafa2c in rcast<builder::mvll::LLVMBuilder> (other=...) at ./spug/RCPtr.h:130
#2  builder::mvll::LLVMJitBuilder::getModuleMerger (this=<optimized out>) at builder/llvm/LLVMJitBuilder.cc:227
#3  0x00007ffff6daf8a6 in builder::mvll::LLVMJitBuilder::initialize (this=0x7fffffffdde0, context=...) at builder/llvm/LLVMJitBuilder.cc:70
#4  0x000000000060d8b0 in ?? ()
#5  0x00007ffff7d61048 in VTT for model::GlobalNamespace () from ./.libs/libCrackLang.so.10
#6  0x00007ffff7d61028 in vtable for model::GlobalNamespace () from ./.libs/libCrackLang.so.10
#7  0x00007ffff6c6e30a in model::Construct::createRootContext (this=0x60cdc0) at model/Construct.cc:294
#8  0x00007ffff6c6d8e8 in model::Construct::Construct (this=0x60cdc0, options=..., builder=<optimized out>, primary=0x0)
    at model/Construct.cc:250
#9  0x00007ffff6df6858 in Crack::setBuilder (this=0x7fffffffe378, builder=0x60bb90) at Crack.cc:81
#10 0x000000000040391e in main (argc=2, argv=0x7fffffffe518) at crack_main.cc:315
(gdb)


x ray

unread,
Nov 22, 2017, 11:57:22 AM11/22/17
to crack-lang-dev
denis@X2 ~/Downloads/crack-1.1 $ make check
/bin/mkdir -p lib/crack/ext
/usr/bin/install -c .libs/runtime.so lib/crack
/usr/bin/install -c runtime.la lib/crack
/usr/bin/install -c .libs/testext.so lib
/usr/bin/install -c testext.la lib
for ext in _cairo _gl _gtk _pcre _sdl _sdl_mixer _alsa_midi _sdlgfx _fluidsynth _cairosdl _xs _ssl _png _curl _jack _pthread _fuse _readline; do \
          if [ -e .libs/$ext.so ]; then \
            ln -f .libs/$ext.so lib/crack/ext; \
          fi \
        done
./unittests
serializerTestUInt...ok
serializerTestLargeStrings...ok
moduleTestDeps...ok
moduleSerialization...ok
moduleReload...ok
reloadOfSelfReferrentTypes...ok
operatorSerialization...ok
BUILD_ROOT=`pwd` ./test/screen
Using root directory: .
      build directory: /home/denis/Downloads/crack-1.1

rebuilding screen.bin...
ParseError: ./lib/crack/regex.crk:22:50: unable to find module crack.ext._pcre
    PCRE_UTF8, PCRE_NO_UTF8_CHECK, PCRE_MULTILINE;
                                                 ^

./test/screen: 60: ./test/screen: /home/denis/Downloads/crack-1.1/test/screen.bin: not found
make: *** [check] Error 127

Michael Muller

unread,
Nov 22, 2017, 12:02:22 PM11/22/17
to x ray, crack-lang-dev

Ok, you'll need to install libpcre3-dev to run the test suite.
> --
> You received this message because you are subscribed to the Google Groups "crack-lang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to crack-lang-de...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>


=============================================================================
michaelMuller = mmu...@enduden.com | http://www.mindhog.net/~mmuller
-----------------------------------------------------------------------------
Reloaded.
=============================================================================

Michael Muller

unread,
Nov 24, 2017, 1:45:19 PM11/24/17
to x ray, crack-lang-dev

Just following up on this for posterity: the problem was apparently due to
building on Clang, and potentially related to an existing version of LLVM that
was installed.

There's no reason why Crack shouldn't build under Clang, so I'll have to try
this out on my own.
Reply all
Reply to author
Forward
0 new messages