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

Installer build (corehost) for Linux/OSX failing in official build #38590

Closed
elinor-fung opened this issue Jun 30, 2020 · 8 comments
Closed

Installer build (corehost) for Linux/OSX failing in official build #38590

elinor-fung opened this issue Jun 30, 2020 · 8 comments
Assignees
Labels
area-Single-File untriaged New issue has not been triaged by the area owner
Milestone

Comments

@elinor-fung
Copy link
Member

Failing on singlefilehost build.

gmake[2]: *** No rule to make target `/root/runtime/artifacts/transport/AllArtifacts/CoreCLRProduct__release/lib/libcoreclr_static.a', needed by `cli/apphost/static/singlefilehost'.  Stop.
gmake[2]: *** Waiting for unfinished jobs....
  [ 88%] Building CXX object cli/apphost/static/CMakeFiles/singlefilehost.dir/__/__/__/corehost.cpp.o
gmake[1]: *** [cli/apphost/static/CMakeFiles/singlefilehost.dir/all] Error 2

cc @swaroop-sridhar @VSadov

@ghost
Copy link

ghost commented Jun 30, 2020

Tagging subscribers to this area: @vitek-karas, @swaroop-sridhar, @agocke
Notify danmosemsft if you want to be subscribed.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jun 30, 2020
@ghost
Copy link

ghost commented Jun 30, 2020

Tagging subscribers to this area: @swaroop-sridhar, @agocke
Notify danmosemsft if you want to be subscribed.

@swaroop-sridhar
Copy link
Contributor

swaroop-sridhar commented Jun 30, 2020

Understood to be caused/triggered by #36847

@elinor-fung elinor-fung added this to the 5.0.0 milestone Jun 30, 2020
@swaroop-sridhar
Copy link
Contributor

The problem here, as identified by @jkoritzinsky, is that CoreCLRArtifactsPath is /root/runtime/artifacts/transport/AllArtifacts/CoreCLRProduct__release/... , rather than /root/runtime/artifacts/transport/AllArtifacts/CoreCLRProduct_Linux-x64_release/...

@swaroop-sridhar
Copy link
Contributor

CoreCLRArtifactsPath is computed here.

However, in /root/runtime/src/installer/corehost/build.proj, ArtifactPlatform is not set here because RuntimeIdentifier is not set.

@VSadov
Copy link
Member

VSadov commented Jun 30, 2020

It looks like RuntimeArtifactsPath is passed correctly to the build and should become CoreCLRArtifactsPath, however later it is overriden because of the condition in:

 <PropertyGroup Condition="
    '$(RuntimeIdentifier)' != '$(OutputRid)' and
    '$(AllArtifactsDownloadPath)' != ''">

which is true if RuntimeIdentifier is not specified.

Perhaps the fix should be

 <PropertyGroup Condition="
    '$(RuntimeIdentifier)' != '' and
    '$(RuntimeIdentifier)' != '$(OutputRid)' and
    '$(AllArtifactsDownloadPath)' != ''">

i.e. - if RuntimeIdentifier is not specified, just let the default value (RuntimeArtifactsPath) be used?

@VSadov
Copy link
Member

VSadov commented Jun 30, 2020

For reference - we get
/p:RuntimeArtifactsPath=/root/runtime/artifacts/transport/coreclr

And that is where the coreclr binaries are unzipped.

However we also get
/p:AllArtifactsDownloadPath=artifacts/transport/AllArtifacts

which triggers the override, but there is nothing to override to - since RuntimeIdentifier in this case is empty.

@VSadov
Copy link
Member

VSadov commented Jun 30, 2020

Fixed in #38602

@VSadov VSadov closed this as completed Jun 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Single-File untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants