hiroyuki-sato / ucx

Unified Communication X (mailing list - https://elist.ornl.gov/mailman/listinfo/ucx-group):
http://www.openucx.org
Other
2 stars 0 forks source link

fatal error: 'link.h' file not found #5

Open hiroyuki-sato opened 5 years ago

hiroyuki-sato commented 5 years ago
make: *** [sys/libucs_la-init.lo] Error 1
  CC       sys/libucs_la-module.lo
sys/module.c:19:10: fatal error: 'link.h' file not found
#include <link.h>
         ^~~~~~~~
1 error generated.
rg link.h
config/m4/ucs.m4
45:                  #include <link.h>]) 

src/ucm/util/reloc.c
29:#include <link.h>

src/ucs/sys/module.c
19:#include <link.h>

src/ucs/debug/debug.c
23:#include <link.h>
hiroyuki-sato commented 5 years ago
util/reloc.c:46:5: error: expected specifier-qualifier-list before ‘ElfW’
     ElfW(Addr)         libucm_base_addr;  /* Base address to store previous value */
     ^~~~
util/reloc.c:63:21: error: unknown type name ‘ElfW’
 ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                     ^~~~
util/reloc.c:63:44: error: type defaults to ‘int’ in declaration of ‘ElfW’ [-Werror=implicit-int]
 ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                                            ^~~~
util/reloc.c:63:21: error: parameter names (without types) in function declaration [-Werror]
 ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                     ^~~~
util/reloc.c:63:55: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
 ucm_reloc_get_entry(ElfW(Addr) base, const ElfW(Phdr) *dphdr, ElfW(Sxword) tag)
                                                       ^
util/reloc.c: In function ‘ucm_reloc_get_aux_phsize’:
util/reloc.c:126:75: error: ‘AT_NULL’ undeclared (first use in this function); did you mean ‘ATF_PUBL’?
             for (auxv = buffer; (auxv < buffer + count) && (auxv->type != AT_NULL);
                                                                           ^~~~~~~
                                                                           ATF_PUBL
util/reloc.c:126:75: note: each undeclared identifier is reported only once for each function it appears in
util/reloc.c:129:35: error: ‘AT_PHENT’ undeclared (first use in this function); did you mean ‘AF_PHONET’?
                 if (auxv->type == AT_PHENT) {
                                   ^~~~~~~~
                                   AF_PHONET
util/reloc.c: At top level:
util/reloc.c:153:1: error: return type defaults to ‘int’ [-Werror=implicit-int]
 ElfW(Rela) *ucm_reloc_find_sym(void *table, size_t table_size, const char *symbol,
 ^~~~
util/reloc.c: In function ‘ElfW’:
util/reloc.c:153:12: error: expected declaration specifiers before ‘*’ token
 ElfW(Rela) *ucm_reloc_find_sym(void *table, size_t table_size, const char *symbol,
            ^
util/reloc.c:172:22: error: expected declaration specifiers or ‘...’ before ‘ElfW’
 ucm_reloc_modify_got(ElfW(Addr) base, const ElfW(Phdr) *phdr, const char UCS_V_UNUSED *phname,
                      ^~~~
util/reloc.c:172:45: error: type defaults to ‘int’ in declaration of ‘ElfW’ [-Werror=implicit-int]
 ucm_reloc_modify_got(ElfW(Addr) base, const ElfW(Phdr) *phdr, const char UCS_V_UNUSED *phname,
                                             ^~~~
util/reloc.c:172:22: error: parameter names (without types) in function declaration [-Werror]
 ucm_reloc_modify_got(ElfW(Addr) base, const ElfW(Phdr) *phdr, const char UCS_V_UNUSED *phname,
                      ^~~~
util/reloc.c:172:56: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
 ucm_reloc_modify_got(ElfW(Addr) base, const ElfW(Phdr) *phdr, const char UCS_V_UNUSED *phname,
                                                        ^
util/reloc.c:265:43: error: ‘struct dl_phdr_info’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
 static int ucm_reloc_phdr_iterator(struct dl_phdr_info *info, size_t size,
                                           ^~~~~~~~~~~~
util/reloc.c:267:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
util/reloc.c:302:43: error: expected declaration specifiers or ‘...’ before ‘ElfW’
                                           ElfW(Addr) libucm_base_addr)
                                           ^~~~
util/reloc.c:320:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
util/reloc.c:360:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
util/reloc.c:460:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
util/reloc.c:484:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
util/reloc.c:153:1: error: type of ‘Rela’ defaults to ‘int’ [-Werror=implicit-int]
 ElfW(Rela) *ucm_reloc_find_sym(void *table, size_t table_size, const char *symbol,
 ^~~~
util/reloc.c:516:1: error: expected ‘{’ at end of input
 }
 ^
util/reloc.c:516:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
At top level:
util/reloc.c:85:12: error: ‘ucm_reloc_get_aux_phsize’ defined but not used [-Werror=unused-function]
 static int ucm_reloc_get_aux_phsize()
            ^~~~~~~~~~~~~~~~~~~~~~~~
util/reloc.c:59:24: error: ‘ucm_reloc_patch_list_lock’ defined but not used [-Werror=unused-variable]
 static pthread_mutex_t ucm_reloc_patch_list_lock = PTHREAD_MUTEX_INITIALIZER;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
util/reloc.c:58:32: error: ‘ucm_reloc_orig_dlopen’ defined but not used [-Werror=unused-variable]
 static ucm_reloc_dlopen_func_t ucm_reloc_orig_dlopen = NULL;
                                ^~~~~~~~~~~~~~~~~~~~~
util/reloc.c:50:26: error: ‘ucm_reloc_dlopen_patch’ defined but not used [-Werror=unused-variable]
 static ucm_reloc_patch_t ucm_reloc_dlopen_patch = {
                          ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:783: recipe for target 'util/libucm_la-reloc.lo' failed
make[3]: *** [util/libucm_la-reloc.lo] Error 1
make[3]: Leaving directory '/home/hiro/OpenProjects/openucx/ucx/src/ucm'
Makefile:874: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/hiro/OpenProjects/openucx/ucx/src/ucm'
Makefile:727: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/hiro/OpenProjects/openucx/ucx'
Makefile:593: recipe for target 'all' failed
make: *** [all] Error 2