Skip to content

Fix mono/master build#13076

Closed
radical wants to merge 2 commits intomono:masterfrom
radical:test-bockbuild-gtk-sharp
Closed

Fix mono/master build#13076
radical wants to merge 2 commits intomono:masterfrom
radical:test-bockbuild-gtk-sharp

Conversation

@radical
Copy link
Copy Markdown
Member

@radical radical commented Feb 19, 2019

This has two fixes:

  1. bockbuild bump for a gtk-sharp build fix
  2. Fix for a fsharp build error

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 19, 2019

@monojenkins build OS X package

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 19, 2019

@monojenkins build OS X Extended

@radical radical changed the title [bockbuild] Bump to test a bockbuild patch Fix mono/master build Feb 20, 2019
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X Extended

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X package

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

This fixes the build that was breaking on OSX.

@radical radical marked this pull request as ready for review February 20, 2019 03:32
@radical radical force-pushed the test-bockbuild-gtk-sharp branch from 23b6123 to 3cc7ce4 Compare February 20, 2019 04:19
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X Extended

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X package

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

So, two tests fail to build like:
MONO_PATH=/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x ../../runtime/mono-wrapper gen-runtime-invoke.exe > runtime-invoke.gen.cs

.. because runtime-invoke.gen.cs ends up with:

llvm load failed: dlopen(libmono-llvm.bundle, 9): image not found

using System;
using System.Reflection;

The generated source file has that warning from mono, which is showing up everywhere in the logs. Is this warning known? I can't reproduce this locally.

In the logs you can see, generating the file:

MONO_PATH=/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x ../../runtime/mono-wrapper gen-runtime-invoke.exe > runtime-invoke.gen.cs
Mono Warning: llvm support could not be loaded.
echo "********* runtime-invoke.gen.cs: "; cat runtime-invoke.gen.cs
********* runtime-invoke.gen.cs: 
llvm load failed: dlopen(libmono-llvm.bundle, 9): image not found

using System;
using System.

<snip>

And the compile time error:

MONO_PATH=/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/build ../../runtime/mono-wrapper --aot-path=/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/build /Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/external/roslyn-binaries/Microsoft.Net.Compilers/Microsoft.Net.Compilers.2.8.2/tools/csc.exe -debug:portable -noconfig -nologo -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 -nowarn:0197 -langversion:latest  -unsafe -r:/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x/System.dll -r:/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x/System.Xml.dll -r:/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x/System.Core.dll -r:TestDriver.dll -r:/Users/builder/jenkins/workspace/test-mono-pull-request-mac-sdk/external/bockbuild/builds/mono/mcs/class/lib/net_4_x/Mono.Posix.dll -out:imt_big_iface_test.exe imt_big_iface_test.cs
llvm load failed: dlopen(libmono-llvm.bundle, 9): image not found

Mono Warning: llvm support could not be loaded.
llvm load failed: dlopen(libmono-llvm.bundle, 9): image not found

Mono Warning: llvm support could not be loaded.
runtime-invoke.gen.cs(1,11): error CS1002: ; expected
runtime-invoke.gen.cs(1,11): error CS0116: A namespace cannot directly contain members such as fields or methods
runtime-invoke.gen.cs(1,17): error CS1022: Type or namespace definition, or end-of-file expected
runtime-invoke.gen.cs(1,33): error CS1001: Identifier expected
runtime-invoke.gen.cs(1,33): error CS1003: Syntax error, ',' expected
runtime-invoke.gen.cs(1,34): error CS1003: Syntax error, ',' expected
runtime-invoke.gen.cs(1,45): error CS1001: Identifier expected
runtime-invoke.gen.cs(1,47): error CS1031: Type expected
runtime-invoke.gen.cs(1,47): error CS1001: Identifier expected
runtime-invoke.gen.cs(1,47): error CS1003: Syntax error, ',' expected
runtime-invoke.gen.cs(1,51): error CS1018: Keyword 'this' or 'base' expected
runtime-invoke.gen.cs(1,51): error CS1002: ; expected
runtime-invoke.gen.cs(1,61): error CS1002: ; expected
runtime-invoke.gen.cs(1,61): error CS0116: A namespace cannot directly contain members such as fields or methods
runtime-invoke.gen.cs(3,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
runtime-invoke.gen.cs(4,1): error CS1529: A using clause must precede all other elements defined in the namespace except extern alias declarations
make[3]: *** [runtime-invoke.gen.exe] Error 1

Link: https://jenkins.mono-project.com/job/test-mono-pull-request-mac-sdk/163/

It's not related to this PR, AFAICT.

@akoeplinger @marek-safar

@marek-safar
Copy link
Copy Markdown
Member

That looks like llvm support is broken. @vargaz any thoughts on that ^?

@radical radical mentioned this pull request Feb 20, 2019
8 tasks
@radical radical force-pushed the test-bockbuild-gtk-sharp branch from 3cc7ce4 to 8bfe100 Compare February 20, 2019 14:35
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X Extended

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

The llvm related build failure is reproducible locally. I'm not sure what I should be looking at.

$ find . -name 'libmono*' | egrep llvm
./external/bockbuild/distribution/lib/libmono-llvm.dylib
./external/bockbuild/distribution/lib/libmono-llvm.la
./external/bockbuild/distribution/lib/libmono-llvm.a
./external/bockbuild/distribution/lib/libmono-llvm.0.dylib
./external/bockbuild/distribution/lib/libmono-llvm.0.dylib.dSYM
./external/bockbuild/distribution/lib/libmono-llvm.0.dylib.dSYM/Contents/Resources/DWARF/libmono-llvm.0.dylib
./external/bockbuild/builds/mono/mono/mini/libmono-llvm.la
./external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.dylib
./external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.lai
./external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.la
./external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.a
./external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.0.dylib
./external/bockbuild/stage/lib/libmono-llvm.dylib
./external/bockbuild/stage/lib/libmono-llvm.la
./external/bockbuild/stage/lib/libmono-llvm.la.release
./external/bockbuild/stage/lib/libmono-llvm.0.dylib.release
./external/bockbuild/stage/lib/libmono-llvm.a
./external/bockbuild/stage/lib/libmono-llvm.0.dylib
./external/bockbuild/stage/lib/libmono-llvm.0.dylib.dSYM
./external/bockbuild/stage/lib/libmono-llvm.0.dylib.dSYM/Contents/Resources/DWARF/libmono-llvm.0.dylib

@radical radical force-pushed the test-bockbuild-gtk-sharp branch from 8bfe100 to a6d9540 Compare February 20, 2019 15:01
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

@monojenkins build OS X Extended

@radical radical force-pushed the test-bockbuild-gtk-sharp branch from a6d9540 to 97fe5e3 Compare February 20, 2019 22:19
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 20, 2019

So, the llvm lib is failing to load (dlopen) with this error:

dlopen(/Users/radical/dev/mono/external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.dylib, 9): Symbol not found: _mono_patch_info_equal
  Referenced from: /Users/radical/dev/mono/external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.dylib
  Expected in: flat namespace
 in /Users/radical/dev/mono/external/bockbuild/builds/mono/mono/mini/.libs/libmono-llvm.dylib'

```
@/external/bockbuild/builds/fsharp-fsharp-6624925/src/scripts/fssrgen.fsx(334,28): error FS0041: A unique overload for method 'GetFileNameWithoutExtension' could not be determined based on type information prior to this program point.
A type annotation may be needed. Candidates: System.IO.Path.GetFileNameWithoutExtension(path: System.ReadOnlySpan<char>) : System.ReadOnlySpan<char>, System.IO.Path.GetFileNameWithoutExtension(path: string) : string
[@/external/bockbuild/builds/fsharp-fsharp-6624925/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj]
```
@radical radical force-pushed the test-bockbuild-gtk-sharp branch from 97fe5e3 to c77d77d Compare February 21, 2019 17:16
@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 21, 2019

@monojenkins build OS X Extended

@radical
Copy link
Copy Markdown
Member Author

radical commented Feb 21, 2019

The OS X Extended build confirms that #13110 has fixed the llvm issue. I have already moved the fsharp and gtk-sharp other individual PRs, so, this can be closed now.

@radical radical closed this Feb 21, 2019
@radical radical deleted the test-bockbuild-gtk-sharp branch February 21, 2019 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants