codex-storage / nim-codex

Decentralized Durability Engine
https://codex.storage
Apache License 2.0
69 stars 25 forks source link

[BUG] - Compile Codex with GCC 14 #875

Open veaceslavdoina opened 3 months ago

veaceslavdoina commented 3 months ago

Describe the bug Codex currently can't be compiled with GCC 14, which was released on Tue May 7 10:31:35 GMT 2024.

Based on the numbering scheme, this is a first v14 public release, 14.0 was used in the development process.

To Reproduce

  1. Follow Building Codex guide
  2. Install GCC 14
  3. Run make update - ✅
  4. Run make - ❌

Expected behavior We should be able to compile Codex with GCC 14 and older versions as well.

Environment:

Additional context

Work in progress - nim-codex/.gitmodules

benbierens commented 3 months ago

I think nim-datastore is working. PR: https://github.com/codex-storage/nim-datastore/pull/69

veaceslavdoina commented 3 months ago

Latest GCC version (14.1) breaks Nim's C backend

veaceslavdoina commented 1 month ago

Test on fresh Fedora 40 following our guide - Build Codex - :x:

gcc --version
gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Fedora is moving forward 🚀

veaceslavdoina commented 1 day ago

GCC 15 Moves C Default Language Version To C23