Skip to contentSkip to conversation

Scarthgap native build errors

DISCUSSION Rudolf J Streif 3 participants 3 messages Jun 24, 2025 – Aug 21, 2025

lore
Share & tools
lore
#0 lore raw

I am building on Fedora Core 42 with gcc 15.1. I am currently seeing two strange errors when building native packages for cmake-native and git-native:

cmake-native:

tcu-firmware/build/tmp/work/x86_64-linux/cmake-native/3.28.3/cmake-3.28.3/Utilities/cmcppdap/include/dap/network.h:31:39: error: ‘uint32_t’ has not been declared

|    31 |                                       uint32_t timeoutMillis = 0);
|       |                                       ^~~~~~~~

This can of course easily be fixed by including <cstdint>. However, it's still strange that this is happening and it's the first time that I am seeing this.

git-native:

| reflog.c:211:104: error: macro ‘unreachable’ passed 3 arguments, but takes just 0
|   211 | static int unreachable(struct expire_reflog_policy_cb *cb, struct commit *commit, struct object_id *oid)
| | ^
| In file included from git-compat-util.h:225,
|                  from reflog.c:1:
| /usr/lib/gcc/x86_64-redhat-linux/15/include/stddef.h:468:9: note: macro ‘unreachable’ defined here
|   468 | #define unreachable() (__builtin_unreachable ())
|       |         ^~~~~~~~~~~

The weird thing with this issue is that line 211 in reflog.c declares the function unreachable() with three parameters. However, the compiler interprets it as the macro unreachable for stddef.h being called. Unfortunately, I don't have a solution for this.

Thanks,
Rudi

#1 lore raw

Hello,

Quoted 8 lines · Rudolf J Streif via lists.yoctoproject.org

I am building on Fedora Core 42 with gcc 15.1. I am currently seeing two strange errors when building native packages for cmake-native and git-native:

cmake-native:

tcu-firmware/build/tmp/work/x86_64-linux/cmake-native/3.28.3/cmake-3.28.3/Utilities/cmcppdap/include/dap/network.h:31:39

error: ‘uint32_t’ has not been declared

Quoted 23 lines

| 31 | uint32_t timeoutMillis =
0);
| | ^~~~~~~~

This can of course easily be fixed by including <cstdint>. However, it's still strange that this is happening and it's the first time that I am seeing this.

git-native:

| reflog.c:211:104: error: macro ‘unreachable’ passed 3 arguments, but takes just 0
| 211 | static int unreachable(struct expire_reflog_policy_cb *cb,
struct commit *commit, struct object_id *oid)

| | ^
| In file included from git-compat-util.h:225,
|                  from reflog.c:1:
| /usr/lib/gcc/x86_64-redhat-linux/15/include/stddef.h:468:9: note:
macro ‘unreachable’ defined here
|   468 | #define unreachable() (__builtin_unreachable ())
|       |         ^~~~~~~~~~~
Quoted 5 lines

The weird thing with this issue is that line 211 in reflog.c declares the function unreachable() with three parameters. However, the compiler interprets it as the macro unreachable for stddef.h being called. Unfortunately, I don't have a solution for this.

Looking at your cmake version, you are on Scarthgap.
Fedora Core 42 is not a supported distribution for Scarthgap :
https://docs.yoctoproject.org/5.0.10/ref-manual/system-requirements.html#supported-linux-distributions
So, the official solution is to use a supported build OS (as a container for example).

FYI, Fedora Core 42 is not even tested on master right now so it is definitely too recent for scarthgap.

Regards,

Quoted 15 lines

Thanks,
Rudi

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#65542):
https://lists.yoctoproject.org/g/yocto/message/65542
Mute This Topic: https://lists.yoctoproject.org/mt/113810984/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS
#2 lore raw

FWIW: ubuntu-25.10 (which I happen to use in docker for some of scarthgap builds) snapshot switched to gcc-15 last week as well, so I've sent fixes for these (cmake and git will be sent later today)

Quoted 71 lines · Yoann Congal via lists.yoctoproject.org

Hello,

Quoted 32 lines · Rudolf J Streif via lists.yoctoproject.org

I am building on Fedora Core 42 with gcc 15.1. I am currently seeing two strange errors when building native packages for cmake-native and git-native:

cmake-native:

tcu-firmware/build/tmp/work/x86_64-linux/cmake-native/3.28.3/cmake-3.28.3/Utilities/cmcppdap/include/dap/network.h:31:39

error: ‘uint32_t’ has not been declared

|    31 |                                       uint32_t timeoutMillis = 0);
|       |                                       ^~~~~~~~

This can of course easily be fixed by including <cstdint>. However, it's still strange that this is happening and it's the first time that I am seeing this.

git-native:

| reflog.c:211:104: error: macro ‘unreachable’ passed 3 arguments, but takes just 0
| 211 | static int unreachable(struct expire_reflog_policy_cb *cb,
struct commit *commit, struct object_id *oid)

| | ^
| In file included from git-compat-util.h:225,
|                  from reflog.c:1:
| /usr/lib/gcc/x86_64-redhat-linux/15/include/stddef.h:468:9: note:
macro ‘unreachable’ defined here
|   468 | #define unreachable() (__builtin_unreachable ())
|       |         ^~~~~~~~~~~
Quoted 4 lines

The weird thing with this issue is that line 211 in reflog.c declares the function unreachable() with three parameters. However, the compiler interprets it as the macro unreachable for stddef.h being called. Unfortunately, I don't have a solution for this.

Looking at your cmake version, you are on Scarthgap.
Fedora Core 42 is not a supported distribution for Scarthgap : https://docs.yoctoproject.org/5.0.10/ref-manual/system-requirements.html#supported-linux-distributions
So, the official solution is to use a supported build OS (as a container for example).

FYI, Fedora Core 42 is not even tested on master right now so it is definitely too recent for scarthgap.

Regards,

Quoted 7 lines

Thanks,
Rudi

--
Yoann Congal
Smile ECS

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65543): https://lists.yoctoproject.org/g/yocto/message/65543
Mute This Topic: https://lists.yoctoproject.org/mt/113810984/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-