Skip to contentSkip to conversation

IA64/ecc - Problems with system.h

Linux-ia64 Manoj Kumar Krishnan 4 participants 4 messages Feb 27, 2003

lore
Share & tools
lore
#0 lore raw

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:)

#1 lore raw

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

Quoted 90 lines

-----Original Message-----
From: Manoj Kumar Krishnan [mailto:[email protected]]
Sent: Thursday, February 27, 2003 11:10 AM
To: [email protected]
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
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64

#2 lore raw
In reply to Manoj Kumar Krishnan

Manoj,

Quoted 3 lines · Suresh B

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!

Quoted 96 lines
Quoted 83 lines

-----Original Message-----
From: Manoj Kumar Krishnan [mailto:[email protected]]
Sent: Thursday, February 27, 2003 11:10 AM
To: [email protected]
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)

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

Quoted 8 lines

-Manoj:)

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64

Signature · 1 line
-Stephane
#3 lore raw
In reply to Manoj Kumar Krishnan
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Stephane Eranian

Stephane> Manoj, On Thu, Feb 27, 2003 at 11:24:38AM -0800, Siddha,

Quoted 2 lines · Stephane> Suresh B wrote:
Quoted 2 lines

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