gnupic: Thread: Re: [gnupic] gplink error


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: [gnupic] gplink error
From: David ####@####.####
Date: 8 Oct 2007 02:01:28 +0100
Message-Id: <20071007205828.025891b5@DEEPTHOUGHT.BARNET.net>

On Sun, 7 Oct 2007 20:30:30 -0400
"James A. Cleland" ####@####.#### wrote:

> Not sure what this is all about, has anyone seen something similar?
> 
>  
> 
> error: missing definition for symbol "+¢¾", required by
> "16f690/master1.o"
> 
No idea. Any other details that might tell us something? Did you build
master1.o or get it from someone else?

David Barnett
Subject: RE: [gnupic] gplink error
From: "James A. Cleland" ####@####.####
Date: 8 Oct 2007 02:10:13 +0100
Message-Id: <062101c80947$f3797350$da6c59f0$@com>

This is my code completely, but it's rather large. Sorry the original msg is kinda vague, I fired it off too quickly possibly.

I turned on debugging for gplink, but I’m not sure the output is meaningful. I've narrowed this down to one global function that's being exported from a library that I'm linking against, but I'm not sure why it's causing the link to puke. If I remove the "global" export and, subsequently, the "extern" statement for this function (and of course all references to it in the module that's linking against the library), it links fine.

If it helps, I can attach the gplink output. It's about 225KB in size. Like I said before though, it doesn't look too helpful. Here's what looks like a relevant snippet:

--------------------------------------------------------------------------------
Stack now 0
Entering state 1
Reading a token: Next token is token LEXEOF ()
Reducing stack by rule 2 (line 131):
-> $$ = nterm @1 ()
Stack now 0 1
Entering state 4
Next token is token LEXEOF ()
Shifting token LEXEOF ()
Entering state 9
Reducing stack by rule 6 (line 146):
   $1 = token LEXEOF ()
Stack now 0 1 4
Cleanup: popping nterm @1 ()
Cleanup: popping nterm program ()
error: missing definition for symbol "™", required by "16f690/test1.o"
make: *** [16f690/test1.hex] Error 1
--------------------------------------------------------------------------------

The output contains assemble/link for two programs, the first one (who's build succeeds) says this in the same location:

--------------------------------------------------------------------------------
Cleanup: popping nterm @1 ()
Cleanup: popping nterm program ()
debug: cleaning symbol table
debug:   removed symbol "_isr_W"
debug:   removed symbol "_isr_STATUS"
debug:   removed symbol "_isr_PCLATH"
debug:   removed symbol "_isr_FSR"
debug:   removed symbol "_stddef_temp"
debug:   removed symbol "_stddef_offset"
debug:   removed symbol "_stddef_stack"
debug:   removed symbol "SerialLogInit"
debug:   removed symbol "SerialLogWriteInt"
debug:   removed symbol "SerialLogWriteBits"
debug:   removed symbol "__SerialLogWriteTable"
debug:   removed symbol "SerialLogWriteW"
--------------------------------------------------------------------------------

Let me know if I should forward the entire debug output. Otherwise, I'm going to keep digging.

Thanks!
James



-----Original Message-----
From: David ####@####.#### 
Sent: Sunday, October 07, 2007 8:58 PM
To: ####@####.####
Subject: Re: [gnupic] gplink error

On Sun, 7 Oct 2007 20:30:30 -0400
"James A. Cleland" ####@####.#### wrote:

> Not sure what this is all about, has anyone seen something similar?
> 
>  
> 
> error: missing definition for symbol "+¢¾", required by
> "16f690/master1.o"
> 
No idea. Any other details that might tell us something? Did you build
master1.o or get it from someone else?

David Barnett

---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Subject: RE: [gnupic] gplink error
From: "James A. Cleland" ####@####.####
Date: 8 Oct 2007 02:16:22 +0100
Message-Id: <062201c80948$d25e9b90$771bd2b0$@com>

Nevermind, found it :) 

Apparently, the lexer allows the following...

extern a, b, c,

... but having no symbol after the trailing ',' breaks my link. I guess
this should be a syntax error.

Thanks!
James


-----Original Message-----
From: James A. Cleland ####@####.#### 
Sent: Sunday, October 07, 2007 8:31 PM
To: ####@####.####
Subject: [gnupic] gplink error

Not sure what this is all about, has anyone seen something similar?

 

error: missing definition for symbol "+♥", required by "16f690/master1.o"



[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.