Skip to content

CoreCLR versions cleanup - #35327

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jkotas:runtime-versions
Apr 25, 2020
Merged

jkotas merged 1 commit into
dotnet:masterfrom
jkotas:runtime-versions

Conversation

@jkotas

@jkotas jkotas commented Apr 23, 2020 •

Copy link
Copy Markdown
Member
  • Reduce number of layers of version macro definitions

@ghost

ghost commented Apr 23, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

Perhaps a good time to consider #13031?

@am11

am11 commented Apr 23, 2020

Copy link
Copy Markdown
Member

One other thing that could be considered in the realm of version and flattening stuff by reducing number of handwritten wrappers around the wrappers is SOVERSION via set_target_properties() cmake function, which maps to the SONAME on Unix, the ABI compatibility of shared binary object. For the various components within the coreclr at build time or if someone is building against, e.g. libcoreclr.so.3 (or something more public), the linker will check the binary compatibility bit and gives error (e.g. if libcoreclr.so.4 is present, it will complain that libcoreclr.so.3 not found); at runtime it gets emitted in NEEDED under ELF dynamic section, but does not have any side effect during the runtime (it only errors during the build/link time).

iow, something like this:

set_target_properties(zlib PROPERTIES SOVERSION 1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Given the comment, is this still relevant?

@jkotas

jkotas commented Apr 23, 2020

Copy link
Copy Markdown
Member Author

Perhaps a good time to consider #13031?

I am trying to avoid changing what goes into the native version resources in this PR. In fact, I have done a few tweaks to make them identical. You can distinguish private builds from official builds via file version number today. The private builds have file version 42,42,42,42424 . This is Arcade feature. If we want to do something more or different, it should be proposed as change in Arcade.

@jkotas

jkotas commented Apr 23, 2020

Copy link
Copy Markdown
Member Author

SOVERSION

We are not using SOVERSIONs today and I do not see what we would gained by using them. We do not expect anybody linking against our native binaries and we manage the versions (of native binaries and everything else) via directory structure.

@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

The private builds have file version 42,42,42,42424 . This is Arcade feature. If we want to do something more or different, it should be proposed as change in Arcade.

I don't think we need anything more. I believe you mentioned this in the referenced issue anyways. I will close that issue since there is something we have in place.

@jkotas

jkotas commented Apr 23, 2020

Copy link
Copy Markdown
Member Author

@elinor-fung @vitek-karas I am deleting FX_PRODUCT_VERSION with this change. Do you have any concerns?

@jkotas
jkotas force-pushed the runtime-versions branch 3 times, most recently from 5ef797a to 01fb5bb Compare April 24, 2020 16:28
@jkotas

jkotas commented Apr 24, 2020

Copy link
Copy Markdown
Member Author

I am going to split this into two PRs: One with the CoreCLR cleanup, and second with FX_PRODUCT_VERSION cleanup.

- Use current version numbers everywhere
- Use product version (e.g. 5.0.0) for all user facing versions
- Use file version (e.g. 5.0.20.21010) only when the exact version information is required
- Reduce number of layers of version macro definitions
@jkotas
jkotas force-pushed the runtime-versions branch from 5e098b3 to c90fd62 Compare April 25, 2020 07:29
@jkotas

jkotas commented Apr 25, 2020

Copy link
Copy Markdown
Member Author

Test failures are known issue #35438

@jkotas
jkotas merged commit ab7ef9b into dotnet:master Apr 25, 2020
@jkotas
jkotas deleted the runtime-versions branch April 26, 2020 01:34
@AndyAyersMS

Copy link
Copy Markdown
Member

I think this or something related might have broken incremental rebuilds?

When I touch a jit file I now end up rebuilding a good chunk of the runtime, because runtime_version.h is getting unconditionally written early in the build.

@jkotas

jkotas commented May 1, 2020

Copy link
Copy Markdown
Member Author

@AndyAyersMS Thanks for reporting this. #35732 should fix it.

@AndyAyersMS

Copy link
Copy Markdown
Member

It inspired me to learn how to view the binlogs.

Thanks for the quick fix.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 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