-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello,
I have tried to compile the project on my MacOS Intel computer OSX 12.2.1
and I'm suffering some compilation issues.
I'm not sure if I miss some dependencies or I'm doing something wrong.
➜ iopmod git:(main) make tool LDFLAGS=-static V=1
cc -O2 -g -Wall -Iinclude -Wp,-MMD,tool/iopmod-info.o.d -MT tool/iopmod-info.o -c -o tool/iopmod-info.o tool/iopmod-info.c
In file included from tool/iopmod-info.c:24:
In file included from include/iopmod/tool/irx.h:9:
include/iopmod/tool/elf32.h:11:10: error: 'elf.h' file not found with <angled> include; use "quotes" instead
#include <elf.h>
^~~~~~~
"elf.h"
In file included from tool/iopmod-info.c:24:
In file included from include/iopmod/tool/irx.h:9:
In file included from include/iopmod/tool/elf32.h:11:
include/iopmod/tool/elf.h:23:1: error: unknown type name 'Elf_Shdr'
Elf_Shdr *elf_first_section(Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:23:29: error: unknown type name 'Elf_Ehdr'
Elf_Shdr *elf_first_section(Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:24:1: error: unknown type name 'Elf_Shdr'
Elf_Shdr *elf_next_section(Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:24:28: error: unknown type name 'Elf_Shdr'
Elf_Shdr *elf_next_section(Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:24:44: error: unknown type name 'Elf_Ehdr'
Elf_Shdr *elf_next_section(Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:45:21: error: unknown type name 'Elf_Shdr'
void *elf_first_ent(Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:45:37: error: unknown type name 'Elf_Ehdr'
void *elf_first_ent(Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:46:31: error: unknown type name 'Elf_Shdr'
void *elf_next_ent(void *ent, Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:46:47: error: unknown type name 'Elf_Ehdr'
void *elf_next_ent(void *ent, Elf_Shdr *shdr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:48:28: error: unknown type name 'Elf_Off'
bool elf_offset_in_section(Elf_Off offset, const Elf_Shdr *shdr);
^
include/iopmod/tool/elf.h:48:50: error: unknown type name 'Elf_Shdr'
bool elf_offset_in_section(Elf_Off offset, const Elf_Shdr *shdr);
^
include/iopmod/tool/elf.h:49:26: error: unknown type name 'Elf_Addr'
bool elf_addr_in_section(Elf_Addr addr, const Elf_Shdr *shdr);
^
include/iopmod/tool/elf.h:49:47: error: unknown type name 'Elf_Shdr'
bool elf_addr_in_section(Elf_Addr addr, const Elf_Shdr *shdr);
^
include/iopmod/tool/elf.h:51:26: error: unknown type name 'Elf_Off'
void *elf_ent_for_offset(Elf_Off offset, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:51:42: error: unknown type name 'Elf_Ehdr'
void *elf_ent_for_offset(Elf_Off offset, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:52:24: error: unknown type name 'Elf_Addr'
void *elf_ent_for_addr(Elf_Addr addr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:52:39: error: unknown type name 'Elf_Ehdr'
void *elf_ent_for_addr(Elf_Addr addr, Elf_Ehdr *ehdr);
^
include/iopmod/tool/elf.h:53:1: error: unknown type name 'Elf_Addr'
Elf_Addr elf_addr_for_ent(void *ent, Elf_Ehdr *ehdr);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [tool/iopmod-info.o] Error 1
Could you try to add MacOS
as well to your CI/CD workflows to assure it is compiling in macOS as well?
Thanks
Metadata
Metadata
Assignees
Labels
No labels