* Scarthgap native build errors
@ 2025-06-24 17:05 Rudolf J Streif
2025-06-24 18:01 ` [yocto] " Yoann Congal
0 siblings, 1 reply; 3+ messages in thread
From: Rudolf J Streif @ 2025-06-24 17:05 UTC (permalink / raw)
To: Yocto-mailing-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] Scarthgap native build errors
2025-06-24 17:05 Scarthgap native build errors Rudolf J Streif
@ 2025-06-24 18:01 ` Yoann Congal
2025-08-21 10:02 ` Martin Jansa
0 siblings, 1 reply; 3+ messages in thread
From: Yoann Congal @ 2025-06-24 18:01 UTC (permalink / raw)
To: yocto, rudolf.streif
[-- Attachment #1: Type: text/plain, Size: 2545 bytes --]
Hello,
Le mar. 24 juin 2025 à 19:06, Rudolf J Streif via lists.yoctoproject.org
<rudolf.streif=ibeeto.com@lists.yoctoproject.org> a écrit :
> 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.
>
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,
> 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: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
--
Yoann Congal
Smile ECS
[-- Attachment #2: Type: text/html, Size: 4273 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [yocto] Scarthgap native build errors
2025-06-24 18:01 ` [yocto] " Yoann Congal
@ 2025-08-21 10:02 ` Martin Jansa
0 siblings, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2025-08-21 10:02 UTC (permalink / raw)
To: yocto, yoann.congal; +Cc: rudolf.streif
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)
On Tue, Jun 24, 2025 at 8:02 PM Yoann Congal via
lists.yoctoproject.org <yoann.congal=smile.fr@lists.yoctoproject.org>
wrote:
>
> Hello,
>
> Le mar. 24 juin 2025 à 19:06, Rudolf J Streif via lists.yoctoproject.org <rudolf.streif=ibeeto.com@lists.yoctoproject.org> a écrit :
>>
>> 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.
>
>
> 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,
>
>>
>> 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: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-21 10:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24 17:05 Scarthgap native build errors Rudolf J Streif
2025-06-24 18:01 ` [yocto] " Yoann Congal
2025-08-21 10:02 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).