Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Compile with gcc 4.8 #27625

Merged
merged 5 commits into from
Nov 2, 2019
Merged

Compile with gcc 4.8 #27625

merged 5 commits into from
Nov 2, 2019

Conversation

franksinankaya
Copy link

In file included from coreclr/src/vm/dumpdiagnosticprotocolhelper.h:11:0,
                 from coreclr/src/vm/dumpdiagnosticprotocolhelper.cpp:7:
coreclr/src/vm/diagnosticsprotocol.h: In member function ‘bool DiagnosticsIpc::IpcMessage::Initialize(HRESULT)’:
coreclr/src/vm/diagnosticsprotocol.h:239:56: error: call of overloaded ‘Initialize(const DiagnosticsIpc::IpcHeader&, HRESULT&)’ is ambiguous
             return Initialize(GenericErrorHeader, error);
                                                        ^
coreclr/src/vm/diagnosticsprotocol.h:239:56: note: candidates are:
coreclr/src/vm/diagnosticsprotocol.h:196:14: note: bool DiagnosticsIpc::IpcMessage::Initialize(DiagnosticsIpc::IpcHeader, T&) [with T = int]
         bool Initialize(IpcHeader header, T& payload)
              ^
coreclr/src/vm/diagnosticsprotocol.h:213:14: note: bool DiagnosticsIpc::IpcMessage::Initialize(DiagnosticsIpc::IpcHeader, T&&) [with T = int&]
         bool Initialize(IpcHeader header, T&& payload)
              ^
@franksinankaya
Copy link
Author

We should be able to close #26929 and #25529 after this change.

src/vm/diagnosticsprotocol.h Outdated Show resolved Hide resolved
@jkotas
Copy link
Member

jkotas commented Nov 2, 2019

LGTM otherwise

configurecompiler.cmake Outdated Show resolved Hide resolved
Copy link
Member

@am11 am11 left a comment

Choose a reason for hiding this comment

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

👍
I didn't realize until now that C++11 is supported in 4.8: https://gcc.gnu.org/gcc-4.8/cxx0x_status.html
Note that CoreFX uses C11 _Generic in one place, which requires minimum gcc v4.9. So it would probably be good that we set 4.9 as baseline (especially once the repos are consolidated few days from now).

@jkotas jkotas merged commit 1b53ff1 into dotnet:master Nov 2, 2019
@franksinankaya franksinankaya deleted the frkaya/gcc48 branch November 2, 2019 19:34
@xiangzhai
Copy link

Hi @franksinankaya

Will backport the patch to 3.1 branch?

Thanks,
Leslie Zhai

@franksinankaya
Copy link
Author

3.1 branch unfortunately won't work because full GCC compilation has been only enabled on master branch only recently.

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.

5 participants