[M3devel] need some help with linker error
Coleburn, Randy
rcolebur at SCIRES.COM
Sat Aug 31 23:41:43 CEST 2013
Jay:
I am using Python v 3.3.0.
--Randy
From: jayk123 at hotmail.com [mailto:jayk123 at hotmail.com] On Behalf Of Jay K
Sent: Saturday, August 31, 2013 11:59 AM
To: Coleburn, Randy; m3devel
Subject: EXT:RE: [M3devel] need some help with linker error
What version of Python? Maybe too old?
upgrade (i.e. your cmd) needs to include, not skip, mklib.
Compare it to the others.
The fix was in mklib and your cmd varies in this respect.
- Jay
________________________________
From: rcolebur at SCIRES.COM<mailto:rcolebur at SCIRES.COM>
To: m3devel at elegosoft.com<mailto:m3devel at elegosoft.com>
CC: jay.krell at cornell.edu<mailto:jay.krell at cornell.edu>
Subject: RE: [M3devel] need some help with linker error
Date: Sat, 31 Aug 2013 14:59:21 +0000
Jay:
I tried upgrade.py, without success.
Here are the results:
C:\cm3\Sandbox\scripts\python>python upgrade.py
Traceback (most recent call last):
File "upgrade.py", line 4, in <module>
import pylib
File "C:\cm3\Sandbox\scripts\python\pylib.py", line 900
PackageDB = (PackageDB or map(lambda(a): a.replace("\n", "").replace('\\', '/').replace("\r", ""), open(PKGSDB)))
^
SyntaxError: invalid syntax
I'm not familiar with python, so I'm not in a position to debug what is wrong.
--Randy
From: jayk123 at hotmail.com<mailto:jayk123 at hotmail.com> [mailto:jayk123 at hotmail.com] On Behalf Of Jay K
Sent: Friday, August 30, 2013 6:07 PM
To: Coleburn, Randy
Subject: EXT:RE: [M3devel] need some help with linker error
RCC_upgradeCM3.cmd looks incorrect.
Please try upgrade.py.
- Jay
________________________________
From: rcolebur at SCIRES.COM<mailto:rcolebur at SCIRES.COM>
To: jay.krell at cornell.edu<mailto:jay.krell at cornell.edu>
Subject: RE: [M3devel] need some help with linker error
Date: Fri, 30 Aug 2013 20:06:13 +0000
No, I ran my batch/CMD scripts, but these are based on what you had described previously as the correct steps.
Is there a new dependency or step I need to be aware of?
--Randy
From: jayk123 at hotmail.com<mailto:jayk123 at hotmail.com> [mailto:jayk123 at hotmail.com] On Behalf Of Jay K
Sent: Friday, August 30, 2013 3:46 PM
To: Coleburn, Randy; m3devel
Subject: EXT:RE: [M3devel] need some help with linker error
Did you run upgrade.py?
- Jay
________________________________
From: rcolebur at SCIRES.COM<mailto:rcolebur at SCIRES.COM>
To: m3devel at elegosoft.com<mailto:m3devel at elegosoft.com>
Date: Fri, 30 Aug 2013 16:12:32 +0000
Subject: Re: [M3devel] need some help with linker error
Jay:
I appreciate your help.
I just updated via CVS to get all your latest changes, but I am still getting the error with non-unique match for _xmm.
See below:
...
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
Can you point me in the right direction to solve this problem?
Thanks,
Randy Coleburn
From: jayk123 at hotmail.com<mailto:jayk123 at hotmail.com> [mailto:jayk123 at hotmail.com] On Behalf Of Jay K
Sent: Tuesday, August 27, 2013 11:28 AM
To: Rodney M. Bates; m3devel
Subject: EXT:Re: [M3devel] need some help with linker error
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<mailto:jay.krell at cornell.edu>
To: rodney_bates at lcwb.coop<mailto:rodney_bates at lcwb.coop>; m3devel at elegosoft.com<mailto: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<mailto:jay.krell at cornell.edu>
To: rodney_bates at lcwb.coop<mailto:rodney_bates at lcwb.coop>; m3devel at elegosoft.com<mailto: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<mailto:jay.krell at cornell.edu>
To: rodney_bates at lcwb.coop<mailto:rodney_bates at lcwb.coop>; m3devel at elegosoft.com<mailto: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<mailto:rodney_bates at lcwb.coop>
> To: m3devel at elegosoft.com<mailto: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/20130831/fa16ac33/attachment-0002.html>
More information about the M3devel
mailing list