You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Nathan Beyer <nd...@apache.org> on 2007/03/23 04:57:29 UTC

[drlvm] unable to build on ubuntu

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

Re: [drlvm] unable to build on ubuntu

Posted by Gregory Shimansky <gs...@gmail.com>.
Xiao-Feng Li wrote:
> Should the solution in your reference work? We can try it. Thanks. xiaofeng

I'm trying a bit different solution like this. If tests work ok, I'll 
commit it:

+#ifdef _syscall0
  _syscall0(pid_t,gettid)
  pid_t gettid(void);
+#else
+pid_t gettid(void)
+{
+    return (pid_t)syscall(__NR_gettid);
+}
+#endif

> On 3/23/07, Gregory Shimansky <gs...@gmail.com> wrote:
>> 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 <nd...@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
>>
>>
> 


-- 
Gregory


Re: [drlvm] unable to build on ubuntu

Posted by Xiao-Feng Li <xi...@gmail.com>.
Should the solution in your reference work? We can try it. Thanks. xiaofeng

On 3/23/07, Gregory Shimansky <gs...@gmail.com> wrote:
> 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 <nd...@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
>
>

Re: [drlvm] unable to build on ubuntu

Posted by Gregory Shimansky <gs...@gmail.com>.
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 <nd...@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


Re: [drlvm] unable to build on ubuntu

Posted by Alexey Varlamov <al...@gmail.com>.
I observe the same error on SLES9@ia64, gcc 3.3.3. But similar system
on ia32 builds fine...

2007/3/23, Nathan Beyer <nd...@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
>

Re: [drlvm] unable to build on ubuntu

Posted by Gregory Shimansky <gs...@gmail.com>.
Xiao-Feng Li wrote:
> If fixing is simple, we probably can try to fix it as the reference
> given in Gregory's message.

I've committed the change at 521768. I checked on ia64, build and tests 
worked.

I had to fix Linux build first after your commit of HARMONY-3485.

> On 3/23/07, Alexey Petrenko <al...@gmail.com> wrote:
>> The issue disappears after reverting revision 520478...
>> Should we revert it from svn?
>>
>> SY, Alexey
>>
>> 2007/3/23, Alexey Petrenko <al...@gmail.com>:
>> > hm... I got the same failure on my Fedora box with gcc 4.1.1... :(
>> >
>> > SY, Alexey
>> >
>> > 2007/3/23, Nathan Beyer <nd...@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


Re: [drlvm] unable to build on ubuntu

Posted by Xiao-Feng Li <xi...@gmail.com>.
If fixing is simple, we probably can try to fix it as the reference
given in Gregory's message.

Thanks,
xiaofeng

On 3/23/07, Alexey Petrenko <al...@gmail.com> wrote:
> The issue disappears after reverting revision 520478...
> Should we revert it from svn?
>
> SY, Alexey
>
> 2007/3/23, Alexey Petrenko <al...@gmail.com>:
> > hm... I got the same failure on my Fedora box with gcc 4.1.1... :(
> >
> > SY, Alexey
> >
> > 2007/3/23, Nathan Beyer <nd...@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
> > >
> >
>

Re: [drlvm] unable to build on ubuntu

Posted by Alexey Petrenko <al...@gmail.com>.
The issue disappears after reverting revision 520478...
Should we revert it from svn?

SY, Alexey

2007/3/23, Alexey Petrenko <al...@gmail.com>:
> hm... I got the same failure on my Fedora box with gcc 4.1.1... :(
>
> SY, Alexey
>
> 2007/3/23, Nathan Beyer <nd...@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
> >
>

Re: [drlvm] unable to build on ubuntu

Posted by Alexey Petrenko <al...@gmail.com>.
hm... I got the same failure on my Fedora box with gcc 4.1.1... :(

SY, Alexey

2007/3/23, Nathan Beyer <nd...@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
>