Closed vitlav closed 3 years ago
@vitlav , what is your OS version cat /etc/*-release
and gcc & gcc-c++ version?
did you follow this https://github.com/microsoft/build-omi?
@vitlav , what is your OS version
cat /etc/*-release
and gcc & gcc-c++ version? did you follow this https://github.com/microsoft/build-omi?
It is just a gcc 10 issue. Please, check https://gcc.gnu.org/gcc-10/porting_to.html about multiple definition mistake. I used gcc 10.2.1.
While it doesn't fix the underlying issue itself you can ignore it and go back to the pre gcc 10 behaviour with https://github.com/jborean93/omi/blob/297686252944e32d2525ea2f72937df371df8c38/Unix/buildtool#L801-L804.
@vitlav @jborean93 thanks for sharing!
because we used redhat5/centos5 to build universal packages, we doesn't meet the issue on our build system. For build the code on latest OS, we doesn't try it yet, maybe we will have chance to try it in the future.
build universal rpm/deb packages docs:
@vitlav @jborean93 I have verified jborean93 's fixes works fine for gcc 10 compilation and the fixes also doesn't break exist build system, and I will new a PR next week to fix the issue, thanks for contribution!
omi build has multiple definition of `__mi_server: