munificent/finch — Issue #1: make fails to compile
Author: autre
Created: 2012-01-11 13:20:50+00:00
State: open

Hi,

I'm using gyp with svn revision r1139.
So after installing gyp and git cloning finch:

~$ uname -a
Linux eigen 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011 x86_64 Pentium(R) Dual-Core CPU E5300 @ 2.60GHz GenuineIntel GNU/Linux
~$ gyp --depth=1
~$ cd 1
~$ make
CXX(target) out/Debug/obj.target/finch/../src/Base/FinchString.o
../src/Base/FinchString.cpp: In member function ‘int Finch::String::IndexOf(const Finch::String&) const’:
../src/Base/FinchString.cpp:131:59: σφάλμα: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [out/Debug/obj.target/finch/../src/Base/FinchString.o] Error 1
~$ vim ../src/Base/FinchString.cpp
~$ git diff
{
if (mData.IsNull()) return -1;

- char* found = strstr(mData->chars, other.CString());
+ const char* found = strstr(mData->chars, other.CString());
if (found == NULL) return -1;

return static_cast(found - mData->chars);
~$ make
CXX(target) out/Debug/obj.target/finch/../src/Base/FinchString.o
CXX(target) out/Debug/obj.target/finch/../src/Base/StringTable.o
CXX(target) out/Debug/obj.target/finch/../src/Compiler/CodeBlock.o
In file included from ../src/Compiler/CodeBlock.cpp:1:0:
../src/Compiler/CodeBlock.h:8:20: μοιραίο σφάλμα: Object.h: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
compilation terminated.
make: *** [out/Debug/obj.target/finch/../src/Compiler/CodeBlock.o] Error 1

I can provide you with the generated *.mk files.
I guess I'm probably misusing gyp.

Vassilis