[LLVMdev] [patch] vmkit compiled using gcc
Xerxes RĂ„nby
xerxes at zafena.se
Sat Apr 18 12:23:11 PDT 2009
Den 2009-04-18 15:38, Nicolas Geoffray skrev:
> Applied thanks!
> http://lists.cs.uiuc.edu/pipermail/vmkit-commits/2009-April/000815.html
>
> Btw, what are the error messages for these?
>
>> - char * res = strstr(haystack, needle);
>> + char * res = (char *)strstr(haystack, needle);
>>
make[3]: Entering directory `/home/xranby/vmkit/lib/JnJVM/VMCore'
llvm[3]: Compiling Jnjvm.cpp for Debug build
Jnjvm.cpp: In function 'int sys_strnstr(const char*, const char*)':
Jnjvm.cpp:515: error: invalid conversion from 'const char*' to 'char*'
make[3]: *** [/home/xranby/vmkit/lib/JnJVM/VMCore/Debug/Jnjvm.o] Error 1
>> - char* ptr = strrchr(name, '/');
>> + char* ptr = (char*)strrchr(name, '/');
>>
llvm[3]: Compiling JnjvmClassLoader.cpp for Debug build
JnjvmClassLoader.cpp: In member function 'void
jnjvm::JnjvmClassLoader::loadLibFromJar(jnjvm::Jnjvm*, const char*,
const char*)':
JnjvmClassLoader.cpp:999: error: invalid conversion from 'const char*'
to 'char*'
make[3]: ***
[/home/xranby/vmkit/lib/JnJVM/VMCore/Debug/JnjvmClassLoader.o] Error 1
Cheers, and have a great day!
Xerxes
More information about the llvm-dev
mailing list