Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895156 - dev-lang/micropython-1.17: main.c:342:6: error: conflicting types for ‘mp_import_stat’ due to enum/integer mismatch; have ‘uint(const char *)’ {aka ‘unsigned int(const char *)’} [-Werror=enum-int-mismatch]
Summary: dev-lang/micropython-1.17: main.c:342:6: error: conflicting types for ‘mp_imp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrice Clement
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: werror gcc-13
  Show dependency tree
 
Reported: 2023-02-17 20:33 UTC by Toralf Förster
Modified: 2024-01-20 13:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.88 KB, text/plain)
2023-02-17 20:33 UTC, Toralf Förster
Details
dev-lang:micropython-1.17:20230217-191537.log (dev-lang:micropython-1.17:20230217-191537.log,6.17 KB, text/plain)
2023-02-17 20:33 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,213.22 KB, text/plain)
2023-02-17 20:33 UTC, Toralf Förster
Details
environment (environment,60.32 KB, text/plain)
2023-02-17 20:33 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,46.54 KB, application/x-bzip)
2023-02-17 20:33 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-02-17 20:33:15 UTC
      |      ^~~~~~~~~~~~~~
In file included from ../py/compile.h:29,
                 from main.c:32:
../py/lexer.h:205:18: note: previous declaration of mp_import_stat with type mp_import_stat_t(const char *)
  205 | mp_import_stat_t mp_import_stat(const char *path);
      |                  ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [../py/mkrules.mk:77: build/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20230216-050018

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.67.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JRE 17.0.6_p10 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit efb3b5f8f5da692e3a62be233a653f1251541227
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Feb 17 17:32:01 2023 +0000

    2023-02-17 17:32:00 UTC

emerge -qpvO dev-lang/micropython
[ebuild  N    ] dev-lang/micropython-1.17  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2023-02-17 20:33:16 UTC
Created attachment 852322 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-17 20:33:16 UTC
Created attachment 852324 [details]
dev-lang:micropython-1.17:20230217-191537.log
Comment 3 Toralf Förster gentoo-dev 2023-02-17 20:33:18 UTC
Created attachment 852326 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-02-17 20:33:19 UTC
Created attachment 852328 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-02-17 20:33:20 UTC
Created attachment 852330 [details]
etc.portage.tar.bz2
Comment 7 Kristaps Kaupe 2024-01-14 16:39:04 UTC
https://github.com/gentoo/gentoo/pull/34801
Comment 8 Larry the Git Cow gentoo-dev 2024-01-20 13:33:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28f669cfbdc20cb94f4d32e8441e996ddda8384

commit f28f669cfbdc20cb94f4d32e8441e996ddda8384
Author:     Kristaps Kaupe <kristaps@blogiem.lv>
AuthorDate: 2024-01-14 16:34:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-20 13:30:56 +0000

    dev-lang/micropython: Fix building with GCC13
    
    Closes: https://bugs.gentoo.org/916499
    Closes: https://bugs.gentoo.org/895156
    Signed-off-by: Kristaps Kaupe <kristaps@blogiem.lv>
    Closes: https://github.com/gentoo/gentoo/pull/34801
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/micropython-1.17-gcc13-build-fix.patch   | 59 ++++++++++++++++++++++
 dev-lang/micropython/micropython-1.17.ebuild       |  1 +
 2 files changed, 60 insertions(+)