Skip to content

Compilation of v1.27.0 fails on s390x and loongarch64 #18564

@maribu

Description

@maribu

Port, board and/or hardware

unix port (Alpine Linux)

MicroPython version

MicroPython Version 1.27.0 on Alpine Linux Edge (GCC 15.2.0)

Reproduction

Build the UNIX port on Alpin Linux Edge on an s390x or an loongarch64 machine. One could use the package build recipe in https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/community/micropython and then use build -r to reproduce it.

Expected behaviour

MicroPython builds without errors.

Observed behaviour

Building on Alpine Linux for s390x and loongarch64 with:

main.c: In function 'parse_integer.constprop':
main.c:237:9: error: variable 'base' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
  237 |     int base = 10;
      |         ^~~~
main.c:248:10: error: variable 'valid' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
  248 |     bool valid = false;
      |          ^~~~~
cc1: all warnings being treated as errors

Additional Information

Without access to real hardware, ways to reproduce are:

  1. The alpine linux docker + QEMU
  2. The Alpine CI (runs upon opening a Merge Request)

Code of Conduct

Yes, I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions