public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] IA64/ecc - Problems with system.h
@ 2003-02-27 19:09 Manoj Kumar Krishnan
  2003-02-27 19:24 ` Siddha, Suresh B
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Manoj Kumar Krishnan @ 2003-02-27 19:09 UTC (permalink / raw)
  To: linux-ia64

I'm having trouble in getting my code compiled using Intel Compilers (6.0
or 7.0) in Linux-IA64. Anyhelp would be appreaciated. Thanks!

--------------------------------------------------------------------

ecc -O -w1 -c -o shmem.o shmem.c

/usr/include/asm/system.h(74): error: asm statements not supported in this
environment
        __asm__ __volatile__ (";;" ::: "memory");
        ^

/usr/include/asm/system.h(74): error: expected a ")"
        __asm__ __volatile__ (";;" ::: "memory");
                                   ^

/usr/include/asm/system.h(260): error: asm statements not supported in
this environment
                __asm__ __volatile (IA64_SEMFIX"xchg1 %0=[%1],%2" : "=r"
(result)
                ^

/usr/include/asm/system.h(260): error: expected a ")"
                __asm__ __volatile (IA64_SEMFIX"xchg1 %0=[%1],%2" : "=r"
(result)
                                                                  ^

/usr/include/asm/system.h(265): error: asm statements not supported in
this environment
                __asm__ __volatile (IA64_SEMFIX"xchg2 %0=[%1],%2" : "=r"
(result)
                ^

/usr/include/asm/system.h(265): error: expected a ")"
                __asm__ __volatile (IA64_SEMFIX"xchg2 %0=[%1],%2" : "=r"
(result)
                                                                  ^

/usr/include/asm/system.h(270): error: asm statements not supported in
this environment
                __asm__ __volatile (IA64_SEMFIX"xchg4 %0=[%1],%2" : "=r"
(result)
                ^

/usr/include/asm/system.h(270): error: expected a ")"
                __asm__ __volatile (IA64_SEMFIX"xchg4 %0=[%1],%2" : "=r"
(result)
                                                                  ^

/usr/include/asm/system.h(275): error: asm statements not supported in
this environment
                __asm__ __volatile (IA64_SEMFIX"xchg8 %0=[%1],%2" : "=r"
(result)
                ^

/usr/include/asm/system.h(275): error: expected a ")"
                __asm__ __volatile (IA64_SEMFIX"xchg8 %0=[%1],%2" : "=r"
(result)
                                                                  ^

compilation aborted for shmem.c (code 2)

----------------------------------------------------------------------

-Manoj:)



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Linux-ia64] IA64/ecc - Problems with system.h
  2003-02-27 19:09 [Linux-ia64] IA64/ecc - Problems with system.h Manoj Kumar Krishnan
@ 2003-02-27 19:24 ` Siddha, Suresh B
  2003-02-27 19:39 ` Stephane Eranian
  2003-02-27 19:47 ` David Mosberger
  2 siblings, 0 replies; 4+ messages in thread
From: Siddha, Suresh B @ 2003-02-27 19:24 UTC (permalink / raw)
  To: linux-ia64

Manoj,

ecc doesn't support asm stmts. We need to replace all asm stmts into compiler dependent intrinsics. This is work in progress.

thanks,
suresh

> -----Original Message-----
> From: Manoj Kumar Krishnan [mailto:manoj1@ERC.MsState.Edu]
> Sent: Thursday, February 27, 2003 11:10 AM
> To: linux-ia64@linuxia64.org
> Subject: [Linux-ia64] IA64/ecc - Problems with system.h
> 
> 
> 
> I'm having trouble in getting my code compiled using Intel 
> Compilers (6.0
> or 7.0) in Linux-IA64. Anyhelp would be appreaciated. Thanks!
> 
> --------------------------------------------------------------------
> 
> ecc -O -w1 -c -o shmem.o shmem.c
> 
> /usr/include/asm/system.h(74): error: asm statements not 
> supported in this
> environment
>         __asm__ __volatile__ (";;" ::: "memory");
>         ^
> 
> /usr/include/asm/system.h(74): error: expected a ")"
>         __asm__ __volatile__ (";;" ::: "memory");
>                                    ^
> 
> /usr/include/asm/system.h(260): error: asm statements not supported in
> this environment
>                 __asm__ __volatile (IA64_SEMFIX"xchg1 
> %0=[%1],%2" : "=r"
> (result)
>                 ^
> 
> /usr/include/asm/system.h(260): error: expected a ")"
>                 __asm__ __volatile (IA64_SEMFIX"xchg1 
> %0=[%1],%2" : "=r"
> (result)
>                                                                   ^
> 
> /usr/include/asm/system.h(265): error: asm statements not supported in
> this environment
>                 __asm__ __volatile (IA64_SEMFIX"xchg2 
> %0=[%1],%2" : "=r"
> (result)
>                 ^
> 
> /usr/include/asm/system.h(265): error: expected a ")"
>                 __asm__ __volatile (IA64_SEMFIX"xchg2 
> %0=[%1],%2" : "=r"
> (result)
>                                                                   ^
> 
> /usr/include/asm/system.h(270): error: asm statements not supported in
> this environment
>                 __asm__ __volatile (IA64_SEMFIX"xchg4 
> %0=[%1],%2" : "=r"
> (result)
>                 ^
> 
> /usr/include/asm/system.h(270): error: expected a ")"
>                 __asm__ __volatile (IA64_SEMFIX"xchg4 
> %0=[%1],%2" : "=r"
> (result)
>                                                                   ^
> 
> /usr/include/asm/system.h(275): error: asm statements not supported in
> this environment
>                 __asm__ __volatile (IA64_SEMFIX"xchg8 
> %0=[%1],%2" : "=r"
> (result)
>                 ^
> 
> /usr/include/asm/system.h(275): error: expected a ")"
>                 __asm__ __volatile (IA64_SEMFIX"xchg8 
> %0=[%1],%2" : "=r"
> (result)
>                                                                   ^
> 
> compilation aborted for shmem.c (code 2)
> 
> ----------------------------------------------------------------------
> 
> -Manoj:)
> 
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] IA64/ecc - Problems with system.h
  2003-02-27 19:09 [Linux-ia64] IA64/ecc - Problems with system.h Manoj Kumar Krishnan
  2003-02-27 19:24 ` Siddha, Suresh B
@ 2003-02-27 19:39 ` Stephane Eranian
  2003-02-27 19:47 ` David Mosberger
  2 siblings, 0 replies; 4+ messages in thread
From: Stephane Eranian @ 2003-02-27 19:39 UTC (permalink / raw)
  To: linux-ia64

Manoj,

On Thu, Feb 27, 2003 at 11:24:38AM -0800, Siddha, Suresh B wrote:
> 
> ecc doesn't support asm stmts. We need to replace all asm stmts into compiler dependent intrinsics. This is work in progress.
> 

I think the other major/source issue isthat the program includes
kernel "private" header files (asm/system.h) which IT SHOULD NOT!


> 
> > -----Original Message-----
> > From: Manoj Kumar Krishnan [mailto:manoj1@ERC.MsState.Edu]
> > Sent: Thursday, February 27, 2003 11:10 AM
> > To: linux-ia64@linuxia64.org
> > Subject: [Linux-ia64] IA64/ecc - Problems with system.h
> > 
> > 
> > 
> > I'm having trouble in getting my code compiled using Intel 
> > Compilers (6.0
> > or 7.0) in Linux-IA64. Anyhelp would be appreaciated. Thanks!
> > 
> > --------------------------------------------------------------------
> > 
> > ecc -O -w1 -c -o shmem.o shmem.c
> > 
> > /usr/include/asm/system.h(74): error: asm statements not 
> > supported in this
> > environment
> >         __asm__ __volatile__ (";;" ::: "memory");
> >         ^
> > 
> > /usr/include/asm/system.h(74): error: expected a ")"
> >         __asm__ __volatile__ (";;" ::: "memory");
> >                                    ^
> > 
> > /usr/include/asm/system.h(260): error: asm statements not supported in
> > this environment
> >                 __asm__ __volatile (IA64_SEMFIX"xchg1 
> > %0=[%1],%2" : "=r"
> > (result)
> >                 ^
> > 
> > /usr/include/asm/system.h(260): error: expected a ")"
> >                 __asm__ __volatile (IA64_SEMFIX"xchg1 
> > %0=[%1],%2" : "=r"
> > (result)
> >                                                                   ^
> > 
> > /usr/include/asm/system.h(265): error: asm statements not supported in
> > this environment
> >                 __asm__ __volatile (IA64_SEMFIX"xchg2 
> > %0=[%1],%2" : "=r"
> > (result)
> >                 ^
> > 
> > /usr/include/asm/system.h(265): error: expected a ")"
> >                 __asm__ __volatile (IA64_SEMFIX"xchg2 
> > %0=[%1],%2" : "=r"
> > (result)
> >                                                                   ^
> > 
> > /usr/include/asm/system.h(270): error: asm statements not supported in
> > this environment
> >                 __asm__ __volatile (IA64_SEMFIX"xchg4 
> > %0=[%1],%2" : "=r"
> > (result)
> >                 ^
> > 
> > /usr/include/asm/system.h(270): error: expected a ")"
> >                 __asm__ __volatile (IA64_SEMFIX"xchg4 
> > %0=[%1],%2" : "=r"
> > (result)
> >                                                                   ^
> > 
> > /usr/include/asm/system.h(275): error: asm statements not supported in
> > this environment
> >                 __asm__ __volatile (IA64_SEMFIX"xchg8 
> > %0=[%1],%2" : "=r"
> > (result)
> >                 ^
> > 
> > /usr/include/asm/system.h(275): error: expected a ")"
> >                 __asm__ __volatile (IA64_SEMFIX"xchg8 
> > %0=[%1],%2" : "=r"
> > (result)
> >                                                                   ^
> > 
> > compilation aborted for shmem.c (code 2)
> > 
> > ----------------------------------------------------------------------
> > 
> > -Manoj:)
> > 
> > 
> > _______________________________________________
> > Linux-IA64 mailing list
> > Linux-IA64@linuxia64.org
> > http://lists.linuxia64.org/lists/listinfo/linux-ia64
> > 
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64

-- 

-Stephane


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] IA64/ecc - Problems with system.h
  2003-02-27 19:09 [Linux-ia64] IA64/ecc - Problems with system.h Manoj Kumar Krishnan
  2003-02-27 19:24 ` Siddha, Suresh B
  2003-02-27 19:39 ` Stephane Eranian
@ 2003-02-27 19:47 ` David Mosberger
  2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2003-02-27 19:47 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Thu, 27 Feb 2003 11:39:10 -0800, Stephane Eranian <eranian@hpl.hp.com> said:

  Stephane> Manoj, On Thu, Feb 27, 2003 at 11:24:38AM -0800, Siddha,
  Stephane> Suresh B wrote:
  >>  ecc doesn't support asm stmts. We need to replace all asm stmts
  >> into compiler dependent intrinsics. This is work in progress.

  Stephane> I think the other major/source issue isthat the program
  Stephane> includes kernel "private" header files (asm/system.h)
  Stephane> which IT SHOULD NOT!

Unless he's trying to compile the kernel... ;-)

	--david


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-27 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-27 19:09 [Linux-ia64] IA64/ecc - Problems with system.h Manoj Kumar Krishnan
2003-02-27 19:24 ` Siddha, Suresh B
2003-02-27 19:39 ` Stephane Eranian
2003-02-27 19:47 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox