[M3devel] need some help with linker error

Dragiša Durić dragisha at m3w.org
Wed Aug 28 00:25:15 CEST 2013


heh :). More like trying to introduce some support. There was no such thing beforehand.

I am glad you fixed my first aid effort. Thanks!
--
Dragiša Durić
dragisha at m3w.org



On Aug 27, 2013, at 5:28 PM, Jay K wrote:

> This is fixed now too.
> Dragisha had introduced heap corruption in FSWin32.m3 trying to improve Unicode support.
>  
>  - Jay
>  
> From: jay.krell at cornell.edu
> To: rodney_bates at lcwb.coop; m3devel at elegosoft.com
> Date: Tue, 27 Aug 2013 14:55:13 +0000
> Subject: Re: [M3devel] need some help with linker error
> 
> Hm. That leaves me with:
>  
>  +++ C:\cm3\bin\cm3.exe    -build -DROOT=C:/dev2/cm3.2 +++
> --- building in NT386 ---
> ignoring ..\src\m3overrides
>  
> ***
> *** runtime error:
> ***    Attempt to reference an illegal memory location.
> ***
> Stack trace:
>    FP         PC      Procedure
> ---------  ---------  -------------------------------
>  0x14efe0  0x11bdadb  SystemError + 0x64 in ..\src\runtime\NT386\RTSignal.m3
>  0x14f028  0x76f22d94  <???>
>  0x14f040  0x76f22ce8  <???>
>  0x14f054  0x759bc3d4  <???>
>  0x14f068  0x6302dcc2  <???>
>  0x14f074  0x11bbe02  Cstdlib_I3 + 0x1a2 in ..\src\C\Common\Cstdlib.i3
>  0x14f088  0x11a7925  DisposeUntracedRef + 0x2c in ..\src\runtime\common\RTAlloc
> ator.m3
>  0x14f09c  0x11a1687  DelCriticalSection + 0x2d in ..\src\thread\WIN32\ThreadWin
> 32.m3
>  0x14f0b8  0x11a161a  CleanMutex + 0x89 in ..\src\thread\WIN32\ThreadWin32.m3
>  0x14f0ec  0x1196371  PostHandleWeakRefs + 0x2ae in ..\src\runtime\common\RTColl
> ector.m3
> .........  .........  ... more frames ...
>  *** execution of [<function _BuildGlobalFunction at 0x018E0A70>, <function _Shi
> pFunction at 0x0197B630>] failed ***
>  
> Not good.
>  
>  - Jay
> 
> 
> 
>  
> From: jay.krell at cornell.edu
> To: rodney_bates at lcwb.coop; m3devel at elegosoft.com
> Date: Tue, 27 Aug 2013 09:07:25 +0000
> Subject: Re: [M3devel] need some help with linker error
> 
> I updated m3-sys/mklib to ignore these.
> Let me know if there are any more problems.
>  
> Thanks,
>  - Jay
>  
> From: jay.krell at cornell.edu
> To: rodney_bates at lcwb.coop; m3devel at elegosoft.com
> Date: Tue, 27 Aug 2013 06:43:53 +0000
> Subject: Re: [M3devel] need some help with linker error
> 
>  > Is there a chance both are getting linked in?
> 
> No. There is no chance of this.
>  
>  
> > Or one from the modula-3 distribution, and one already in some MS-supplied
> > library?
> 
>  
> No. There is no chance of this either.
>  
>  
> I forget how we generate the .def file but we need to exclude names "like" this -- that start _xmm at .
> These are floating point constants for code that uses sse2.
> You are targeting 32bit, right?
> Still, I guess these might occur, with newer compilers.
> I'll look into it.
> We already have to code exclude the older forms of floating point constants.
>  
>   - Jay
> 
>  
> > Date: Mon, 26 Aug 2013 20:03:20 -0500
> > From: rodney_bates at lcwb.coop
> > To: m3devel at elegosoft.com
> > Subject: Re: [M3devel] need some help with linker error
> > 
> > This is just a wild guess, but there are two dtoa.c files, in
> > 
> > m3-libs/m3core/src/Csupport/little-endian/dtoa.c and
> > m3-libs/m3core/src/Csupport/big-endian/dtoa.c
> > 
> > No doubt they are alternatives. Is there a chance both are getting linked in?
> > Or one from the modula-3 distribution, and one already in some MS-supplied
> > library?
> > 
> > On 08/26/2013 07:49 PM, Coleburn, Randy wrote:
> > > Jay:
> > >
> > > I’m getting errors trying to rebuild m3core.lib on Win7-64bit. Specifically, see below the error I get from the Microsoft Linker.
> > >
> > > The full text of the m3core.lst file is also shown at the end of this message.
> > >
> > > msvcrt.lib
> > >
> > > m3core.def : warning LNK4022: cannot find unique match for symbol '_xmm'
> > >
> > > m3core.def : warning LNK4002: __xmm at 41f00000000000000000000000000000 defined in dtoa.obj
> > >
> > > m3core.def : warning LNK4002: __xmm at 80000000000000008000000000000000 defined in dtoa.obj
> > >
> > > m3core.def : error LNK2001: unresolved external symbol _xmm
> > >
> > > m3core.lib : fatal error LNK1120: 1 unresolved externals
> > >
> > > Any ideas on what I should do to resolve this problem?
> > >
> > > Thanks,
> > >
> > > Randy Coleburn
> > >
> > >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130828/5352111e/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130828/5352111e/attachment-0002.sig>


More information about the M3devel mailing list