harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregory Shimansky <gshiman...@gmail.com>
Subject Re: [drlvm] unable to build on ubuntu
Date Fri, 23 Mar 2007 13:50:57 GMT
Alexey Varlamov wrote:
> I observe the same error on SLES9@ia64, gcc 3.3.3. But similar system
> on ia32 builds fine...

The macro _syscall0 is defined in /usr/include/asm-${ARCH}/unistd.h 
file. It is not portable and doesn't exist on all linux architectures, 
for example it doesn't exist on ia64. I've found [1], so probably redhat 
got rid of it in their distro as Alexey writes he gets an error on Fedora.

Using this macro Salikh (whose patch added this file) defines gettid as 
described in man gettid. It is probably necessary to define gettid in a 
more portable way on platforms that don't have _syscall0.

[1] http://www.redhat.com/archives/linux-cluster/2005-June/msg00127.html

> 2007/3/23, Nathan Beyer <ndbeyer@apache.org>:
>> I'm having trouble getting drlvm to build on ubuntu, can anyone offer
>> a suggestion as to what might be causing this failure.
>>
>> build.native.init:
>>     [echo] ## Building native of 'vm.hythr'
>>
>> build.native.c:
>>       [cc] Starting dependency analysis for 17 files.
>>       [cc] 17 files are up to date.
>>       [cc] 0 files to be recompiled from dependency analysis.
>>       [cc] 1 total files to be compiled.
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:27:
>> error: expected declaration specifiers or '...' before 'gettid'
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:
>> In function '_syscall0':
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:44:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:86:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:107:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:115:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:127:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:138:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:142:
>> error: storage class specified for parameter 'yield_other_init_flag'
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:142:
>> error: parameter 'yield_other_init_flag' is initialized
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:143:
>> error: storage class specified for parameter 'yield_other_sem'
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:145:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:150:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:167:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:205:
>> error: expected '=', ',', ';', 'asm' or '__attribute__' before '{'
>> token
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:218:
>> error: old-style parameter declarations in prototyped function
>> definition
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:27:
>> error: parameter name omitted
>>       [cc] 
>> /home/nathan/harmony/drlvm-trunk/vm/thread/src/linux/os_thread.c:218:
>> error: expected '{' at end of input
>>
>> BUILD FAILED
>> /home/nathan/harmony/drlvm-trunk/build/make/build.xml:451: The
>> following error occurred while executing this line:
>> /home/nathan/harmony/drlvm-trunk/build/make/build.xml:458: The
>> following error occurred while executing this line:
>> /home/nathan/harmony/drlvm-trunk/build/make/build_component.xml:72:
>> The following error occurred while executing this line:
>> /home/nathan/harmony/drlvm-trunk/build/lnx_ia32_gcc_debug/semis/build/targets/build.native.xml:71:

>>
>> gcc failed with return code 1
>>
> 


-- 
Gregory


Mime
View raw message