forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Internal Linker Error

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Tue Mar 21, 2006 9:19 am    Post subject: Internal Linker Error Reply with quote

I am trying to see if an upgrade from CVF to .NET is a good investment for my company. With minor changes, my code compiles (with a bunch of warnings about unused variables and different lengths of common blocks and such). When I try to link it, I get

LINK : error - Internal Linker Error

Folks, what gives? This is code that's been in constant development and use for a good 20+ years!
Back to top
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Mar 21, 2006 10:03 am    Post subject: Internal Linker Error Reply with quote

Nick

Your code compiles successfully but then the object code raises an exception in DBK_LINK during
the linking process.

The only way to resolve this is to leave out blocks of code until the problem goes away and then work
back up again.

If you can isolate the problem then please send us details.



Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Mar 21, 2006 11:14 am    Post subject: Internal Linker Error Reply with quote

Another way forward...

See if you get any useful information by running under Win32 rather than .NET.
Use CHECKMATE.

Back to top
View user's profile Send private message AIM Address
Anonymous
Guest





PostPosted: Tue Mar 21, 2006 3:35 pm    Post subject: Internal Linker Error Reply with quote

Sure, I can give it a try.

Our stable release (528 files) compiled fine despite the warnings.

Our latest beta (784 files) didn't quite make it on a rebuild, and even managed to crash one time around:

Runtime error from program:c:program filessalford softwareftn95ftn95.exe
Access Violation
The instruction at address 0048e79b attempted to write to location 00004000

0048e5a4 collect_fortran_symbols(<ptr>structÄscope) [+01f7]

0048f049 generate_debug_tables(void) [+004f]

00416941 end_function(int) [+1128]

00418730 parse_end_statement(<ptr>char,int,<ref>int) [+0b7b]

0041200b handle_token(<ptr>char,int,int,int,int,<ref>int) [+0e56]

0040514d ProcessEntireLine(void) [+0695]

0040619b compile(<ptr>char) [+00ce]

00401000 main [+049b]


eax=00000000 ebx=047cde44 ecx=7c8126cd
edx=00040608 esi=00000000 edi=00001000
ebp=0383f63c esp=0383f618 IOPL=2
ds=0023 es=0023 fs=003b
gs=0000 cs=001b ss=0023
flgs=00210202 [NC OP NZ SN DN NV]

0048e79b mov [eax+edi*4],ebx
0048e79f mov ebx,[ebx+0x34]
0048e7a2 or ebx,ebx


I hit the "Build" button again, and then I got:

32 errors similar to
LINK : warning - Common block /ASDF/ was defined with a length of 13680 bytes in ABC but is defined in DEF with 13504 bytes

and the last one:
LINK : error - Internal Linker Error

The compiler crash seems to be consistent.



Next time I did a rebuild, I crashed the entire MSDE (devenv.exe, module ntdll.dll...)

Back to top
Anonymous
Guest





PostPosted: Tue Mar 21, 2006 3:52 pm    Post subject: Internal Linker Error Reply with quote

OK, I did checkmate.net

compiling file pwrebl.for
bla bla
compiling file pwrrcs.for

CRASH

0048e5a4 collect_fortran_symbols(<ptr>structÄscope) [+01f7]
0048f049 generate_debug_tables(void) [+004f]
00416941 end_function(int) [+1128]
00418730 parse_end_statement(<ptr>char,int,<ref>int) [+0b7b]
0041200b handle_token(<ptr>char,int,int,int,int,<ref>int) [+0e56]
0040514d ProcessEntireLine(void) [+0695]
0040619b compile(<ptr>char) [+00ce]
00401000 main [+049b]

Salford exception handler
Fail to register registers dialog procedure.
Information will appear in a simple messagebox

(info the same like in .NET except,
eax=0 ebx=047cd8ac ecx=7c8126cd
edx=00040608 esi=0 edi=1000
IOPL=0
027F/5020 TSTK=2[]

0048e79b mov [eax+edi*4],ebx
0048e79f mov ebx,[ebx+0x34]


disassembled info,

0048e79b mov [eax+edi*4],ebx
0048e79f mov ebx,[ebx+0x34]
0048e7a2 or ebx,ebx
0048e7a4 jne 48e6b8
0048e7aa mov edi,[ebp+0x8]
0048e7ad mov ecx,[edi+0x4]
0048e7b0 mov [ebp+0x8],ecx
0048e7b3 mov eax,[ebp+0x8]
0048e7b6 or eax,eax
0048e7b8 je 48e7c8
(and about 9 more of those message boxes)

and then it continued to compile.
Back to top
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Tue Mar 21, 2006 11:46 pm    Post subject: Internal Linker Error Reply with quote

My suggestion was that you try checkmate for Win32 to see if it showed up any programming errors.
Back to top
View user's profile Send private message AIM Address
Anonymous
Guest





PostPosted: Wed Mar 22, 2006 8:05 am    Post subject: Internal Linker Error Reply with quote

My bad - Checkmate Win32 built with no problems. Win32 built with no problems, likewise. (though I still get a bunch of warnings).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group