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

problems building mustang on debian wheezy x86_64 #21

Open
mcr opened this issue Sep 11, 2012 · 1 comment
Open

problems building mustang on debian wheezy x86_64 #21

mcr opened this issue Sep 11, 2012 · 1 comment

Comments

@mcr
Copy link

mcr commented Sep 11, 2012

% git clone git://github.com/nu7hatch/mustang.git
% cd mustang
% rake compile
[1/1] Isolating mocha (>= 0.9).
Fetching: metaclass-0.0.1.gem (100%)
Fetching: mocha-0.12.4.gem (100%)
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
at /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
mkdir -p tmp/x86_64-linux/v8/1.9.3
cd tmp/x86_64-linux/v8/1.9.3
/usr/bin/ruby1.9.1 -I. ../../../../ext/v8/extconf.rb
checking for main() in -lv8... yes
checking for main() in -lpthread... yes
checking for string.h... yes
checking for v8.h... yes
checking for v8-debug.h... yes
checking for v8-profiler.h... yes
checking for rb_sym_to_s()... yes
checking for rb_any_to_ary()... no
creating Makefile
cd -
cd tmp/x86_64-linux/v8/1.9.3
make
compiling ../../../../ext/v8/v8_integer.cpp
In file included from ../../../../ext/v8/v8_ref.h:5:0,
from ../../../../ext/v8/v8_integer.cpp:1:
/usr/include/v8.h:1845:26: error: expected identifier before '&' token
make: *** [v8_integer.o] Error 1
rake aborted!
Command failed with status (2): [make...]

Tasks: TOP => compile => compile:x86_64-linux => compile:v8:x86_64-linux => copy:v8:x86_64-linux:1.9.3 => tmp/x86_64-linux/v8/1.9.3/v8.so
(See full trace by running task with --trace)
[1] 6402 exit 1 rake compile

This happens with a straight gem install.

obiwan-[/sandel/src/mustang] mcr 3235 %sed -n 1845,1845p /usr/include/v8.h
V8EXPORT Local StringValue() const;

this is not the first occurance of V8EXPORT. Xemacs colours this different than the previous occurance.
I suspect something weird in the templates and/or the version of gcc.

obiwan-[/sandel/src/mustang] mcr 3236 %gcc --version
gcc (Debian 4.7.1-7) 4.7.1

Please suggest something else to check...

obiwan-[/sandel/src/mustang] mcr 3237 %uname -a
Linux obiwan 3.2.0-3-amd64 #1 SMP Thu Jun 28 09:07:26 UTC 2012 x86_64 GNU/Linux

Debian wheezy.

@mcr
Copy link
Author

mcr commented Sep 11, 2012

obiwan-[/sandel/src/mustang] mcr 3238 %dpkg --list | grep libv8
ii libv8-3.8.9.20 3.8.9.20-1 amd64 v8 JavaScript engine - runtime library
ii libv8-dbg 3.8.9.20-1 amd64 v8 JavaScript engine - debugging symbols
ii libv8-dev 3.8.9.20-1 amd64 v8 JavaScript engine - development files

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

1 participant