473,569 Members | 2,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error while compilation

hi

iam working with uclinux
i got errors while compilation..

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h: In function 'long unsigned int __cmpxchg(volat ile void*,
long unsigned int, long unsigned int)':
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:204: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:213: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:222: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:189: error: expected ',' or '...' before 'new'

source::::::;;;
189static inline unsigned long __cmpxchg(volat ile void *ptr,
unsigned long old,unsigned long new, int size)
190 {
191 unsigned long tmp = 0;
192 unsigned long flags = 0;
193
194 local_irq_save( flags);
195
196 switch (size) {
197 case 1:
198 __asm__ __volatile__
199 ("%0 = b%3 (z);\n\t"
200 "CC = %1 == %0;\n\t"
201 "IF !CC JUMP 1f;\n\t"
202 "b%3 = %2;\n\t"
203 "1:\n\t"
204 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
205 break;
206 case 2:
207 __asm__ __volatile__
208 ("%0 = w%3 (z);\n\t"
209 "CC = %1 == %0;\n\t"
210 "IF !CC JUMP 1f;\n\t"
211 "w%3 = %2;\n\t"
212 "1:\n\t"
213 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
214 break;
215 case 4:
216 __asm__ __volatile__
217 ("%0 = %3;\n\t"
218 "CC = %1 == %0;\n\t"
219 "IF !CC JUMP 1f;\n\t"
220 "%3 = %2;\n\t"
221 "1:\n\t"
222 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
223 break;
}
225 local_irq_resto re(flags);
226 return tmp;
227 }

help me to solve this

thanks in advance

Nov 13 '07 #1
1 2704
m.***********@g mail.com wrote:
hi

iam working with uclinux
i got errors while compilation..

/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h: In function 'long unsigned int __cmpxchg(volat ile void*,
long unsigned int, long unsigned int)':
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:204: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:213: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:222: error: expected type-specifier before ')' token
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/include/asm/
system.h:189: error: expected ',' or '...' before 'new'

source::::::;;;
189static inline unsigned long __cmpxchg(volat ile void *ptr,
unsigned long old,unsigned long new, int size)
190 {
191 unsigned long tmp = 0;
192 unsigned long flags = 0;
193
194 local_irq_save( flags);
195
196 switch (size) {
197 case 1:
198 __asm__ __volatile__
199 ("%0 = b%3 (z);\n\t"
200 "CC = %1 == %0;\n\t"
201 "IF !CC JUMP 1f;\n\t"
202 "b%3 = %2;\n\t"
203 "1:\n\t"
204 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
205 break;
206 case 2:
207 __asm__ __volatile__
208 ("%0 = w%3 (z);\n\t"
209 "CC = %1 == %0;\n\t"
210 "IF !CC JUMP 1f;\n\t"
211 "w%3 = %2;\n\t"
212 "1:\n\t"
213 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
214 break;
215 case 4:
216 __asm__ __volatile__
217 ("%0 = %3;\n\t"
218 "CC = %1 == %0;\n\t"
219 "IF !CC JUMP 1f;\n\t"
220 "%3 = %2;\n\t"
221 "1:\n\t"
222 : "=&d" (tmp) : "d" (old), "d" (new),
"m" (*__xg(ptr)) : "memory");
223 break;
}
225 local_irq_resto re(flags);
226 return tmp;
227 }
The code with issues is not actually C, as far as I can see. This
newsgroup is about C not assembler.

You'd probably do better asking in a group or forum which is related to
the compiler (I presume it's gcc, so gnu.gcc or gnu.gcc.help may be
appropriate) or the software you're trying to build
(http://www.uclinux.org/maillist/ may be helpful).
Nov 13 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1413
by: Simon | last post by:
Hi, I create a new asp.net project and add one user control. When I would like to see the default page, I get the following error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code...
1
1383
by: smith flyers | last post by:
i got the following error when compiling the codes.. the name 'word' does not exist in the class or namespace 'SimpleMath.Pig' Can anyone troubleshoot on this . Thank you ////////////////////// using System; namespace SimpleMath
4
1547
by: Jon Maz | last post by:
Hi All, Am trying to port an existing asp 3.0 app written in JScript to JScript.Net, and have just had the following error: COMPILATION ERROR Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
2
1032
by: tshad | last post by:
I have a code behind line that is giving me the error: ********************************************************************** Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. ...
2
6753
by: Roger Wang | last post by:
HELP!!!! We have got a W2k server running IIS5 with .NET framework 1.1 and .NET framework SP1. All ASP.NET applications cannot run on this box. It all returned with the same error: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific...
3
1851
by: Alistair Lacy | last post by:
Hi I've enable impersonation on my ASP.NET site via the web.config file. When I access the web site using my credentials all works fine. However, when I set the userName and password attribute to the same user account that I am using initially and I again hit the web site, I get the following error: Compilation Error Description: An...
2
2130
by: tshad | last post by:
This has been driving me crazy. I have been trying to get the error handling working on my system and can get parts of it working and others won't work at all. I found that you can't access session variables from Application_Error event, but I need to so I don't need to set up traces to see what they are during an error. I am emailing...
0
1732
by: Stimp | last post by:
I've created an aspx page called HistoryManage.aspx. The page works fine on my local machine but when I load it off the web I get the following strange error... Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and...
0
1552
by: jmawebco | last post by:
I have a project I'm working on in VS2005 using vb.net with a MSSql 2005 backend. Everytime I try to run the application I get the same error message; ********* ERROR ********* Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error...
6
2920
by: Golum | last post by:
Hello guys! Well.... it`s my code (c++/linux) #include <arpa/inet.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <pthread.h>
0
7698
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.