yvdriess / mcc

Compiles a quantum computation in the form of Measurement Calculus command sequences and generates C++ code using intel Cnc
8 stars 2 forks source link

error bootstrapping mccompiler #1

Closed TheFausap closed 10 years ago

TheFausap commented 10 years ago

Hello,

I'm trying to bootstrap the mccompiler on FreeBSD. I installed sbcl with quicklisp, TBB and CnC, but when I launch bootstrap.sh, I have this error:

$ bash ./bootstrap.sh This is SBCL 1.1.12, an implementation of ANSI Common Lisp. More information about SBCL is available at http://www.sbcl.org/.

SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. WARNING: compiling #<STATIC-FILE "sb-bsd-sockets" "NEWS"> completed without its input file #P"/usr/local/lib/sbcl/sb-bsd-sockets/NEWS" WARNING: loading #<STATIC-FILE "sb-bsd-sockets" "NEWS"> completed without its input file #P"/usr/local/lib/sbcl/sb-bsd-sockets/NEWS" WARNING: compiling #<STATIC-FILE "sb-bsd-sockets" "TODO"> completed without its input file #P"/usr/local/lib/sbcl/sb-bsd-sockets/TODO" WARNING: loading #<STATIC-FILE "sb-bsd-sockets" "TODO"> completed without its input file #P"/usr/local/lib/sbcl/sb-bsd-sockets/TODO"

debugger invoked on a QUICKLISP-CLIENT:SYSTEM-NOT-FOUND: System "mccompiler" not found

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name): 0: [CONTINUE] Try again 1: [ABORT ] Give up on "mccompiler" 2: Ignore runtime option --eval "(ql:quickload :mccompiler)". 3: Skip rest of --eval and --load options. 4: Skip to toplevel READ/EVAL/PRINT loop. 5: [EXIT ] Exit SBCL (calling #'EXIT, killing the process).

((LABELS QUICKLISP-CLIENT::RECURSE :IN QUICKLISP-CLIENT::COMPUTE-LOAD-STRATEGY) "mccompiler")

Please could you help me ?

thanks Fausto

TheFausap commented 10 years ago

Hello, I fixed the error, loading mccompiler.asd before to run bootstrap.sh.

regards Fausto

yvdriess commented 10 years ago

Strange, the bootstrap.sh script should load the mccompiler via quicklisp: --eval "(ql:quickload :mccompiler)"

Perhaps sbcl defaults to a different working directory in your case.

My output on OSX Darwin:

This is SBCL 1.1.8.30-51bc001, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
To load "mccompiler":
  Load 1 ASDF system:
    mccompiler
; Loading "mccompiler"
yvdriess commented 10 years ago

Did you manage to get everything running? If you are having problems with CnC 0.6, I can probably make the mcc compiler work under CnC 1.0.

On 02 Aug 2014, at 07:46, TheFausap notifications@github.com wrote:

Closed #1.

— Reply to this email directly or view it on GitHub.

TheFausap commented 10 years ago

I was able to build the mcc compiler, but not to compile the generated C++ file. Unfortunately CnC support for FreeBSD is very limited. I was able only to build CnC 0.5, but not 0.6 or the latest one. Do you know if there are some pre-built packages for FreeBSD 10 ?

thanks

yvdriess commented 10 years ago

You can try building CnC 1.0 in FreeBSD from source. If I remember correctly, there was a big CnC API change from 0.5 to 0.6, but not since.

On 05 Aug 2014, at 13:25, TheFausap notifications@github.com wrote:

I was able to build the mcc compiler, but not to compile the generated C++ file. Unfortunately CnC support for FreeBSD is very limited. I was able only to build CnC 0.5, but not 0.6 or the latest one. Do you know if there are some pre-built packages for FreeBSD 10 ?

thanks

— Reply to this email directly or view it on GitHub.

TheFausap commented 10 years ago

Oh thanks... when I go back to home I will try.

2014-08-05 14:25 GMT+02:00 Yves Vandriessche notifications@github.com:

You can try building CnC 1.0 in FreeBSD from source. If I remember correctly, there was a big CnC API change from 0.5 to 0.6, but not since.

On 05 Aug 2014, at 13:25, TheFausap notifications@github.com wrote:

I was able to build the mcc compiler, but not to compile the generated C++ file. Unfortunately CnC support for FreeBSD is very limited. I was able only to build CnC 0.5, but not 0.6 or the latest one. Do you know if there are some pre-built packages for FreeBSD 10 ?

thanks

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub https://github.com/yvdriess/mcc/issues/1#issuecomment-51190123.

yvdriess commented 10 years ago

I tested the bootstrap script with a newer version of SBCL and ran into the same issue. I have added your workaround (to first load the .asd file) to the bootstrap script to fix the issue.

Thanks!

TheFausap commented 10 years ago

Hello Yves,

I'm trying to compiling the source from github, but it's missing a file called tls_FreeBSD.cpp It's not really missing... I suppose, at the moment, there's no way to use it under freebsd.

But 0.5 it seems working.

regards, Fausto

2014-08-05 17:59 GMT+02:00 Yves Vandriessche notifications@github.com:

I tested the bootstrap script with a newer version of SBCL and ran into the same issue. I have added your workaround (to first load the .asd file) to the bootstrap script to fix the issue.

Thanks!

Reply to this email directly or view it on GitHub https://github.com/yvdriess/mcc/issues/1#issuecomment-51218352.