WARNING: building narwhal-jsc failed.

126 views
Skip to first unread message

Martin

unread,
Feb 28, 2012, 11:55:15 PM2/28/12
to Cappuccino & Objective-J
Please help me, I am clueless why building narwhal-jsc failed during
running bootstrap.sh
OS : Mac 10.7.3
Capp : 0.9.5


The following is the error log :

Would you like to build the JavaScriptCore engine? This is optional
but will
make building and running Cappuccino and Objective-J much faster.
Enter "yes" or "no":
yes
sh configure
No <JavaScriptCore/JavaScript.h> detected. Using <JavaScriptCore/
JavaScriptCore.h> instead.
gcc -o lib/libnarwhal.dylib narwhal.c -dynamiclib -0s -
force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -Iinclude -
framework JavaScriptCore
In file included from narwhal.c:3:
include/narwhal.h:9:43: error: JavaScriptCore/JavaScriptCore.h: No
such file or directory
In file included from narwhal.c:3:
include/narwhal.h:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSObjectMakeDate’
include/narwhal.h:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSValueMakeStringWithUTF8CString’
include/narwhal.h:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSValueMakeStringWithUTF8CString’
include/narwhal.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSValueMakeStringWithUTF16’
include/narwhal.h:97: error: expected ‘)’ before ‘_context’
include/narwhal.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NWChar’
include/narwhal.h:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_TO_STRING’
include/narwhal.h:226: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_JS_fn’
include/narwhal.h:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_JS_date’
include/narwhal.h:243: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_GET_VALUE’
include/narwhal.h:270: error: expected ‘)’ before ‘_context’
include/narwhal.h:374: error: expected ‘)’ before ‘_context’
include/narwhal.h:397: error: expected specifier-qualifier-list before
‘JSContextRef’
include/narwhal.h:400: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘Custom_class’
include/narwhal.h:412: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_Require’
include/narwhal.h:413: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_Exports’
include/narwhal.h:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_Module’
include/narwhal.h:415: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_System’
include/narwhal.h:416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_Print’
include/narwhal.h:417: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_context’
include/narwhal.h:419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_require’
include/narwhal.h:421: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSObjectMakeArray’
include/narwhal.h:422: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSObjectMakeDate’
include/narwhal.h:423: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSObjectMakeError’
include/narwhal.h:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘JSObjectMakeRegExp’
include/narwhal.h:429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘_PROTECT’
include/narwhal.h:436: error: expected ‘)’ before ‘_context’
include/narwhal.h:438: error: expected ‘)’ before ‘_context’
include/narwhal.h:441: error: expected specifier-qualifier-list before
‘JSContextRef’
include/narwhal.h:444: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘Context_new’
include/narwhal.h:446: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘NW_inititialize’
narwhal.c:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JSObjectMakeArray’
narwhal.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JSObjectMakeDate’
narwhal.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JSObjectMakeError’
narwhal.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘JSObjectMakeRegExp’
narwhal.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘ReadFile’
narwhal.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_print’
narwhal.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_read’
narwhal.c:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_isFile’
narwhal.c:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_factory_t’
narwhal.c:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_requireNative’
narwhal.c:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘envpToObject’
narwhal.c:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘argvToArray’
narwhal.c:165: error: expected ‘)’ before ‘_context’
narwhal.c:189: error: expected ‘)’ before ‘object’
narwhal.c:199: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘Context_class’
narwhal.c:212: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘Context_new’
narwhal.c:222: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘NW_inititialize’
narwhal.c:285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘narwhal_wrapped’
narwhal.c:357: error: expected ‘)’ before ‘_context’
make: *** [lib/libnarwhal.dylib] Error 1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: building narwhal-jsc failed. Hit enter to continue.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================

Fëanaro Linwë Lenwë

unread,
Feb 29, 2012, 12:12:28 PM2/29/12
to objec...@googlegroups.com
The error is here :

No <JavaScriptCore/JavaScript.h> detected. Using <JavaScriptCore/
JavaScriptCore.h> instead. 
[....]
In file included from narwhal.c:3:
include/narwhal.h:9:43: error: JavaScriptCore/JavaScriptCore.h: No
such file or directory 


It seems like if some headers could not be found ... but i do not know what do you need to install ( if any ) to solve it. Sorry I am also new to capp.


--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To post to this group, send email to objec...@googlegroups.com.
To unsubscribe from this group, send email to objectivej+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/objectivej?hl=en.




--
Sé que estáis ahí. Percibo vuestra presencia. Sé que tenéis miedo. Nos teméis a nosotros. Teméis el cambio. Yo no conozco el futuro. No he venido para deciros cómo acabará todo esto. Al contrario, he venido a deciros cómo va a comenzar. Voy a colgar el teléfono y luego voy a enseñarles a todos lo que vosotros no queréis que vean. Les enseñaré un mundo sin vosotros. Un mundo sin reglas y sin controles, sin límites ni fronteras. Un mundo donde cualquier cosa sea posible. Lo que hagamos después es una decisión que dejo en vuestras manos.

BiB1

unread,
Mar 3, 2012, 5:41:55 AM3/3/12
to Cappuccino & Objective-J
Hello,

I have the same problem.

I have reinstall Mac OSX Lion on a new hard drive. Install latest
version of Xcode (4.3).

When i try to install cappuccino with the curl command line, i have an
error that say "GCC not installed". New Xcode are installed in /
Applications so i have added to my $PATH the path to Xcode, And now i
have the same error as you.

Did you find a solution ?


Ben

BiB1

unread,
Mar 3, 2012, 5:57:35 AM3/3/12
to Cappuccino & Objective-J
SOLVED (for me)

You can try that :

Go to Xcode Preferences > Downloads > Components
Install Command Line Tools

Relaunch "curl" command line to install Cappuccino


Ben

Martin

unread,
Mar 6, 2012, 4:12:11 AM3/6/12
to Cappuccino & Objective-J
wow... awesome, thanks BiB1.. it's working like a champ.
I suspect the error has something to do with the gcc compiler in XCODE
4.3 development tools.

Martin

aradabaugh

unread,
Mar 6, 2012, 11:59:21 AM3/6/12
to Cappuccino & Objective-J
Actually since version 4.2, Xcode no longer ships with GCC. It now
uses LLVM only.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages