Re: [yocto] Scarthgap native build errors

Martin Jansa <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <CA+chaQcteEg229Kg1P2UARG_neTi9KMCArVDE5cw1iG6+2aEpw@mail.gmail.com>
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 <[email protected]>
wrote:
>
> Hello,
>
> Le mar. 24 juin 2025 à 19:06, Rudolf J Streif via lists.yoctoproject.org <[email protected]> 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: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.