GithubHelp home page GithubHelp logo

Comments (8)

jaykrell avatar jaykrell commented on September 14, 2024
  1. Visual Studio 2015 has a new C runtime and it requires an update to the "config" files.
    That should explain most of this.
    It used to be you'd link to msvcrt.lib or libcmt.lib.
    That changed.

  2. _xmm and probably OptionsStorage I believe are related to an update we need in mklib.

I'm working on fixing NT386 wrt the alloca change then hopefully come back to AMD64_NT.

(I do not trust NT386 under wow64 because SuspendThread + GetThreadContext don't really work -- we need cooperative suspend..)

  • Jay

Date: Mon, 28 Dec 2015 10:09:57 -0800
From: [email protected]
To: [email protected]
Subject: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)

I'm trying to build from your current sources. The compiler for boostrapping is from here: https://modula3.elegosoft.com/cm3/snaps/cm3-bin-core-NT386-d5.9.0-i686-pc-cygwin-2011-06-16-11-34-26.tgz

Sadly, there are some symbols missing. '_xmm' and '_OptionsStorage'.

I googled a bit and found an entry related to this issue from your mailing list: https://mail.elegosoft.com/pipermail/m3devel/2013-August/010720.html

Before posting here I double-checked everything:

a) I'm running Win 10 x64 but the MSVC toolchain is set to 32bit with:

cmd /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86

b) Also I tried to prepare everything for Unicode by following the README from here: https://github.com/modula3/cm3/blob/master/scripts/README-build-unicode

But this was equally unsuccessful.

I received errors like these here:

Creating library sysutils.lib and object sysutils.exp
LINK : warning LNK4199: /DELAYLOAD:advapi32.dll ignored; no imports found from advapi32.dll
LINK : warning LNK4199: /DELAYLOAD:gdi32.dll ignored; no imports found from gdi32.dll
LINK : warning LNK4199: /DELAYLOAD:netapi32.dll ignored; no imports found from netapi32.dll
LINK : warning LNK4199: /DELAYLOAD:user32.dll ignored; no imports found from user32.dll
LINK : warning LNK4199: /DELAYLOAD:comctl32.dll ignored; no imports found from comctl32.dll
LINK : warning LNK4199: /DELAYLOAD:rpcrt4.dll ignored; no imports found from rpcrt4.dll
LINK : warning LNK4199: /DELAYLOAD:iphlpapid.dll ignored; no imports found from iphlpapid.dll
SystemC.obj : error LNK2019: unresolved external symbol imp___errno referenced in function _System__GetErrno
TextUtils.mo : error LNK2001: unresolved external symbol __setjmp
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol __setjmp
Confirmation.mo : error LNK2001: unresolved external symbol __setjmp
DirStack.mo : error LNK2001: unresolved external symbol __setjmp
ConnectRdWr.mo : error LNK2001: unresolved external symbol __setjmp
FSysWin32.mo : error LNK2001: unresolved external symbol __setjmp
System.mo : error LNK2001: unresolved external symbol __setjmp
PathReprCommon.mo : error LNK2001: unresolved external symbol __setjmp
TextReadingUtils.mo : error LNK2001: unresolved external symbol __setjmp
FastLex.mo : error LNK2001: unresolved external symbol __setjmp
EnvUtils.mo : error LNK2001: unresolved external symbol __setjmp
FSUtils.mo : error LNK2001: unresolved external symbol __setjmp
SMsg.mo : error LNK2001: unresolved external symbol __setjmp
MsgIF.mo : error LNK2001: unresolved external symbol __setjmp
FSUnixC.obj : error LNK2019: unresolved external symbol __imp___access referenced in function _FSUtils__access
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol ___intrinsic_setjmp
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol __initterm referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE
* const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol initterm_e referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE * const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_invoke_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_return_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __seh_filter_dll referenced in function ___scrt_dllmain_exception_filter
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_narrow_environment referenced in function ___scrt_dllmain_after_initialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_onexit_table referenced in function ___scrt_initialize_onexit_tables
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __register_onexit_function referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __execute_onexit_table referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_atexit referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_at_quick_exit referenced in function _at_quick_exit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __cexit referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol ___std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@yaxxz)
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _terminate referenced in function ___scrt_unhandled_exception_filter@4
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _memset referenced in function ___scrt_fastfail
msvcrt.lib(chandler4gs.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4
sysutils.dll : fatal error LNK1120: 20 unresolved externals

I've tried Batch and Python-Scripts. I'm using Anaconda Package which provides a complete Python env. Version 2.7.11

Here's the error message I get when executing python upgrade.py

Microsoft (R) Incremental Linker Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.

-nodefaultlib
-debug
-incremental:no
-opt:ref
-delayload:ws2_32.dll
-delayload:advapi32.dll
-delayload:gdi32.dll
-delayload:netapi32.dll
-delayload:user32.dll
-delayload:comctl32.dll
-delayload:rpcrt4.dll
-delayload:iphlpapid.dll
delayimp.lib
-def:m3core.def
-dll
-out:m3core.dll
hand.obj
dtoa.obj
libgcc.obj
RTHooks.io
RTHooks.mo
RT0.io
RT0.mo
RuntimeError.io
RuntimeError.mo
Compiler.io
Compiler.mo
RTAllocator.io
RTAllocator.mo
RTAllocCnts.io
RTAllocStats.io
RTAllocStats.mo
RTHeap.io
RTHeap.mo
RTHeapInfo.io
RTHeapInfo.mo
RTHeapMap.io
RTHeapMap.mo
RTHeapRep.io
RTHeapRep.mo
RTHeapStats.io
RTHeapStats.mo
RTCollector.io
RTCollector.mo
RTCollectorSRC.io
RTWeakRef.io
RTIO.io
RTIO.mo
RTIOc.obj
RTLinkerX.io
RTLinker.io
RTLinker.mo
RTLinkerC.obj
RTDebug.io
RTDebug.mo
RTDebugC.obj
RTError.io
RTError.mo
RTException.io
RTException.mo
RTMapOp.io
RTMapOp.mo
RTMisc.io
RTMisc.mo
RTMiscC.obj
RTModule.io
RTPacking.io
RTPacking.mo
RTParams.io
RTParams.mo
RTProcedure.io
RTProcedure.mo
RTProcess.io
RTProcess.mo
RTProcessC.obj
RTThread.io
RTTipe.io
RTTipe.mo
RTType.io
RTType.mo
RTTypeFP.io
RTTypeFP.mo
RTTypeMap.io
RTTypeMap.mo
RTutils.io
RTutils.mo
RTHeapDebug.io
RTHeapDebug.mo
RTArgs.io
RTHeapEvent.io
RTProcedureSRC.io
RTSignal.io
RTStack.io
RTTypeSRC.io
RTOS.io
RTMachine.io
RTArgs.mo
RTOS.mo
RTPerfTool.io
RTPerfTool.mo
RTOSc.obj
RTSignal.mo
RTMachInfo.io
RTMachInfo.mo
RTExFrame.mo
RTStackC.obj
Thread.io
ThreadF.io
Scheduler.io
ThreadDebug.io
ThreadDebug.obj
MutexRep.io
ThreadEvent.io
ThreadContext.io
ThreadWin32.io
ThreadWin32.mo
ThreadWin32C.obj
WinBaseTypes.io
WinDef.io
WinDef.mo
WinNT.io
WinNT.mo
WinError.io
WinBase.io
WinCon.io
WinGDI.io
WinIoctl.io
WinIoctl.mo
WinNetwk.io
WinNLS.io
WinReg.io
WinReg.mo
WinSock.io
WinSock.mo
WinUser.io
WinVer.io
WinVer.mo
NB30.io
NB30.mo
CDErr.io
CommDlg.io
TlHelp32.io
WinMidi.io
WinCommCtrl.io
WinTabCon.io
WinListView.io
WinImageList.io
WinNTc.obj
WinGDI.mo
WinUser.mo
WinUserC.obj
WinTabCon.mo
WinListView.mo
WinImageList.mo
UtimeC.obj
UnixC.obj
UnixLink.obj
Uexec.io
Uexec.obj
Unetdb.io
Unetdb.obj
Umman.obj
Ugrp.io
Ugrp.obj
Uin.obj
Uugid.obj
Uuio.obj
Uutmp.obj
Usignal.obj
Upwd.obj
Uprocess.obj
Usignal.io
Uconstants.obj
Uutmp.io
Umman.io
Uuio.io
Upwd.io
Uugid.io
Uprocess.io
Unix.io
Unix.mo
Utime.io
Utypes.io
Uerror.io
Usched.io
Usocket.io
Usocket.obj
Ustat.io
Udir.io
UdirC.obj
Uin.io
Cerrno.io
Cstddef.io
Cstdint.io
Cstdlib.io
CstdlibC.obj
Ctypes.io
M3toC.io
M3toC.mo
CerrnoC.obj
Cstring.io
CstringC.obj
Cstdio.io
CstdioC.obj
Csignal.io
CsignalC.obj
Csetjmp.io
CsetjmpC.obj
BasicCtypes.io
FPU.io
RealFloat.io
LongFloat.io
ExtendedFloat.io
IEEESpecial.io
IEEESpecial.mo
Real.mo
LongReal.mo
Extended.mo
DragonInt.io
DragonInt.mo
DragonT.io
DragonT.mo
FloatMode.io
FloatMode.mo
Real.io
LongReal.io
Extended.io
RealFloat.mo
LongFloat.mo
ExtendedFloat.mo
RealRep.io
LongRealRep.io
Time.io
Tick.io
Date.io
FmtTime.io
FmtTime.mo
TickPortable.mo
TimeWin32.io
Time.mo
DateWin32.mo
TimeWin32.obj
CConvert.io
CConvert.mo
Convert.io
Convert.mo
String8.io
String8.mo
String16.io
String16.mo
Text.io
Text.mo
TextClass.io
TextClass.mo
TextLiteral.io
TextLiteral.mo
Text8.io
Text8.mo
Text8Short.io
Text8Short.mo
Text8CString.io
Text8CString.mo
Text16.io
Text16.mo
Text16Short.io
Text16Short.mo
TextSub.io
TextSub.mo
TextCat.io
TextCat.mo
TextStats.io
TextStats.mo
TextConv.io
TextConv.mo
Fingerprint.io
Fingerprint.mo
Poly.io
Poly.mo
PolyBasis.io
PolyBasis.mo
Main.io
WeakRef.io
WeakRef.mo
WordRep.io
Word.io
LongRep.io
Long.io
Word.mo
Long.mo
Boolean.io
Boolean.mo
Char.io
Char.mo
Int32.io
Int32.mo
Int64.io
Int64.mo
Integer.io
Integer.mo
Longint.io
Longint.mo
Refany.io
Refany.mo
ASCII.io
ASCII.mo
WideChar.io
WideChar.mo
Unicode.io
Unicode.mo
Address.io
Address.mo
iphlpapi.lib
rpcrt4.lib
winspool.lib
comctl32.lib
ws2_32.lib
comdlg32.lib
netapi32.lib
gdi32.lib
user32.lib
advapi32.lib
kernel32.lib
msvcrt.lib
m3core.def : warning LNK4022: cannot find unique match for symbol '_xmm'
m3core.def : warning LNK4002: __xmm@41f00000000000000000000000000000 defined in dtoa.obj
m3core.def : warning LNK4002: __xmm@80000000000000008000000000000000 defined in dtoa.obj
m3core.def : error LNK2001: unresolved external symbol " ?? _OptionsStorage" (?_OptionsStorage)
m3core.def : error LNK2001: unresolved external symbol _xmm
m3core.lib : fatal error LNK1120: 2 unresolved externals


Reply to this email directly or view it on GitHub.

from cm3.

jaykrell avatar jaykrell commented on September 14, 2024

Hm. -- the _xmm change I already made.
OptionsStorage I expect is related to the new C runtime, and requires another change in mklib.
I'll try to fix this all soon (after figuring out the xmm problem).

  • Jay

From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)
Date: Tue, 29 Dec 2015 06:54:40 +0000

  1. Visual Studio 2015 has a new C runtime and it requires an update to the "config" files.
    That should explain most of this.
    It used to be you'd link to msvcrt.lib or libcmt.lib.
    That changed.

  2. _xmm and probably OptionsStorage I believe are related to an update we need in mklib.

I'm working on fixing NT386 wrt the alloca change then hopefully come back to AMD64_NT.

(I do not trust NT386 under wow64 because SuspendThread + GetThreadContext don't really work -- we need cooperative suspend..)

  • Jay

Date: Mon, 28 Dec 2015 10:09:57 -0800
From: [email protected]
To: [email protected]
Subject: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)

I'm trying to build from your current sources. The compiler for boostrapping is from here: https://modula3.elegosoft.com/cm3/snaps/cm3-bin-core-NT386-d5.9.0-i686-pc-cygwin-2011-06-16-11-34-26.tgz

Sadly, there are some symbols missing. '_xmm' and '_OptionsStorage'.

I googled a bit and found an entry related to this issue from your mailing list: https://mail.elegosoft.com/pipermail/m3devel/2013-August/010720.html

Before posting here I double-checked everything:

a) I'm running Win 10 x64 but the MSVC toolchain is set to 32bit with:

cmd /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86

b) Also I tried to prepare everything for Unicode by following the README from here: https://github.com/modula3/cm3/blob/master/scripts/README-build-unicode

But this was equally unsuccessful.

I received errors like these here:

Creating library sysutils.lib and object sysutils.exp
LINK : warning LNK4199: /DELAYLOAD:advapi32.dll ignored; no imports found from advapi32.dll
LINK : warning LNK4199: /DELAYLOAD:gdi32.dll ignored; no imports found from gdi32.dll
LINK : warning LNK4199: /DELAYLOAD:netapi32.dll ignored; no imports found from netapi32.dll
LINK : warning LNK4199: /DELAYLOAD:user32.dll ignored; no imports found from user32.dll
LINK : warning LNK4199: /DELAYLOAD:comctl32.dll ignored; no imports found from comctl32.dll
LINK : warning LNK4199: /DELAYLOAD:rpcrt4.dll ignored; no imports found from rpcrt4.dll
LINK : warning LNK4199: /DELAYLOAD:iphlpapid.dll ignored; no imports found from iphlpapid.dll
SystemC.obj : error LNK2019: unresolved external symbol imp___errno referenced in function _System__GetErrno
TextUtils.mo : error LNK2001: unresolved external symbol __setjmp
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol __setjmp
Confirmation.mo : error LNK2001: unresolved external symbol __setjmp
DirStack.mo : error LNK2001: unresolved external symbol __setjmp
ConnectRdWr.mo : error LNK2001: unresolved external symbol __setjmp
FSysWin32.mo : error LNK2001: unresolved external symbol __setjmp
System.mo : error LNK2001: unresolved external symbol __setjmp
PathReprCommon.mo : error LNK2001: unresolved external symbol __setjmp
TextReadingUtils.mo : error LNK2001: unresolved external symbol __setjmp
FastLex.mo : error LNK2001: unresolved external symbol __setjmp
EnvUtils.mo : error LNK2001: unresolved external symbol __setjmp
FSUtils.mo : error LNK2001: unresolved external symbol __setjmp
SMsg.mo : error LNK2001: unresolved external symbol __setjmp
MsgIF.mo : error LNK2001: unresolved external symbol __setjmp
FSUnixC.obj : error LNK2019: unresolved external symbol __imp___access referenced in function _FSUtils__access
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol ___intrinsic_setjmp
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol __initterm referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE
* const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol initterm_e referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE * const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_invoke_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_return_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __seh_filter_dll referenced in function ___scrt_dllmain_exception_filter
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_narrow_environment referenced in function ___scrt_dllmain_after_initialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_onexit_table referenced in function ___scrt_initialize_onexit_tables
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __register_onexit_function referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __execute_onexit_table referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_atexit referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_at_quick_exit referenced in function _at_quick_exit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __cexit referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol ___std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@yaxxz)
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _terminate referenced in function ___scrt_unhandled_exception_filter@4
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _memset referenced in function ___scrt_fastfail
msvcrt.lib(chandler4gs.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4
sysutils.dll : fatal error LNK1120: 20 unresolved externals

I've tried Batch and Python-Scripts. I'm using Anaconda Package which provides a complete Python env. Version 2.7.11

Here's the error message I get when executing python upgrade.py

Microsoft (R) Incremental Linker Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.

-nodefaultlib
-debug
-incremental:no
-opt:ref
-delayload:ws2_32.dll
-delayload:advapi32.dll
-delayload:gdi32.dll
-delayload:netapi32.dll
-delayload:user32.dll
-delayload:comctl32.dll
-delayload:rpcrt4.dll
-delayload:iphlpapid.dll
delayimp.lib
-def:m3core.def
-dll
-out:m3core.dll
hand.obj
dtoa.obj
libgcc.obj
RTHooks.io
RTHooks.mo
RT0.io
RT0.mo
RuntimeError.io
RuntimeError.mo
Compiler.io
Compiler.mo
RTAllocator.io
RTAllocator.mo
RTAllocCnts.io
RTAllocStats.io
RTAllocStats.mo
RTHeap.io
RTHeap.mo
RTHeapInfo.io
RTHeapInfo.mo
RTHeapMap.io
RTHeapMap.mo
RTHeapRep.io
RTHeapRep.mo
RTHeapStats.io
RTHeapStats.mo
RTCollector.io
RTCollector.mo
RTCollectorSRC.io
RTWeakRef.io
RTIO.io
RTIO.mo
RTIOc.obj
RTLinkerX.io
RTLinker.io
RTLinker.mo
RTLinkerC.obj
RTDebug.io
RTDebug.mo
RTDebugC.obj
RTError.io
RTError.mo
RTException.io
RTException.mo
RTMapOp.io
RTMapOp.mo
RTMisc.io
RTMisc.mo
RTMiscC.obj
RTModule.io
RTPacking.io
RTPacking.mo
RTParams.io
RTParams.mo
RTProcedure.io
RTProcedure.mo
RTProcess.io
RTProcess.mo
RTProcessC.obj
RTThread.io
RTTipe.io
RTTipe.mo
RTType.io
RTType.mo
RTTypeFP.io
RTTypeFP.mo
RTTypeMap.io
RTTypeMap.mo
RTutils.io
RTutils.mo
RTHeapDebug.io
RTHeapDebug.mo
RTArgs.io
RTHeapEvent.io
RTProcedureSRC.io
RTSignal.io
RTStack.io
RTTypeSRC.io
RTOS.io
RTMachine.io
RTArgs.mo
RTOS.mo
RTPerfTool.io
RTPerfTool.mo
RTOSc.obj
RTSignal.mo
RTMachInfo.io
RTMachInfo.mo
RTExFrame.mo
RTStackC.obj
Thread.io
ThreadF.io
Scheduler.io
ThreadDebug.io
ThreadDebug.obj
MutexRep.io
ThreadEvent.io
ThreadContext.io
ThreadWin32.io
ThreadWin32.mo
ThreadWin32C.obj
WinBaseTypes.io
WinDef.io
WinDef.mo
WinNT.io
WinNT.mo
WinError.io
WinBase.io
WinCon.io
WinGDI.io
WinIoctl.io
WinIoctl.mo
WinNetwk.io
WinNLS.io
WinReg.io
WinReg.mo
WinSock.io
WinSock.mo
WinUser.io
WinVer.io
WinVer.mo
NB30.io
NB30.mo
CDErr.io
CommDlg.io
TlHelp32.io
WinMidi.io
WinCommCtrl.io
WinTabCon.io
WinListView.io
WinImageList.io
WinNTc.obj
WinGDI.mo
WinUser.mo
WinUserC.obj
WinTabCon.mo
WinListView.mo
WinImageList.mo
UtimeC.obj
UnixC.obj
UnixLink.obj
Uexec.io
Uexec.obj
Unetdb.io
Unetdb.obj
Umman.obj
Ugrp.io
Ugrp.obj
Uin.obj
Uugid.obj
Uuio.obj
Uutmp.obj
Usignal.obj
Upwd.obj
Uprocess.obj
Usignal.io
Uconstants.obj
Uutmp.io
Umman.io
Uuio.io
Upwd.io
Uugid.io
Uprocess.io
Unix.io
Unix.mo
Utime.io
Utypes.io
Uerror.io
Usched.io
Usocket.io
Usocket.obj
Ustat.io
Udir.io
UdirC.obj
Uin.io
Cerrno.io
Cstddef.io
Cstdint.io
Cstdlib.io
CstdlibC.obj
Ctypes.io
M3toC.io
M3toC.mo
CerrnoC.obj
Cstring.io
CstringC.obj
Cstdio.io
CstdioC.obj
Csignal.io
CsignalC.obj
Csetjmp.io
CsetjmpC.obj
BasicCtypes.io
FPU.io
RealFloat.io
LongFloat.io
ExtendedFloat.io
IEEESpecial.io
IEEESpecial.mo
Real.mo
LongReal.mo
Extended.mo
DragonInt.io
DragonInt.mo
DragonT.io
DragonT.mo
FloatMode.io
FloatMode.mo
Real.io
LongReal.io
Extended.io
RealFloat.mo
LongFloat.mo
ExtendedFloat.mo
RealRep.io
LongRealRep.io
Time.io
Tick.io
Date.io
FmtTime.io
FmtTime.mo
TickPortable.mo
TimeWin32.io
Time.mo
DateWin32.mo
TimeWin32.obj
CConvert.io
CConvert.mo
Convert.io
Convert.mo
String8.io
String8.mo
String16.io
String16.mo
Text.io
Text.mo
TextClass.io
TextClass.mo
TextLiteral.io
TextLiteral.mo
Text8.io
Text8.mo
Text8Short.io
Text8Short.mo
Text8CString.io
Text8CString.mo
Text16.io
Text16.mo
Text16Short.io
Text16Short.mo
TextSub.io
TextSub.mo
TextCat.io
TextCat.mo
TextStats.io
TextStats.mo
TextConv.io
TextConv.mo
Fingerprint.io
Fingerprint.mo
Poly.io
Poly.mo
PolyBasis.io
PolyBasis.mo
Main.io
WeakRef.io
WeakRef.mo
WordRep.io
Word.io
LongRep.io
Long.io
Word.mo
Long.mo
Boolean.io
Boolean.mo
Char.io
Char.mo
Int32.io
Int32.mo
Int64.io
Int64.mo
Integer.io
Integer.mo
Longint.io
Longint.mo
Refany.io
Refany.mo
ASCII.io
ASCII.mo
WideChar.io
WideChar.mo
Unicode.io
Unicode.mo
Address.io
Address.mo
iphlpapi.lib
rpcrt4.lib
winspool.lib
comctl32.lib
ws2_32.lib
comdlg32.lib
netapi32.lib
gdi32.lib
user32.lib
advapi32.lib
kernel32.lib
msvcrt.lib
m3core.def : warning LNK4022: cannot find unique match for symbol '_xmm'
m3core.def : warning LNK4002: __xmm@41f00000000000000000000000000000 defined in dtoa.obj
m3core.def : warning LNK4002: __xmm@80000000000000008000000000000000 defined in dtoa.obj
m3core.def : error LNK2001: unresolved external symbol " ?? _OptionsStorage" (?_OptionsStorage)
m3core.def : error LNK2001: unresolved external symbol _xmm
m3core.lib : fatal error LNK1120: 2 unresolved externals


Reply to this email directly or view it on GitHub.

from cm3.

brakmic avatar brakmic commented on September 14, 2024

Thanks 👍

from cm3.

jaykrell avatar jaykrell commented on September 14, 2024

Please try again with the current tree and report back -- in particular the NT.common and mklib changes.

You will need to do two extra things.

  1. set CM3_VS2015_OR_NEWER=1 in the environment.

  2. Update \cm3\bin\config\NT.common, such as by running scripts\python\make-dist-cfg.py,
    before you run upgrade.py (or upgrade-full.cmd).
    The difference is the part that uses CM3_VS2015_OR_NEWER.

I don't have a distribution made yet, but soon.

I bootstrapped from these:
http://www.opencm3.net/releng/cm3-NT386-REL.msi (5.8.6)
https://modula3.elegosoft.com/cm3/cm3-min-WIN32-NT386-d5.5.0.zip
https://modula3.elegosoft.com/cm3/cm3-min-WIN32-NT386-5.2.6.tgz

I haven't yet tried with:
https://modula3.elegosoft.com/cm3/cm3-min-WIN32-NT386-5.1.3.tgz
https://modula3.elegosoft.com/cm3/cm3-min-WIN32-NT386-5.1.8.tgz
https://modula3.elegosoft.com/cm3/cm3-min-WIN32-NT386-5.1.3a.tgz

(all of which I'd like to be on github as well)

Nor have I cross-bootstrapped, which I really should.

Thank you,

  • Jay

From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)
Date: Tue, 29 Dec 2015 07:02:32 +0000

Hm. -- the _xmm change I already made.
OptionsStorage I expect is related to the new C runtime, and requires another change in mklib.
I'll try to fix this all soon (after figuring out the xmm problem).

  • Jay

From: [email protected]
To: [email protected]; [email protected]
Subject: RE: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)
Date: Tue, 29 Dec 2015 06:54:40 +0000

  1. Visual Studio 2015 has a new C runtime and it requires an update to the "config" files.
    That should explain most of this.
    It used to be you'd link to msvcrt.lib or libcmt.lib.
    That changed.

  2. _xmm and probably OptionsStorage I believe are related to an update we need in mklib.

I'm working on fixing NT386 wrt the alloca change then hopefully come back to AMD64_NT.

(I do not trust NT386 under wow64 because SuspendThread + GetThreadContext don't really work -- we need cooperative suspend..)

  • Jay

Date: Mon, 28 Dec 2015 10:09:57 -0800
From: [email protected]
To: [email protected]
Subject: [cm3] Win 10 x64: Warning LNK4022: cannot find match for _xmm and _OptionsStorage (#8)

I'm trying to build from your current sources. The compiler for boostrapping is from here: https://modula3.elegosoft.com/cm3/snaps/cm3-bin-core-NT386-d5.9.0-i686-pc-cygwin-2011-06-16-11-34-26.tgz

Sadly, there are some symbols missing. '_xmm' and '_OptionsStorage'.

I googled a bit and found an entry related to this issue from your mailing list: https://mail.elegosoft.com/pipermail/m3devel/2013-August/010720.html

Before posting here I double-checked everything:

a) I'm running Win 10 x64 but the MSVC toolchain is set to 32bit with:

cmd /k ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86

b) Also I tried to prepare everything for Unicode by following the README from here: https://github.com/modula3/cm3/blob/master/scripts/README-build-unicode

But this was equally unsuccessful.

I received errors like these here:

Creating library sysutils.lib and object sysutils.exp
LINK : warning LNK4199: /DELAYLOAD:advapi32.dll ignored; no imports found from advapi32.dll
LINK : warning LNK4199: /DELAYLOAD:gdi32.dll ignored; no imports found from gdi32.dll
LINK : warning LNK4199: /DELAYLOAD:netapi32.dll ignored; no imports found from netapi32.dll
LINK : warning LNK4199: /DELAYLOAD:user32.dll ignored; no imports found from user32.dll
LINK : warning LNK4199: /DELAYLOAD:comctl32.dll ignored; no imports found from comctl32.dll
LINK : warning LNK4199: /DELAYLOAD:rpcrt4.dll ignored; no imports found from rpcrt4.dll
LINK : warning LNK4199: /DELAYLOAD:iphlpapid.dll ignored; no imports found from iphlpapid.dll
SystemC.obj : error LNK2019: unresolved external symbol imp___errno referenced in function _System__GetErrno
TextUtils.mo : error LNK2001: unresolved external symbol __setjmp
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol __setjmp
Confirmation.mo : error LNK2001: unresolved external symbol __setjmp
DirStack.mo : error LNK2001: unresolved external symbol __setjmp
ConnectRdWr.mo : error LNK2001: unresolved external symbol __setjmp
FSysWin32.mo : error LNK2001: unresolved external symbol __setjmp
System.mo : error LNK2001: unresolved external symbol __setjmp
PathReprCommon.mo : error LNK2001: unresolved external symbol __setjmp
TextReadingUtils.mo : error LNK2001: unresolved external symbol __setjmp
FastLex.mo : error LNK2001: unresolved external symbol __setjmp
EnvUtils.mo : error LNK2001: unresolved external symbol __setjmp
FSUtils.mo : error LNK2001: unresolved external symbol __setjmp
SMsg.mo : error LNK2001: unresolved external symbol __setjmp
MsgIF.mo : error LNK2001: unresolved external symbol __setjmp
FSUnixC.obj : error LNK2019: unresolved external symbol __imp___access referenced in function _FSUtils__access
msvcrt.lib(_setjmp.obj) : error LNK2001: unresolved external symbol ___intrinsic_setjmp
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol __initterm referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE
* const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol initterm_e referenced in function "int __cdecl dllmain_crt_process_attach(struct HINSTANCE * const,void * const)" (?dllmain_crt_process_attach@@YAHQAUHINSTANCE__@@Qax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_invoke_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol _telemetry_main_return_trigger referenced in function "int __cdecl dllmain_dispatch(struct HINSTANCE * const,unsigned long,void * const)" (?dllmain_dispatch@@YAHQAUHINSTANCE__@@kqax@Z)
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __seh_filter_dll referenced in function ___scrt_dllmain_exception_filter
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_narrow_environment referenced in function ___scrt_dllmain_after_initialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_onexit_table referenced in function ___scrt_initialize_onexit_tables
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __register_onexit_function referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __execute_onexit_table referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_atexit referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_at_quick_exit referenced in function _at_quick_exit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __cexit referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol ___std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@yaxxz)
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _terminate referenced in function ___scrt_unhandled_exception_filter@4
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _memset referenced in function ___scrt_fastfail
msvcrt.lib(chandler4gs.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4
sysutils.dll : fatal error LNK1120: 20 unresolved externals

I've tried Batch and Python-Scripts. I'm using Anaconda Package which provides a complete Python env. Version 2.7.11

Here's the error message I get when executing python upgrade.py

Microsoft (R) Incremental Linker Version 14.00.23506.0
Copyright (C) Microsoft Corporation. All rights reserved.

-nodefaultlib
-debug
-incremental:no
-opt:ref
-delayload:ws2_32.dll
-delayload:advapi32.dll
-delayload:gdi32.dll
-delayload:netapi32.dll
-delayload:user32.dll
-delayload:comctl32.dll
-delayload:rpcrt4.dll
-delayload:iphlpapid.dll
delayimp.lib
-def:m3core.def
-dll
-out:m3core.dll
hand.obj
dtoa.obj
libgcc.obj
RTHooks.io
RTHooks.mo
RT0.io
RT0.mo
RuntimeError.io
RuntimeError.mo
Compiler.io
Compiler.mo
RTAllocator.io
RTAllocator.mo
RTAllocCnts.io
RTAllocStats.io
RTAllocStats.mo
RTHeap.io
RTHeap.mo
RTHeapInfo.io
RTHeapInfo.mo
RTHeapMap.io
RTHeapMap.mo
RTHeapRep.io
RTHeapRep.mo
RTHeapStats.io
RTHeapStats.mo
RTCollector.io
RTCollector.mo
RTCollectorSRC.io
RTWeakRef.io
RTIO.io
RTIO.mo
RTIOc.obj
RTLinkerX.io
RTLinker.io
RTLinker.mo
RTLinkerC.obj
RTDebug.io
RTDebug.mo
RTDebugC.obj
RTError.io
RTError.mo
RTException.io
RTException.mo
RTMapOp.io
RTMapOp.mo
RTMisc.io
RTMisc.mo
RTMiscC.obj
RTModule.io
RTPacking.io
RTPacking.mo
RTParams.io
RTParams.mo
RTProcedure.io
RTProcedure.mo
RTProcess.io
RTProcess.mo
RTProcessC.obj
RTThread.io
RTTipe.io
RTTipe.mo
RTType.io
RTType.mo
RTTypeFP.io
RTTypeFP.mo
RTTypeMap.io
RTTypeMap.mo
RTutils.io
RTutils.mo
RTHeapDebug.io
RTHeapDebug.mo
RTArgs.io
RTHeapEvent.io
RTProcedureSRC.io
RTSignal.io
RTStack.io
RTTypeSRC.io
RTOS.io
RTMachine.io
RTArgs.mo
RTOS.mo
RTPerfTool.io
RTPerfTool.mo
RTOSc.obj
RTSignal.mo
RTMachInfo.io
RTMachInfo.mo
RTExFrame.mo
RTStackC.obj
Thread.io
ThreadF.io
Scheduler.io
ThreadDebug.io
ThreadDebug.obj
MutexRep.io
ThreadEvent.io
ThreadContext.io
ThreadWin32.io
ThreadWin32.mo
ThreadWin32C.obj
WinBaseTypes.io
WinDef.io
WinDef.mo
WinNT.io
WinNT.mo
WinError.io
WinBase.io
WinCon.io
WinGDI.io
WinIoctl.io
WinIoctl.mo
WinNetwk.io
WinNLS.io
WinReg.io
WinReg.mo
WinSock.io
WinSock.mo
WinUser.io
WinVer.io
WinVer.mo
NB30.io
NB30.mo
CDErr.io
CommDlg.io
TlHelp32.io
WinMidi.io
WinCommCtrl.io
WinTabCon.io
WinListView.io
WinImageList.io
WinNTc.obj
WinGDI.mo
WinUser.mo
WinUserC.obj
WinTabCon.mo
WinListView.mo
WinImageList.mo
UtimeC.obj
UnixC.obj
UnixLink.obj
Uexec.io
Uexec.obj
Unetdb.io
Unetdb.obj
Umman.obj
Ugrp.io
Ugrp.obj
Uin.obj
Uugid.obj
Uuio.obj
Uutmp.obj
Usignal.obj
Upwd.obj
Uprocess.obj
Usignal.io
Uconstants.obj
Uutmp.io
Umman.io
Uuio.io
Upwd.io
Uugid.io
Uprocess.io
Unix.io
Unix.mo
Utime.io
Utypes.io
Uerror.io
Usched.io
Usocket.io
Usocket.obj
Ustat.io
Udir.io
UdirC.obj
Uin.io
Cerrno.io
Cstddef.io
Cstdint.io
Cstdlib.io
CstdlibC.obj
Ctypes.io
M3toC.io
M3toC.mo
CerrnoC.obj
Cstring.io
CstringC.obj
Cstdio.io
CstdioC.obj
Csignal.io
CsignalC.obj
Csetjmp.io
CsetjmpC.obj
BasicCtypes.io
FPU.io
RealFloat.io
LongFloat.io
ExtendedFloat.io
IEEESpecial.io
IEEESpecial.mo
Real.mo
LongReal.mo
Extended.mo
DragonInt.io
DragonInt.mo
DragonT.io
DragonT.mo
FloatMode.io
FloatMode.mo
Real.io
LongReal.io
Extended.io
RealFloat.mo
LongFloat.mo
ExtendedFloat.mo
RealRep.io
LongRealRep.io
Time.io
Tick.io
Date.io
FmtTime.io
FmtTime.mo
TickPortable.mo
TimeWin32.io
Time.mo
DateWin32.mo
TimeWin32.obj
CConvert.io
CConvert.mo
Convert.io
Convert.mo
String8.io
String8.mo
String16.io
String16.mo
Text.io
Text.mo
TextClass.io
TextClass.mo
TextLiteral.io
TextLiteral.mo
Text8.io
Text8.mo
Text8Short.io
Text8Short.mo
Text8CString.io
Text8CString.mo
Text16.io
Text16.mo
Text16Short.io
Text16Short.mo
TextSub.io
TextSub.mo
TextCat.io
TextCat.mo
TextStats.io
TextStats.mo
TextConv.io
TextConv.mo
Fingerprint.io
Fingerprint.mo
Poly.io
Poly.mo
PolyBasis.io
PolyBasis.mo
Main.io
WeakRef.io
WeakRef.mo
WordRep.io
Word.io
LongRep.io
Long.io
Word.mo
Long.mo
Boolean.io
Boolean.mo
Char.io
Char.mo
Int32.io
Int32.mo
Int64.io
Int64.mo
Integer.io
Integer.mo
Longint.io
Longint.mo
Refany.io
Refany.mo
ASCII.io
ASCII.mo
WideChar.io
WideChar.mo
Unicode.io
Unicode.mo
Address.io
Address.mo
iphlpapi.lib
rpcrt4.lib
winspool.lib
comctl32.lib
ws2_32.lib
comdlg32.lib
netapi32.lib
gdi32.lib
user32.lib
advapi32.lib
kernel32.lib
msvcrt.lib
m3core.def : warning LNK4022: cannot find unique match for symbol '_xmm'
m3core.def : warning LNK4002: __xmm@41f00000000000000000000000000000 defined in dtoa.obj
m3core.def : warning LNK4002: __xmm@80000000000000008000000000000000 defined in dtoa.obj
m3core.def : error LNK2001: unresolved external symbol " ?? _OptionsStorage" (?_OptionsStorage)
m3core.def : error LNK2001: unresolved external symbol _xmm
m3core.lib : fatal error LNK1120: 2 unresolved externals


Reply to this email directly or view it on GitHub.

from cm3.

brakmic avatar brakmic commented on September 14, 2024

It compiles now!

modula3

Many, many thanks!

👍

from cm3.

darko20 avatar darko20 commented on September 14, 2024

If you've got a moment, can you upload the resulting compiler to the releases section here, or make it available for download?

from cm3.

brakmic avatar brakmic commented on September 14, 2024

Here's a link from my server. Just unpack the zip.

http://www.brakmic.de/download/zips/cm3.zip

from cm3.

darko20 avatar darko20 commented on September 14, 2024

Thanks, I'll put it in the releases section.

from cm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.