# cross compile, is the gcc(4.8.5) version too old for most of c++ thirdparty?

**URL:** <https://forums.unrealengine.com/t/cross-compile-is-the-gcc-4-8-5-version-too-old-for-most-of-c-thirdparty/1270583>\
**Category:** Feedback & Requests\
**Tags:** cross-platform, cross-compiling, unreal-engine, compiler, compile, CPP, question\
**Created:** [August 24, 2023, 4:46am UTC](https://forums.unrealengine.com/t/cross-compile-is-the-gcc-4-8-5-version-too-old-for-most-of-c-thirdparty/1270583 "2023-08-24T04:46:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lleeaarr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lleeaarr](https://forums.unrealengine.com/u/lleeaarr)\
**Post date:** [August 24, 2023, 4:46am UTC](https://forums.unrealengine.com/t/cross-compile-is-the-gcc-4-8-5-version-too-old-for-most-of-c-thirdparty/1270583/1 "2023-08-24T04:46:27Z")

</div>

When cross compile in Linux with Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux\_x64/v20\_clang-13.0.1-centos7/x86\_64-unknown-linux-gnu/bin/clang++, the gcc(4.8.5) version is too old for most c++ thirdparty now.

```auto
#./clang++ -v
clang version 13.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /data/UE/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/.
Found candidate GCC installation: /data/UE/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/./../lib/gcc/x86_64-unknown-linux-gnu/4.8.5
Selected GCC installation: /data/UE/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/./../lib/gcc/x86_64-unknown-linux-gnu/4.8.5
Candidate multilib: .;@m64
Selected multilib: .;@m64

```

The compile error for GRPC 1.51.1, for example:

```auto
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/ext/filters/client_channel/client_channel_plugin.cc:21:
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/ext/filters/client_channel/client_channel.h:40:
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/ext/filters/client_channel/client_channel_factory.h:24:
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/ext/filters/client_channel/subchannel.h:37:
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/ext/filters/client_channel/client_channel_channelz.h:35:
In file included from vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/lib/channel/channel_trace.h:31:
vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/lib/gprpp/ref_counted_ptr.h:58:16: error: no member named 'exchange' in namespace 'std'
    reset(std::exchange(other.value_, nullptr));
          ~~~~~ ^
vcpkg/buildtrees/grpc/src/v1.51.1-1066d25324.clean/src/core/lib/gprpp/ref_counted_ptr.h:63:16: error: no member named 'exchange' in namespace 'std'
    reset(std::exchange(other.value_, nullptr));
          ~~~~~ ^

```

Shall we plan to Upgrdate the gcc version to support c++17(or higher version)?  
thanks for your help.

---

<div class="post-metadata">

**Author:** ![dzemzmcdonalda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dzemzmcdonalda/32/1214680_2.png) [@dzemzmcdonalda](https://forums.unrealengine.com/u/dzemzmcdonalda)\
**Post date:** [September 3, 2024, 10:45pm UTC](https://forums.unrealengine.com/t/cross-compile-is-the-gcc-4-8-5-version-too-old-for-most-of-c-thirdparty/1270583/2 "2024-09-03T22:45:20Z")

</div>

Bumping this request.  
gcc4 is extremely outdated:

```bash
# my system-wide clang instalation
$ clang -v
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/14.2.1
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

# clang that ships with UE5.4
$ UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang -v
clang version 16.0.6 (github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/korn/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin
Found candidate GCC installation: /home/korn/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/../lib/gcc/x86_64-unknown-lin
ux-gnu/4.8.5
Selected GCC installation: /home/korn/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/../lib/gcc/x86_64-unknown-linux-gnu/
4.8.5
Candidate multilib: .;@m64
Selected multilib: .;@m64

```
