Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile fails conflicting types for CalcStack, elfloader.c #892

Closed
torriem opened this issue Nov 26, 2023 · 1 comment
Closed

Compile fails conflicting types for CalcStack, elfloader.c #892

torriem opened this issue Nov 26, 2023 · 1 comment

Comments

@torriem
Copy link

torriem commented Nov 26, 2023

Building the master branch of box86 on Ubuntu 22.04 on Arm64 or on Fedora 38 on x86_64 fails with the same error message:

/home/torriem/git/box86/src/elfs/elfloader.c: At top level:
/home/torriem/git/box86/src/elfs/elfloader.c:1062:6: error: conflicting types for ‘CalcStack’; have ‘void(elfheader_t *, uint32_t *, uint32_t *)’ {aka ‘void(struct elfheader_s *, unsigned int *, unsigned int *)’}
 1062 | void CalcStack(elfheader_t* elf, uint32_t* stacksz, uint32_t* stackalign)
      |      ^~~~~~~~~
In file included from /home/torriem/git/box86/src/elfs/elfloader.c:17:
/home/torriem/git/box86/src/include/elfloader.h:30:6: note: previous declaration of ‘CalcStack’ with type ‘void(elfheader_t *, uint32_t *, size_t *)’ {aka ‘void(struct elfheader_s *, unsigned int *, long unsigned int *)’}
   30 | void CalcStack(elfheader_t* h, uint32_t* stacksz, size_t* stackalign);
@torriem
Copy link
Author

torriem commented Nov 26, 2023

This is a clean checkout from git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant