473,387 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

/tmp/ccro4Ndb.s: error: symbol 'Ln1' already defined

Hi, I have been experiencing problems compiling my latest gnu compile code nested in c program, which runs on ARM7. the code :
#if defined ARM_V6
__asm void RV_FASTCALL C_EdgeFilter4x4_RV8(
PU8 pRec,
const U32 uPitch,
const U32 uWidth,
const U32 uHeight,
PU8 pStrengthV,
PU8 pStrengthH)
{
STMFD sp!,{r4-r11,lr}
SUB sp,sp,#4
STR r0,[sp,#0x00] ;pRec
LDR r4,[sp,#0x28] ;pStrengthV(r4)
RSB r6,r2,r1,LSL #2
ADD r6,r6,#4 ;update factor
ADD r0,r0,#0x04 ;r(r0)
MOV lr,r3 ;j
Ln1
ADD r4,r4,#1 ;pStrengthV += 1
SUB r5,r2,#4 ;i(r5)
Ln2
LDRB r8,[r4],#1 ;lTemp
MOV r7,r0 ;lpr(r7) = r
CMP r8,#0
BEQ Ln3
....
}
I keep on coming up against the following errors:

/tmp/ccro4Ndb.s: Assembler messages :
/tmp/ccro4Ndb.s: error: symbol 'Ln1' already defined
/tmp/ccro4Ndb.s: error: symbol 'Ln2' already defined

i revise Ln1 to LnVV1, then makefile, but come up with the same errors messages:
/tmp/ccro4Ndb.s: Assembler messages :
/tmp/ccro4Ndb.s: error: symbol 'LnVV1' already defined
/tmp/ccro4Ndb.s: error: symbol 'Ln2' already defined

Now, I have tried various ways to solve this problem, but the fact is I simply don't know what to do about it.
obviously "Ln1" and "Ln2" are not defined in any header file or any part of the program. Irritating enough.

Can anyone help?

Thank you,

gang
Mar 3 '09 #1
2 5240
newb16
687 512MB
It seems like function got inlined (twice?) and label duplicates in .s file.
google for gcc label inline assembler, or try noinline attribute.
Mar 3 '09 #2
donbock
2,426 Expert 2GB
How many times is this function called? You might try commenting out the function calls and then restoring them one at a time to see when the errors go away and when they return.

Could it be that assembly-language labels in an __asm function have global scope? That sounds pretty scary! It means that you could branch from the middle of one assembly language function into the middle of another. I certanily hope this isn't where your problem is coming from.
Mar 3 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jon | last post by:
Hi! I have a problem that have followed me for a long time. When linking, sometimes this link error below arises. My solution is always to remove all files in the project, throw away all...
1
by: yanwan | last post by:
Hello I met some problems in linking a project, and hope someone can give me some advice. -----------Configuration: lighting - Win32 Release-------------------- Linking... LINK : warning...
4
by: r.nikhilk | last post by:
Hi, We are porting C++ applications from 32 bit to 64 bit on AIX platform. (The current version of AIX is 5.3 and xlC verison is 8.0). We are able to compile the applications by including the...
9
by: Prasad | last post by:
HI, I am a beginner in VC++.. I am trying to write a Win32 console application in visual studio.. I am using following header files.. #include <STRING> using namespace std; #include...
3
by: John Sasso | last post by:
In my Yacc .y file I defined: %union { int value; struct Symbol Sym; } The Symbol struct I defined in a header file I #included in the Prologue section of the .y file as:
2
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
5
by: eberesche | last post by:
Hello, as a novice in ASN.1 I have me to a project in C ++ under use of ASN.1 - structures risquély. One of my colleagues means, this would deal something with masochism ;-). Result should be a DLL...
10
by: k.jayachandran | last post by:
I have a very curious and unique problem here. I'm creating a parser using bison and flex. i did all the development work in a linux environment. the project includes the source files output from...
1
by: dewi | last post by:
Dear All, I am trying to compile a C code using Visual C++. Can anyone explain how to solve it? Thank You. #include <math.h> #include <string.h> #include "RV2AJFRONT_NEW.h" #include...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.