[Ecls-list] [Patch] ecl 12.2.1 sse2 support for msvc

red plait redplait at gmail.com
Tue Feb 7 08:36:37 UTC 2012


Hi
I recently tied to build subj and get following errors:
        cl /Feecl_min.exe cinit.obj c\all_symbols.obj eclmin.lib /link
/incremental:no /nologo /nodefaultlib:libcmt
/nodefaultlib:libcmtd/nodefaultlib:libc /nodefaultlib:libcd
/nodefaultlib:msvcrtd.lib eclgc.lib eclgmp.lib user32.lib ws2_32.lib
shell32.lib
   Creating library ecl_min.lib and object ecl_min.exp
all_symbols.obj : error LNK2001: unresolved external symbol
_si_sse_pack_element_type
all_symbols.obj : error LNK2001: unresolved external symbol
_si_sse_pack_to_vector
all_symbols.obj : error LNK2001: unresolved external symbol
_si_vector_to_sse_pack
all_symbols.obj : error LNK2001: unresolved external symbol
_si_sse_pack_as_elt_type
all_symbols.obj : error LNK2001: unresolved external symbol _si_sse_pack_p
ecl_min.exe : fatal error LNK1120: 5 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.EXE"' : return code '0x2'

So this is the patch to fix this problem:
*** msvc/c/Makefile.old	Tue Feb  7 08:02:51 2012
--- msvc/c/Makefile	Tue Feb  7 08:23:08 2012
*************** ECL_UNICODE_FLAG=0
*** 31,38 ****
--- 31,40 ----

  !if "$(ECL_SSE)" != ""
  ECL_SSE_FLAG=1
+ ECL_SSE_OBJ=sse2.obj
  !else
  ECL_SSE_FLAG=0
+ ECL_SSE_OBJ=
  !endif

  # Programs used by "make":
*************** OBJS	= main.obj symbol.obj package.obj c
*** 98,104 ****
          mapfun.obj multival.obj hash.obj format.obj pathname.obj\
          structure.obj load.obj unixfsys.obj unixsys.obj \
          ffi.obj alloc_2.obj tcp.obj $(THREADS_OBJ) serialize.obj \
!         $(ECL_FFI_OBJ) $(ECL_UCD_OBJ) mmap.obj cdata.obj

  all:    $(DPP) ..\eclmin.lib ..\cinit.obj

--- 100,106 ----
          mapfun.obj multival.obj hash.obj format.obj pathname.obj\
          structure.obj load.obj unixfsys.obj unixsys.obj \
          ffi.obj alloc_2.obj tcp.obj $(THREADS_OBJ) serialize.obj \
!         $(ECL_SSE_OBJ) $(ECL_FFI_OBJ) $(ECL_UCD_OBJ) mmap.obj cdata.obj

  all:    $(DPP) ..\eclmin.lib ..\cinit.obj




More information about the ecl-devel mailing list