September 01
On Tuesday, 1 September 2020 at 13:18:15 UTC, cbleser wrote:
> On Monday, 31 August 2020 at 08:31:11 UTC, Sebastiaan Koppe wrote:
>> It seems you don't have the right version of ldc/druntime/phobos. Please checkout https://github.com/skoppe/ldc/commit/828926064c52eba905d9bbbf9d4d57f64a2cd267
>
> Hi Sebastiaan.
> Thank you for you input. But still run into another problem.
>
>
> I corrected the branch now it compiles but it does not link.
>
> [...]
>
> --- cut ---
> Error: unrecognized file extension obj
> make[2]: *** [CMakeFiles/druntime-ldc.dir/build.make:1292: lib/libdruntime-ldc.a] Error 1
> make[2]: Leaving directory '/tmp/wasm_druntime/ldc-build-runtime.tmp'
> make[1]: *** [CMakeFiles/Makefile2:265: CMakeFiles/druntime-ldc.dir/all] Error 2
> make[1]: Leaving directory '/tmp/wasm_druntime/ldc-build-runtime.tmp'
> make: *** [Makefile:130: all] Error 2
> --- cut --

Ah yes, I missed that step. You need to patch the toolchain.

See the CI
https://github.com/tagion/ldc/blob/828926064c52eba905d9bbbf9d4d57f64a2cd267/.azure-pipelines/posix.yml#L159

Essentially replace `Wasm` with `Linux` in $WASI_SDK_PREFIX/share/cmake/wasi-sdk.cmake
September 02
On Tuesday, 1 September 2020 at 16:13:46 UTC, Sebastiaan Koppe wrote:

> Ah yes, I missed that step. You need to patch the sdk.
>
> See the CI
> https://github.com/tagion/ldc/blob/828926064c52eba905d9bbbf9d4d57f64a2cd267/.azure-pipelines/posix.yml#L159
>
> Essentially replace `Wasm` with `Linux` in $WASI_SDK_PREFIX/share/cmake/wasi-sdk.cmake

Thanks!! Now it runs.

Build script can be found here.

https://github.com/tagion/wasm_druntime.git


Next ›   Last »
1 2