Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyBm1-0007TX-L5 for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Jan 2013 01:38:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TyBm0-0008ML-Gs for pgsql-hackers@arkaria.postgresql.org; Thu, 24 Jan 2013 01:38:36 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyBlz-0008MG-5j for pgsql-hackers@postgresql.org; Thu, 24 Jan 2013 01:38:35 +0000 Received: from mail-qe0-f43.google.com ([209.85.128.43]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TyBlv-0008J3-4C for pgsql-hackers@postgresql.org; Thu, 24 Jan 2013 01:38:33 +0000 Received: by mail-qe0-f43.google.com with SMTP id b10so736848qen.16 for ; Wed, 23 Jan 2013 17:38:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-gm-message-state; bh=7NrF5BDs8BAz5SAiXuTuWitQ2aYqIfP/g3jIDRr9jTU=; b=ZnVGwnyWDmW9l8Uz5qtXFto4ERzwUJpwOyZqI1pgQlpDg52P3HlXcJETZtjWa7IrHT SLsblZpV6wu2sbexL0NB8kX/3npu5J+GJD/AavT98VmXhzvIknc+9IBXYjj3NiMq27pK 87zyqmJw2cl/cUz6ZEmXF7bPvptAx8n6EjL8L5abeGCI/szFuvQvODBC09nb82EUG1mk Eq7UBiEpfzhEfxh2fnTo119R3uygr8qMKzCoPXM4i+llBZfv1f0hMHuRijAkyEgnpho7 1pWfvdPuE4HdZ6TfbSco9zfdVHKVpoTYLaqYNKDnYRJjvJ8T7VjRJmFrRsqx4oXLEJBe Hs/g== X-Received: by 10.49.74.73 with SMTP id r9mr254250qev.44.1358991509318; Wed, 23 Jan 2013 17:38:29 -0800 (PST) Received: from tornado.leadboat.com (ip68-105-236-221.hr.hr.cox.net. [68.105.236.221]) by mx.google.com with ESMTPS id hr3sm14458402qab.4.2013.01.23.17.38.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 17:38:28 -0800 (PST) Date: Wed, 23 Jan 2013 20:38:25 -0500 From: Noah Misch To: Craig Ringer Cc: Andrew Dunstan , Brar Piening , Heikki Linnakangas , Magnus Hagander , pgsql-hackers Subject: Re: Visual Studio 2012 RC Message-ID: <20130124013825.GA29954@tornado.leadboat.com> References: <50526BA6.3030103@gmx.de> <20121002011201.GC30396@tornado.leadboat.com> <507B2B0A.2030506@gmx.de> <20121015115351.GC4627@tornado.leadboat.com> <20130101025421.GA17763@tornado.leadboat.com> <50FD0B35.3020503@2ndQuadrant.com> <50FD3840.8010700@dunslane.net> <50FD3D5B.9040506@2ndQuadrant.com> <50FF7FD0.7050705@2ndQuadrant.com> <50FF897B.2050603@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50FF897B.2050603@2ndQuadrant.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Gm-Message-State: ALoCoQk4LWE18NWE1Zm9EDI2jNObe8jawnXd4ncPBEW7EFbpFEgFHxefzVY5em6ZsGsunE1zEzzx X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi Craig, Thanks for testing. On Wed, Jan 23, 2013 at 02:55:55PM +0800, Craig Ringer wrote: > When building a tree with your patch applied using VS 2012 Express via a > command line environment set up with: > > "c:\program files (x86)\Microsoft Visual Studio > 11.0\VC\vcvarsall.bat" x86 Likewise. > which is the same as the "32-bit build tools" Start menu entry, the > build fails with: > > > C:\Program Files > (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): > error MSB8008: Specified platform toolset (v110) is not installed or > invalid. Please make sure that a supported PlatformToolset value is > selected. > [c:\pg\postgresql\sdk8.0_cl17_vs11.0\x86\Release\vs2012\postgres.vcxproj] > > > In case it's relevant, the Microsoft SDK for Windows 8 is installed on > this machine and appears to have been detected, as WindowsSdkDir has > been set to C:\Program Files (x86)\Windows Kits\8.0\ . My WindowsSdkDir was the same. I had not manually installed the SDK; I suppose it was installed as part of Visual Studio Express 2012 for Windows Desktop. I tried manually installing Windows SDK 8.59.29750, and the build still worked fine. > I haven't explicitly set PlatformToolset in the environment. > > The machine also has Visual Studio 2010 Express SP1 and the Microsoft > Windows SDK 7.1 with VS SP1 and VS SP1 compiler update on it. All work fine. > > "where msbuild" reports: > > c:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe > c:\Windows\Microsoft.NET\Framework64\v3.5\MSBuild.exe Mine are found in Framework, not Framework64: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe If I prepend Framework64 to my path, the build does fail, albeit not the same way your build fails: d:\cygwin\home\nm\src\pg\postgresql\postgres.vcxproj(16,3): error MSB4019: The imported project "d:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. > and "msbuild" reports: > > Microsoft (R) Build Engine version 4.0.30319.17929 > [Microsoft .NET Framework, version 4.0.30319.17929] > Copyright (C) Microsoft Corporation. All rights reserved. Identical: Microsoft (R) Build Engine version 4.0.30319.17929 [Microsoft .NET Framework, version 4.0.30319.17929] Copyright (C) Microsoft Corporation. All rights reserved. > "cl" reports: > > Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86 > Copyright (C) Microsoft Corporation. All rights reserved. > > usage: cl [ option... ] filename... [ /link linkoption... ] Identical: Microsoft (R) C/C++ Optimizing Compiler Version 17.00.50727.1 for x86 Copyright (C) Microsoft Corporation. All rights reserved. > The host is a 64-bit Windows 7 machine. Windows Server 2008 R2, 64-bit, SP1 > How have you been testing VS2012 builds? In what environment? The most notable difference is that I have no pre-VS2012 Microsoft compilers installed and no SDKs installed by my explicit action. I suggest assessing how the Framework64 directories get into your path and trying without them. nm -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers