-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile the sources #4
Comments
The minimal Boost version required is 1.54. I will update the cmake files to provide better diagnostics. |
MS VS logs: 1>------ Build started: Project: Compiler, Configuration: Release Win32 ------ |
Thanks. Could you check one more thing? Run:
in Could you also attach the generated file |
compiler.vcxproj content
Files that's are referenced in sections exist on file system. |
This warning:
Indicates that your version of Could you run |
You're right, the version is 1.18. That's strange, I've ran C:\Projects\bond\cs\Release\CMakeFiles>cabal install cabal-install C:\Projects\bond\cs\Release\CMakeFiles>cabal --version |
It might be that the new cabal is not in PATH. See if this gives you the right version:
CMake should still find it in |
I will investigate if there is problem with CMake diagnostics when we run it from cs.sln. |
Hi sapek, Could you please release a binary build for the tools? Thank you! |
We will release a NuGet package. Could you provide more information about the build issues? Build logs? Thanks. |
So, actually, I'm not familiar with the Haskell build process, so just have a try with your guide. C:\g\Downloads\bond-master\cs>cabal --version C:\g\Downloads\bond-master\cs>cabal update C:\g\Downloads\bond-master\cs>cabal install cabal-install C:\g\Downloads\bond-master\cs> The Visual Studio 2013 told me some errors: Error 2 error MSB6006: "cmd.exe" exited with code 1. [C:\g\Downloads\bond-master\cs\Debug\compiler.vcxproj] C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 Compiler Error 7 The command ""C:\g\Downloads\bond-master\cs\build..\bin\gbc.exe" c# --import-dir="C:\g\Downloads\bond-master\cs\build..\inc" --namespace=bond=Bond --output-dir="obj\Debug." --using="SynchronizedList=SynchronizedCollection<{0}>" "schema.bond"" exited with code 9009. container_alias |
@gaochundong |
@sapek I installed cabal globally, using Cmake in build makes the appropriate cheks for the version, As far I remember last time (before setting cabal 1.22 globally) cmake has done it too and has found cabal 1.22 1>------ Build started: Project: Compiler, Configuration: Release Win32 ------ |
The command that fails is |
This should be resolved by 3d5905a but I will wait with closing the issue until you confirm. Thanks again for help. |
I confirm the issue with cabal is resolved, I was able to compile gbc.exe. But now I've got the issues with compilng csharp projects, only Bond.Attributes.dll has compiled successfuly, other assemblies fail with the errors 1> Сборка успешно завершена. |
Looks like there was an error building project Bond (other projects depend on it). Could find and post what failed there? |
I'm trying to figure it out. At the first when I open cs.sln in VS 2013 it asks me to convert some projects to new format - is this expecting behaviour? Then it complains about the absence of the Profile 259 on the machine for projects Core, Attributes, Json and asks to switch the projects to .NET 4.5 profile. If I change profile it does not build, says that IO project is targeted to 4.0 framework, while Bond assembly is targeted .NET 4.5. If I don't change, the bond.dll is not compiled. Currently I'm trying to repair VS 2013 installation and reinstall PCL libraries. I think this issue with PCL libraries is raised because I've got Xamarin Studio installed before VS 2013. I'll let you know about results when repair will be completed. Message from Visual Studio Functional changes required Non-functional changes required No changes required |
I checked, that 259 profile is installed on my machine, the files C:\Program Files(x86)\Referenced Aseemblies\Microsoft\Framework.NETPortable\v4.5\Profile\Profile259 exist (Profile78 too), Visual Studio 2013 (Update 4) can successfully create new portable library project targeted Profile259. But when I open cs.sln it does not allow to load Attributes, Bond and JSON projects complaining that the profile259 for .NET 4.5 is not installed on the machine. I don't know why this happened for cs.sln project. |
Bond builds against PCL profile 78 when targeting .Net 4.5 and against full framework when targeting .Net 4.0. I'm not sure how profile 259 comes into picture. I will try to reproduce your environment here. |
I installed Xamarin but couldn't repro. Can you try to remove these lines? This isn't a solution but would tell us if this is related to setting portable profile. |
I changed Profile78 string to Profile259 in |
Thanks a lot for the info. I will close the issue. I think support for Profile 259 is something we should look at anyways, it is required for WP 8.1 as I understand. |
Linux platform:
At first I tried to compile on Ubuntu 12.04, cmake 3.10 says
-- Could NOT find Boost
. I tried to install boost 1.46 and boost 1.48 from the ubuntu packages. Could you please add to the cmake output minimal required version of the Boost?Then I ordered 1GB RAM Ubuntu 14.04 VPS and tried to compile it again.
cabal install update-install
drops with out of memory exception. Please add minimum RAM requirements to the documentation.Also, what is a required mono version for building cs.sln? Will it be built with mono 3.10?
Windows platform:
I followed the steps in documentation (install cmake, haskell, update cabal, open cs.sln in Visual Studio 2013) and run the build. The build has failed on the step:
The path C:\Projects\bond\compiler exists on the machine.
The text was updated successfully, but these errors were encountered: