Skip to content
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

Ubuntu : .NET Core 3.1 build error #31600

Closed
deokershesh opened this issue Jan 7, 2020 · 9 comments
Closed

Ubuntu : .NET Core 3.1 build error #31600

deokershesh opened this issue Jan 7, 2020 · 9 comments

Comments

@deokershesh
Copy link

I downloaded .NET Core 3.1 source code, while doing the build.sh on Ubuntu, it reports following errors! There doesn't seem to be good error message to possibly resolve the same. Kindly help to fix the below build issue.

root@64ac36d6c74e:/shesh/dotnetcore/corefx-release-3.1# uname -a
Linux 64ac36d6c74e 4.9.184-linuxkit dotnet/corefx#1 SMP Tue Jul 2 22:58:16 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Setting up directories for build
Checking pre-requisites...
Commencing build of corefx native components for Linux.x64.Debug
Invoking "/shesh/dotnetcore/corefx-release-3.1/src/Native/Unix/gen-buildsys-clang.sh" "/shesh/dotnetcore/corefx-release-3.1/src/Native/Unix" "3" "9" "x64" "DEBUG" " -DFEATURE_DISTRO_AGNOSTIC_SSL=1 -DCMAKE_STATIC_LIB_LINK=0"
-- Configuring incomplete, errors occurred!
See also "/shesh/dotnetcore/corefx-release-3.1/artifacts/obj/native/netcoreapp-Linux-Debug-x64/CMakeFiles/CMakeOutput.log".
See also "/shesh/dotnetcore/corefx-release-3.1/artifacts/obj/native/netcoreapp-Linux-Debug-x64/CMakeFiles/CMakeError.log".
Failed to generate native component build project!
/shesh/dotnetcore/corefx-release-3.1/src/Native/build-native.proj(36,5): error MSB3073: The command ""/shesh/dotnetcore/corefx-release-3.1/src/Native/build-native.sh" x64 Debug Linux outconfig netcoreapp-Linux-Debug-x64 -portable" exited with code 1.

Build FAILED.

/shesh/dotnetcore/corefx-release-3.1/src/Native/build-native.proj(36,5): error MSB3073: The command ""/shesh/dotnetcore/corefx-release-3.1/src/Native/build-native.sh" x64 Debug Linux outconfig netcoreapp-Linux-Debug-x64 -portable" exited with code 1.
0 Warning(s)
1 Error(s)

Time Elapsed 00:00:46.11
Build failed (exit code '1').
root@64ac36d6c74e:/shesh/dotnetcore/corefx-release-3.1#

@danmoseley
Copy link
Member

@deokershesh do you need to build 3.1? If you want latest sources, please clone https://github.com/dotnet/runtime instead, where the sources have moved. See
https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md

@deokershesh
Copy link
Author

@danmosemsft, Infact I started with the same, please refer #1207 , however I was informed that, its for future .Net Core 5.0 project and if I am looking for .NET Core 3.1 then I should be using https://github.com/dotnet/corefx/tree/release/3.1, which now I am using. I have built .NET Core 3.1 successfully on Windows but Linux/Ubuntu!!

Any help in this regard (Ubuntu build error) would be highly appreciated. Basically, I am working to support Informix database by building .NET Core Provider (replica of System.Data.Odbc customized for Informix).

@danmoseley
Copy link
Member

@deokershesh got it. Ok have you checked you have the prerequisites? Try upgrading your relevant packages first.

https://github.com/dotnet/corefx/blob/release/3.1/Documentation/building/unix-instructions.md#user-content-linux

@deokershesh
Copy link
Author

Thanks @danmosemsft, The above link helped and I tried to refresh/install the suggested packages and it worked! Thanks a lot. Now, I need to customize for Informix, hope it will also go smooth like on Windows!

@danmoseley
Copy link
Member

@deokershesh sure. Post back how your project goes. Do you plan to share it for others to take advantage of?

@deokershesh
Copy link
Author

Yes @danmosemsft, We will host on Nuget. I am able to build Informix .NET Core Provider on Linux as well by the way. Facing some run time issue, yet to investigate in detail. By the way, what's the best tool to debug C#(.cs) files on Linux?

@danmoseley
Copy link
Member

VS Code. This may help although it might be out of date-
https://github.com/dotnet/corefx/blob/release/3.1/Documentation/debugging/unix-instructions.md

@deokershesh
Copy link
Author

Actually I am using "docker image" (/bin/bash command prompt).

@wfurt
Copy link
Member

wfurt commented Jan 29, 2020

What is in CMakeOutput.log @deokershesh? Also dotnet/corefx#42812 suggests you solved your build problem. Should this issue be closed?

@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@jkotas jkotas closed this as completed Feb 1, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants