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

Add beginnings of WebAssembly build support for mono. #33551

Merged
merged 10 commits into from
Apr 10, 2020

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Mar 13, 2020

No description provided.

@vargaz vargaz changed the title Add beginnings of WebAssembly build support for mono. [WIP] Add beginnings of WebAssembly build support for mono. Mar 13, 2020
@vargaz vargaz force-pushed the wasm-build branch 9 times, most recently from fdc4655 to 19cbd13 Compare March 17, 2020 02:38
@vargaz
Copy link
Contributor Author

vargaz commented Mar 17, 2020

Currently fails with:
020-03-17T02:50:24.6725593Z bash : error : setlocale: LC_ALL: cannot change locale (en_US.UTF-8) [/__w/1/s/src/mono/mono.proj]
Seems to be a problem with the docker container.

@vargaz vargaz force-pushed the wasm-build branch 5 times, most recently from 97577ca to cc0d78a Compare March 17, 2020 23:29
@vargaz
Copy link
Contributor Author

vargaz commented Mar 19, 2020

The mono build seems to work now, but the libraries build fails with:
Please install CMake 3.14.2 or newer from http://www.cmake.org/download/ or https://apt.kitware.com and ensure it is on your path.
It looks like a problem with the 18.04 ubuntu docker image.

@vargaz
Copy link
Contributor Author

vargaz commented Mar 19, 2020

@vargaz
Copy link
Contributor Author

vargaz commented Mar 23, 2020

So changing the os to 'wasm' causes the packaging step to fail because it expects 'WebAssembly'.

@vargaz
Copy link
Contributor Author

vargaz commented Apr 3, 2020

So the runtime build seems to work now but the libraries wasm build is broken by the bump of the docker image version.

@vargaz
Copy link
Contributor Author

vargaz commented Apr 3, 2020

The wasm libraries build now fails with:
EXEC : error : No usable version of clang found. [/__w/1/s/src/libraries/Native/build-native.proj]

# Conflicts:
#	eng/Subsets.props
#	eng/native/configureplatform.cmake
#	src/mono/Directory.Build.props
#	src/mono/mono.proj
@akoeplinger akoeplinger changed the title [WIP] Add beginnings of WebAssembly build support for mono. Add beginnings of WebAssembly build support for mono. Apr 10, 2020
@akoeplinger akoeplinger merged commit fd4831f into dotnet:master Apr 10, 2020
@vargaz vargaz deleted the wasm-build branch April 11, 2020 07:28
Comment on lines +57 to +58
export CLR_CC=$(which emcc)
export CLR_CXX=$(which em++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A nit, typically posix-y command -v is preferred over which in this repo. (same goes for which false below)

Copy link
Member

@akoeplinger akoeplinger Apr 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@am11 I tried that but it didn't work since we expect the full path in CLR_CC and command -v doesn't do that (for false at least)

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants