Skip to contentSkip to conversation

Your daily results for 2023-11-29

Buildroot Michel Alex 2 participants 4 messages Nov 30, 2023 – Dec 6, 2023 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Thomas,

do you have any idea how to fix this build error?

Error: unrecognized instruction `nop'

Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 7:38 AM
To: Michel Alex <[email protected]>
Subject: [autobuild.buildroot.net] Your daily results for 2023-11-29

Hello,

Autobuilder failures
====================

Below is a list of build failures reported by the Buildroot autobuilders in relation to packages or CPU architectures you are in charge of. Please help us improving the quality of Buildroot by investigating those build failures and sending patches to fix them.

Results for the 'master' branch
-------------------------------

Build failures related to your packages:

arch | reason | url
-------------+--------------------------------+-------------------------
-------------+--------------------------------+-------------------------
-------------+--------------------------------+-------------------------
-------------+--------------------------------+------

    or1k     |    libzenoh-pico-0.10.0-rc     | http://autobuild.buildroot.net/results/663b631810b7e3982f35539f5d388cf5e5090654

Thanks for your contribution to Buildroot!

--
http://autobuild.buildroot.net
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hello Alex,

The code in libzenoh-pico is stupid:

size_t _z_endpoint_config_strlen(const _z_str_intmap_t *s, const char *proto) {
    size_t len = 0;

    // Call the right configuration parser depending on the protocol
#if Z_LINK_TCP == 1
    if (_z_str_eq(proto, TCP_SCHEMA) == true) {
        len = _z_tcp_config_strlen(s);
    } else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
        if (_z_str_eq(proto, UDP_SCHEMA) == true) {
        len = _z_udp_config_strlen(s);
    } else
#endif
#if Z_LINK_BLUETOOTH == 1
        if (_z_str_eq(proto, BT_SCHEMA) == true) {
        len = _z_bt_config_strlen(s);
    } else
#endif
#if Z_LINK_SERIAL == 1
        if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
        len = _z_serial_config_strlen(s);
    } else
#endif
#if Z_LINK_WS == 1
        if (_z_str_eq(proto, WS_SCHEMA) == true) {
        len = _z_ws_config_strlen(s);
    } else
#endif
    {
        __asm__("nop");
    }

    return len;
}

See the __asm__("nop"). This is completely stupid. It assumes every CPU architecture in the world has a CPU instruction named "nop", which of course is not true. I don't really see what they have added that, it really doesn't make sense. I believe this final "else" block should be dropped (as well as in the next function, that uses the same pattern).

Best regards,

Thomas

Quoted 40 lines · On Thu, 30 Nov 2023 07:34:37 +0000 Michel Alex…

Thomas,

do you have any idea how to fix this build error?

Error: unrecognized instruction `nop'

Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 7:38 AM
To: Michel Alex <[email protected]>
Subject: [autobuild.buildroot.net] Your daily results for 2023-11-29

Hello,

Autobuilder failures
====================

Below is a list of build failures reported by the Buildroot autobuilders in relation to packages or CPU architectures you are in charge of. Please help us improving the quality of Buildroot by investigating those build failures and sending patches to fix them.

Results for the 'master' branch
-------------------------------

Build failures related to your packages:

arch | reason | url
-------------+--------------------------------+-------------------------
-------------+--------------------------------+-------------------------
-------------+--------------------------------+-------------------------
-------------+--------------------------------+------

    or1k     |    libzenoh-pico-0.10.0-rc     | http://autobuild.buildroot.net/results/663b631810b7e3982f35539f5d388cf5e5090654

Thanks for your contribution to Buildroot!

--
http://autobuild.buildroot.net

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hello Thomas,

thanks for your reply.

What is the best strategy to fix this build error? To exclude ar1k architecture for this library (disable it if ar1k is selected) or to provide a patch which just removes the corresponding line?

Best regards,
Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 8:56 AM
To: Michel Alex <[email protected]>
Cc: [email protected]
Subject: Re: [autobuild.buildroot.net] Your daily results for 2023-11-29

Vorsicht: Es handelt sich um eine externe E-Mail vom Absender Thomas Petazzoni <[email protected]>. Bitte klicken Sie nicht auf Links oder Anhänge, solange Sie nicht von der Echtheit der Nachricht überzeugt sind.

Hello Alex,

The code in libzenoh-pico is stupid:

size_t _z_endpoint_config_strlen(const _z_str_intmap_t *s, const char *proto) {
    size_t len = 0;

    // Call the right configuration parser depending on the protocol #if Z_LINK_TCP == 1
    if (_z_str_eq(proto, TCP_SCHEMA) == true) {
        len = _z_tcp_config_strlen(s);
    } else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
        if (_z_str_eq(proto, UDP_SCHEMA) == true) {
        len = _z_udp_config_strlen(s);
    } else
#endif
#if Z_LINK_BLUETOOTH == 1
        if (_z_str_eq(proto, BT_SCHEMA) == true) {
        len = _z_bt_config_strlen(s);
    } else
#endif
#if Z_LINK_SERIAL == 1
        if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
        len = _z_serial_config_strlen(s);
    } else
#endif
#if Z_LINK_WS == 1
        if (_z_str_eq(proto, WS_SCHEMA) == true) {
        len = _z_ws_config_strlen(s);
    } else
#endif
    {
        __asm__("nop");
    }

    return len;
}

See the __asm__("nop"). This is completely stupid. It assumes every CPU architecture in the world has a CPU instruction named "nop", which of course is not true. I don't really see what they have added that, it really doesn't make sense. I believe this final "else" block should be dropped (as well as in the next function, that uses the same pattern).

Best regards,

Thomas

Quoted 36 lines · On Thu, 30 Nov 2023 07:34:37 +0000 Michel Alex…

Thomas,

do you have any idea how to fix this build error?

Error: unrecognized instruction `nop'

Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 7:38 AM
To: Michel Alex <[email protected]>
Subject: [autobuild.buildroot.net] Your daily results for 2023-11-29

Hello,

Autobuilder failures
====================

Below is a list of build failures reported by the Buildroot autobuilders in relation to packages or CPU architectures you are in charge of. Please help us improving the quality of Buildroot by investigating those build failures and sending patches to fix them.

Results for the 'master' branch
-------------------------------

Build failures related to your packages:

arch | reason | url
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+------

Quoted 7 lines
    or1k     |    libzenoh-pico-0.10.0-rc     | http://autobuild.buildroot.net/results/663b631810b7e3982f35539f5d388cf5e5090654

Thanks for your contribution to Buildroot!

--
http://autobuild.buildroot.net

--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

Hello Alex,

The best strategy is to remove the stupid asm("nop") that are in this library code.

Best regards,

Thomas Petazzoni

Quoted 114 lines · On Thu, 30 Nov 2023 14:43:33 +0000 Michel Alex…

Hello Thomas,

thanks for your reply.

What is the best strategy to fix this build error? To exclude ar1k architecture for this library (disable it if ar1k is selected) or to provide a patch which just removes the corresponding line?

Best regards,
Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 8:56 AM
To: Michel Alex <[email protected]>
Cc: [email protected]
Subject: Re: [autobuild.buildroot.net] Your daily results for 2023-11-29

Vorsicht: Es handelt sich um eine externe E-Mail vom Absender Thomas Petazzoni <[email protected]>. Bitte klicken Sie nicht auf Links oder Anhänge, solange Sie nicht von der Echtheit der Nachricht überzeugt sind.

Hello Alex,

The code in libzenoh-pico is stupid:

size_t _z_endpoint_config_strlen(const _z_str_intmap_t *s, const char *proto) {
    size_t len = 0;

    // Call the right configuration parser depending on the protocol #if Z_LINK_TCP == 1
    if (_z_str_eq(proto, TCP_SCHEMA) == true) {
        len = _z_tcp_config_strlen(s);
    } else
#endif
#if Z_LINK_UDP_UNICAST == 1 || Z_LINK_UDP_MULTICAST == 1
        if (_z_str_eq(proto, UDP_SCHEMA) == true) {
        len = _z_udp_config_strlen(s);
    } else
#endif
#if Z_LINK_BLUETOOTH == 1
        if (_z_str_eq(proto, BT_SCHEMA) == true) {
        len = _z_bt_config_strlen(s);
    } else
#endif
#if Z_LINK_SERIAL == 1
        if (_z_str_eq(proto, SERIAL_SCHEMA) == true) {
        len = _z_serial_config_strlen(s);
    } else
#endif
#if Z_LINK_WS == 1
        if (_z_str_eq(proto, WS_SCHEMA) == true) {
        len = _z_ws_config_strlen(s);
    } else
#endif
    {
        __asm__("nop");
    }

    return len;
}

See the __asm__("nop"). This is completely stupid. It assumes every CPU architecture in the world has a CPU instruction named "nop", which of course is not true. I don't really see what they have added that, it really doesn't make sense. I believe this final "else" block should be dropped (as well as in the next function, that uses the same pattern).

Best regards,

Thomas

Quoted 36 lines · On Thu, 30 Nov 2023 07:34:37 +0000 Michel Alex…

Thomas,

do you have any idea how to fix this build error?

Error: unrecognized instruction `nop'

Alex

-----Original Message-----
From: Thomas Petazzoni <[email protected]>
Sent: Thursday, November 30, 2023 7:38 AM
To: Michel Alex <[email protected]>
Subject: [autobuild.buildroot.net] Your daily results for 2023-11-29

Hello,

Autobuilder failures
====================

Below is a list of build failures reported by the Buildroot autobuilders in relation to packages or CPU architectures you are in charge of. Please help us improving the quality of Buildroot by investigating those build failures and sending patches to fix them.

Results for the 'master' branch
-------------------------------

Build failures related to your packages:

arch | reason | url
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+-----------------------
-------------+--------------------------------+--
-------------+--------------------------------+------

Quoted 7 lines
    or1k     |    libzenoh-pico-0.10.0-rc     | http://autobuild.buildroot.net/results/663b631810b7e3982f35539f5d388cf5e5090654

Thanks for your contribution to Buildroot!

--
http://autobuild.buildroot.net

--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot