Cristian Baboi | 15 Jun 2012 20:14
Picon

MSB8012 conversion error compiling Racket with VS2010

After converting solution files from VS2008 to VS2010, I get errors like

MSB8012: $(TargetName) ('libmzgc') does not match the Linker's OutputFile  
property value '..\..\..\lib\libmzgcxxxxxxx.dll' ('libmzgcxxxxxxx') in  
project configuration 'Release|x64'. This may cause your project to build  
incorrectly. To correct this, please make sure that $(TargetName) property  
value matches the value specified in %(Link.OutputFile).">

in the conversion log file and build.bat (from Racket-5.2.1\src\worksp)  
gives errors building racket.sln

The build output for project racket is:

5>------ Build started: Project: racket, Configuration: Release Win32  
------
5>Build started 15.06.2012 20:55:15.
5>InitializeBuildStatus:
5>  Touching "Release\racket.unsuccessfulbuild".
5>ClCompile:
5>  Main.c
5>c:\users\cristi\downloads\racket\racket-5.2.1\src\racket\cmdline.inc(5):  
warning C4068: unknown pragma
5>C:\Program Files  
(x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5):  
warning MSB8012: 

TargetPath(C:\Users\cristi\Downloads\racket\Racket-5.2.1\src\worksp\racket\Release\racket.exe)

does not match the Linker's OutputFile property value  
(C:\Users\cristi\Downloads\racket\Racket-5.2.1\RacketCGC.exe). This may  
(Continue reading)

Cristian Baboi | 16 Jun 2012 15:25
Picon

Re: MSB8012 conversion error compiling Racket with VS2010

In racket.sln
- configuration properties/general/output directory: ..\..\..\
- configuration properties/general/target name: RacketCGC
- configuration properties/build events/post-build event/command line:

1) if exist "$(TargetPath)" goto :MzOK
2)    echo Error: did not find $(TargetPath)
3) exit 1
4) :MzOK
5) "$(TargetPath)" -cu ..\..\racket\mkincludes.rkt "$(TargetDir)/include/"  
..\..\racket ..
6) if errorlevel 1 exit 1
7) cd ..\..\racket\dynsrc
8) mkmzdyn.bat
9) cd ..\..\worksp\racket

has an extra / in line 5) after $(TargetDir)
- the debug targets don't work

Some stdafx.h files required changes of _WIN32_WINNT macro
#define _WIN32_WINNT 0x0400 gives errors in ATL

On Windows7 x64 I get some "Unable to register library":

raco setup: --- post-installing collections ---
raco setup: post-installing: help
raco setup: post-installing: mred
raco setup: post-installing: mysterx
MysterX: Unable to register library myspage.dll   <---------------
MysterX: Unable to register library myssink.dll   <---------------
(Continue reading)

Eli Barzilay | 21 Jun 2012 17:23
Favicon
Gravatar

Re: MSB8012 conversion error compiling Racket with VS2010

On Friday, Cristian Baboi wrote:
> After converting solution files from VS2008 to VS2010, [...]

I don't know about the actual issues you're having, but note that
there's "src/worksp10" with 2010 files.  (They were converted and then
some issues fixed.)  You can also look at our build logs (at
pre.racket-lang.org) -- if you look for the "pitcairn2" build, then
that's done with 2010 on a 64 bit machine.

--

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
____________________
  Racket Users list:
  http://lists.racket-lang.org/users


Gmane