[Ecls-list] ECL fails to compile with Visual Studio

Stig Sandø stig.sandoe at gmail.com
Sun Feb 15 19:09:02 UTC 2009


hei,

The current git clone fails when compiling with MSVC 9.0:

        cl -c /EHsc /DGC_DLL /nologo /D_CRT_SECURE_NO_DEPRECATE /DNDEBUG /MD
/O2 -DGC_BUILD -DECL_API="__declspec(dllexport)" -I./ -I../ -I..\..\src\c
-I..\..\src/gc/include  -I..\..\src/gc/include/private /Founixint.obj
unixint.c
unixint.c
../ecl/internal.h(271) : warning C4005: 'expf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(300)
: see previous definition of 'expf'
../ecl/internal.h(274) : warning C4005: 'logf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(303)
: see previous definition of 'logf'
../ecl/internal.h(277) : warning C4005: 'sqrtf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(309)
: see previous definition of 'sqrtf'
../ecl/internal.h(280) : warning C4005: 'sinf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(307)
: see previous definition of 'sinf'
../ecl/internal.h(283) : warning C4005: 'cosf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(298)
: see previous definition of 'cosf'
../ecl/internal.h(286) : warning C4005: 'tanf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(310)
: see previous definition of 'tanf'
../ecl/internal.h(289) : warning C4005: 'sinhf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(308)
: see previous definition of 'sinhf'
../ecl/internal.h(292) : warning C4005: 'coshf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(299)
: see previous definition of 'coshf'
../ecl/internal.h(295) : warning C4005: 'tanhf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(311)
: see previous definition of 'tanhf'
../ecl/internal.h(299) : warning C4005: 'ceilf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(297)
: see previous definition of 'ceilf'
../ecl/internal.h(302) : warning C4005: 'floorf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(301)
: see previous definition of 'floorf'
../ecl/internal.h(305) : warning C4005: 'fabsf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(288)
: see previous definition of 'fabsf'
../ecl/internal.h(308) : warning C4005: 'frexpf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(285)
: see previous definition of 'frexpf'
../ecl/internal.h(311) : warning C4005: 'ldexpf' : macro redefinition
        D:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(289)
: see previous definition of 'ldexpf'
../../src/c/unixint.d(267) : error C2065: 'SIGBUS' : undeclared identifier
../../src/c/unixint.d(267) : error C2051: case expression not constant
../../src/c/unixint.d(349) : error C2079: 'oact' uses undefined struct
'sigaction'
../../src/c/unixint.d(354) : error C2224: left of '.sa_sigaction' must have
struct/union type
../../src/c/unixint.d(355) : error C2065: 'SIGBUS' : undeclared identifier
../../src/c/unixint.d(356) : error C2224: left of '.sa_sigaction' must have
struct/union type
../../src/c/unixint.d(418) : error C2065: 'sigsegv_signal_handler' :
undeclared identifier
../../src/c/unixint.d(432) : error C2065: 'info' : undeclared identifier
../../src/c/unixint.d(432) : error C2223: left of '->si_addr' must point to
struct/union
../../src/c/unixint.d(500) : error C2065: 'SIGBUS' : undeclared identifier
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Cheers,
Stig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20090215/f1092862/attachment.html>


More information about the ecl-devel mailing list