[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: PLATFORM=msvc failing to build
From: |
felix |
Subject: |
[Chicken-users] Re: PLATFORM=msvc failing to build |
Date: |
Wed, 27 May 2009 07:20:54 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Jason Felice <jason.m.felice <at> gmail.com> writes:
>
> Hi!I'm trying to compile 4.0.0 using mingw-msys make and MSVC6. I seem to be
having a make problem, but I'm not sure how to track it down. I'm stuck
here:C:\temp\chicken-4.0.0>make PLATFORM=msvc PREFIX=C:/MingW
> make -f ./Makefile.msvc allmake[1]: Entering directory
`C:/temp/chicken-4.0.0'cc -c -o setup-download.o
setup-download.cprocess_begin: CreateProcess(NULL, cc -c -o setup-download.o
setup-download.c, ...) failed.
> make (e=2): The system cannot find the file specified.make[1]: ***
[setup-download.o] Error 2make[1]: Leaving directory
`C:/temp/chicken-4.0.0'make: *** [all] Error 2I've been able to successfully
build chicken.exe, csc.exe, csi.exe, and all the libchicken*.dll. Note that I
can successfully do the following:C:\temp\chicken-4.0.0>make -f Makefile.msvc
PLATFORM=msvc PREFIX=C:/MingW setup-download.objcl -nologo -wd4142
-DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -I. -DC_SHARED \ -c -MD
-DPIC \ -DC_BUILDING_LIBCHICKEN setup-download.c -Fosetup-download.obj
> Command line warning D4002 : ignoring unknown option
'-wd4142'setup-download.c(Note the .obj instead of the .o). So this seems to be
a problem with some kind of implicit rule. I fixed up some make rules (and I'll
send a patch if I can get things to work), but now I'm stuck
at:C:\temp\chicken-4.0.0>make -f Makefile.msvc PLATFORM=msvc PREFIX=C:/MingWlink
-nologo -dll setup-download.obj -out:setup-download.so \ libchicken.lib
\ ws2_32.lib advapi32.lib Creating library setup-download.lib and
object setup-download.exp
> setup-download.obj : error LNK2001: unresolved external symbol
_C_fromspace_limitsetup-download.obj : error LNK2001: unresolved external symbol
_C_fromspace_topsetup-download.obj : error LNK2001: unresolved external symbol
_C_temporary_stack
> setup-download.obj : error LNK2001: unresolved external symbol
_C_stack_limitsetup-download.obj : error LNK2001: unresolved external symbol
_C_timer_interrupt_countersetup-download.obj : error LNK2001: unresolved
external symbol _C_temporary_stack_bottom
> setup-download.so : fatal error LNK1120: 6 unresolved externalsmake: ***
[setup-download.so] Error 1120I know enough to know that the idea here is that
these symbols should be resolved to the caller (the library loader) somehow. Is
this just broken?Thanks in advance,-Jason
Yes, it is currently broken. See
http://galinha.ucpel.tche.br/svn/chicken-eggs/chicken/trunk/patches/msvc-attempt.diff
for a recent attempt to fix the Makefiles. But it fails later when running.
I don't know whether MSVC will be supported any further in the future.
cheers,
felix