chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] PLATFORM=msvc failing to build


From: Jason Felice
Subject: [Chicken-users] PLATFORM=msvc failing to build
Date: Tue, 26 May 2009 16:08:46 -0400

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 all
make[1]: Entering directory `C:/temp/chicken-4.0.0'
cc    -c -o setup-download.o setup-download.c
process_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 2
make[1]: Leaving directory `C:/temp/chicken-4.0.0'
make: *** [all] Error 2

I'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.obj
cl -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:/MingW
link -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_limit
setup-download.obj : error LNK2001: unresolved external symbol _C_fromspace_top
setup-download.obj : error LNK2001: unresolved external symbol _C_temporary_stack
setup-download.obj : error LNK2001: unresolved external symbol _C_stack_limit
setup-download.obj : error LNK2001: unresolved external symbol _C_timer_interrupt_counter
setup-download.obj : error LNK2001: unresolved external symbol _C_temporary_stack_bottom
setup-download.so : fatal error LNK1120: 6 unresolved externals
make: *** [setup-download.so] Error 1120

I 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]