[Ecls-list] Problems with GMP on Win32

Robin Lee Powell rlpowell at digitalkingdom.org
Fri Aug 1 23:07:28 UTC 2008


(copying back to the list in case someone else can help; hope that's
OK)

On Fri, Aug 01, 2008 at 10:18:25PM +0200, Juan Jose Garcia-Ripoll
wrote:
> On Fri, Aug 1, 2008 at 9:18 PM, Robin Lee Powell
> <rlpowell at digitalkingdom.org> wrote:
> > Huh.  OK.  I didn't realize MSVC was free.
> 
> Me neither, until some years ago somebody dropped by with a MSVC
> port :-) The link is for th express edition is here:
> http://www.microsoft.com/express/vc/
> 
> The MSVC port is more self contained: everything builds out of the
> package. You just have to open a terminal window from the Express
> Edition and then move to the ecl/msvc directory and execute
> "nmake".

Unfortunately not.  First I had to figx my broken Visual Studio
command batch.  :)

Then it did this:

- --------------

z:\ecl\ecl\src\c\character.d(30) : warning C4715: 'ecl_char_code' : not all control paths return a value
        cl -c /MD /EHsc /DGC_DLL /nologo -DGC_BUILD -DECL_API="__declspec(dllexport)" -I./ -I../ -I..\..\src\c -I..\..\src/gc/include  -I..\..\src/gc/include/pr
ivate /Fofile.obj file.c file.c

../../src/c/file.d(49) : fatal error C1021: invalid preprocessor command 'defien'

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'

Stop.

- --------------

Fixing the obvious typo got this:

- --------------
Z:\ecl\ecl\msvc>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

cmp asdf sockets rt defsystem profile
(cons :wants-profile (cons :wants-defsystem (cons :wants-rt (cons :wants-sockets
 (cons :wants-asdf (cons :wants-cmp (cons :wants-dlopen *features*)))))))
        cd c
        "C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe" ECL_THREADS= "ECL_CFLAGS=/MD /EHsc /DGC_DLL /nologo -DGC_BUILD"

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

        .\dpp.exe ../../src/c\file.d file.c
dpp: ../../src/c/file.d -> file.c
        cl -c /MD /EHsc /DGC_DLL /nologo -DGC_BUILD -DECL_API="__declspec(dllexport)" -I./ -I../ -I..\..\src\c -I..\..\src/gc/include  -I..\..\src/gc/include/pr ivate /Fofile.obj file.c
file.c
../../src/c/file.d(126) : error C2059: syntax error : 'constant'
../../src/c/file.d(135) : error C2059: syntax error : 'constant'
../../src/c/file.d(143) : error C2143: syntax error : missing ';' before ':'
../../src/c/file.d(157) : error C2061: syntax error : identifier 'ecl_input_stream_p'
../../src/c/file.d(157) : error C2059: syntax error : ';'
../../src/c/file.d(157) : error C2059: syntax error : 'type'
../../src/c/file.d(1277) : warning C4047: 'initializing' : 'int' differs in levels of indirection from 'void *'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

- --------------

Changing "ERROR" to "err" on the relevant lines fixed that;
apparently MSVC doesn't like capitalized goto tags.

Then I got:

- --------------

Z:\ecl\ecl\msvc>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation.  All rights reserved.

cmp asdf sockets rt defsystem profile
(cons :wants-profile (cons :wants-defsystem (cons :wants-rt (cons :wants-sockets
 (cons :wants-asdf (cons :wants-cmp (cons :wants-dlopen *features*)))))))
        cl /Feecl_min.exe cinit.obj c\all_symbols.obj eclmin.lib /MD /link /nologo /nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib:libc /nodefaultlib:libd eclgc.lib eclgmp.lib user32.lib ws2_32.lib shell32.lib
   Creating library ecl_min.lib and object ecl_min.exp
eclmin.lib(print.obj) : error LNK2019: unresolved external symbol _isfinite referenced in function _edit_double
eclmin.lib(number.obj) : error LNK2001: unresolved external symbol _isfinite
ecl_min.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

- --------------

Not yet sure what to do with that one.

-Robin




More information about the ecl-devel mailing list