Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 643
    • Issues 643
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 335
    • Merge requests 335
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpinealpine
  • aportsaports
  • Issues
  • #13411
Closed
Open
Issue created Jan 10, 2022 by Heinrich Schuchardt@xypron

Conflicting types in sdl2-dev

When compiling U-Boot which uses -fshort-wchar the following error occurs:

In file included from /usr/include/SDL2/SDL_stdinc.h:47,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from arch/sandbox/cpu/sdl.c:10:
/usr/lib/gcc/x86_64-alpine-linux-musl/10.3.1/include/stddef.h:321:24: error: conflicting types for 'wchar_t'
  321 | typedef __WCHAR_TYPE__ wchar_t;
      |                        ^~~~~~~
In file included from /usr/include/stdlib.h:19,
                 from /usr/include/fortify/stdlib.h:22,
                 from /usr/include/SDL2/SDL_stdinc.h:46,
                 from /usr/include/SDL2/SDL_main.h:25,
                 from /usr/include/SDL2/SDL.h:32,
                 from arch/sandbox/cpu/sdl.c:10:
/usr/include/bits/alltypes.h:10:13: note: previous declaration of 'wchar_t' was here
   10 | typedef int wchar_t;
      |             ^~~~~~~

Best regards

Heinrich

Edited Jan 10, 2022 by Heinrich Schuchardt
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking