alibaba / euler

A distributed graph deep learning framework.
Apache License 2.0
2.89k stars 559 forks source link

编译出错 #311

Open beginner-fx opened 3 years ago

beginner-fx commented 3 years ago

您好,我在Ubuntu20.02,euler2.0上执行build.sh时报错如下,请问要怎么解决? [ 24%] Performing build step for 'jemalloc' src/jemalloc.c:2513:7: warning: ‘libc_calloc’ specifies less restrictive attributes than its target ‘calloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2513 | void *libc_calloc(size_t n, size_t size) PREALIAS(je_calloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:542:14: note: ‘libc_calloc’ target declared here 542 | extern void *calloc (size_t nmemb, size_t size) | ^~ src/jemalloc.c:2528:7: warning: ‘libc_valloc’ specifies less restrictive attributes than its target ‘valloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2528 | void libc_valloc(size_t size) PREALIAS(je_valloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:574:14: note: ‘libc_valloc’ target declared here 574 | extern void valloc (size_t size) THROW attribute_malloc | ^~ src/jemalloc.c:2525:7: warning: ‘libc_realloc’ specifies less restrictive attributes than its target ‘realloc’: ‘ alloc_size’, ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2525 | void __libc_realloc(void ptr, size_t size) PREALIAS(je_realloc); | ^~~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:550:14: note: ‘__libc_realloc’ target declared here 550 | extern void realloc (void ptr, size_t size) | ^~~ src/jemalloc.c:2522:7: warning: ‘libc_memalign’ specifies less restrictive attributes than its target ‘memalign’: ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2522 | void __libc_memalign(size_t align, size_t s) PREALIAS(je_memalign); | ^~~~~~~ In file included from include/jemalloc/internal/jemalloc_preamble.h:21, from src/jemalloc.c:2: include/jemalloc/internal/../jemalloc.h:79:23: note: ‘libc_memalign’ target declared here 79 | # define je_memalign memalign | ^~~~ src/jemalloc.c:2419:1: note: in expansion of macro ‘je_memalign’ 2419 | je_memalign(size_t alignment, size_t size) { | ^~~ src/jemalloc.c:2519:7: warning: ‘libc_malloc’ specifies less restrictive attributes than its target ‘malloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2519 | void libc_malloc(size_t size) PREALIAS(je_malloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:539:14: note: ‘libc_malloc’ target declared here 539 | extern void malloc (size_t size) THROW attribute_malloc | ^~ src/jemalloc.c:2516:6: warning: ‘libc_free’ specifies less restrictive attributes than its target ‘free’: ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2516 | void libc_free(void ptr) PREALIAS(je_free); | ^~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:565:13: note: ‘libc_free’ target declared here 565 | extern void free (void ptr) THROW; | ^~~~ src/malloc_io.c: In function ‘malloc_vsnprintf’: src/malloc_io.c:369:2: warning: case label value exceeds maximum value for type 369 | case '?' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:387:2: warning: case label value exceeds maximum value for type 387 | case 'j' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:375:2: warning: case label value exceeds maximum value for type 375 | case 'l' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:381:2: warning: case label value exceeds maximum value for type 381 | case 'q' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:396:2: warning: case label value exceeds maximum value for type 396 | case 'z' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ cp include/jemalloc/internal/private_namespace.gen.h include/jemalloc/internal/private_namespace.gen.h src/jemalloc.c:2513:7: warning: ‘__libc_calloc’ specifies less restrictive attributes than its target ‘calloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2513 | void __libc_calloc(size_t n, size_t size) PREALIAS(je_calloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:542:14: note: ‘libc_calloc’ target declared here 542 | extern void calloc (size_t __nmemb, size_t size) | ^~ src/jemalloc.c:2528:7: warning: ‘libc_valloc’ specifies less restrictive attributes than its target ‘valloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2528 | void libc_valloc(size_t size) PREALIAS(je_valloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:574:14: note: ‘libc_valloc’ target declared here 574 | extern void valloc (size_t size) THROW __attribute_malloc | ^~ src/jemalloc.c:2525:7: warning: ‘libc_realloc’ specifies less restrictive attributes than its target ‘realloc’: ‘ alloc_size’, ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2525 | void libc_realloc(void* ptr, size_t size) PREALIAS(je_realloc); | ^~~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:550:14: note: ‘libc_realloc’ target declared here 550 | extern void realloc (void ptr, size_t size) | ^~~ src/jemalloc.c:2522:7: warning: ‘libc_memalign’ specifies less restrictive attributes than its target ‘memalign’: ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2522 | void *libc_memalign(size_t align, size_t s) PREALIAS(je_memalign); | ^~~~~~~ In file included from include/jemalloc/internal/jemalloc_preamble.h:21, from src/jemalloc.c:2: include/jemalloc/internal/../jemalloc.h:79:23: note: ‘libc_memalign’ target declared here 79 | # define je_memalign memalign | ^~~~ src/jemalloc.c:2419:1: note: in expansion of macro ‘je_memalign’ 2419 | je_memalign(size_t alignment, size_t size) { | ^~~ src/jemalloc.c:2519:7: warning: ‘libc_malloc’ specifies less restrictive attributes than its target ‘malloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2519 | void libc_malloc(size_t size) PREALIAS(je_malloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:539:14: note: ‘libc_malloc’ target declared here 539 | extern void malloc (size_t size) THROW attribute_malloc | ^~ src/jemalloc.c:2516:6: warning: ‘libc_free’ specifies less restrictive attributes than its target ‘free’: ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2516 | void libc_free(void ptr) PREALIAS(je_free); | ^~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:565:13: note: ‘__libc_free’ target declared here 565 | extern void free (void ptr) THROW; | ^~~~ src/jemalloc.c:2513:7: warning: ‘libc_calloc’ specifies less restrictive attributes than its target ‘calloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2513 | void *libc_calloc(size_t n, size_t size) PREALIAS(je_calloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:542:14: note: ‘libc_calloc’ target declared here 542 | extern void *calloc (size_t nmemb, size_t size) | ^~ src/jemalloc.c:2528:7: warning: ‘libc_valloc’ specifies less restrictive attributes than its target ‘valloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2528 | void libc_valloc(size_t size) PREALIAS(je_valloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:574:14: note: ‘libc_valloc’ target declared here 574 | extern void valloc (size_t size) THROW attribute_malloc | ^~ src/jemalloc.c:2525:7: warning: ‘libc_realloc’ specifies less restrictive attributes than its target ‘realloc’: ‘ alloc_size’, ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2525 | void __libc_realloc(void ptr, size_t size) PREALIAS(je_realloc); | ^~~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:550:14: note: ‘__libc_realloc’ target declared here 550 | extern void realloc (void ptr, size_t size) | ^~~ src/jemalloc.c:2522:7: warning: ‘libc_memalign’ specifies less restrictive attributes than its target ‘memalign’: ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2522 | void __libc_memalign(size_t align, size_t s) PREALIAS(je_memalign); | ^~~~~~~ In file included from include/jemalloc/internal/jemalloc_preamble.h:21, from src/jemalloc.c:2: include/jemalloc/internal/../jemalloc.h:79:23: note: ‘libc_memalign’ target declared here 79 | # define je_memalign memalign | ^~~~ src/jemalloc.c:2419:1: note: in expansion of macro ‘je_memalign’ 2419 | je_memalign(size_t alignment, size_t size) { | ^~~ src/jemalloc.c:2519:7: warning: ‘libc_malloc’ specifies less restrictive attributes than its target ‘malloc’: ‘alloc_size’, ‘leaf’, ‘malloc’, ‘nothrow’ [-Wmissing-attributes] 2519 | void libc_malloc(size_t size) PREALIAS(je_malloc); | ^~~~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:539:14: note: ‘libc_malloc’ target declared here 539 | extern void malloc (size_t size) THROW attribute_malloc | ^~ src/jemalloc.c:2516:6: warning: ‘libc_free’ specifies less restrictive attributes than its target ‘free’: ‘leaf’, ‘nothrow’ [-Wmissing-attributes] 2516 | void libc_free(void ptr) PREALIAS(je_free); | ^~~ In file included from include/jemalloc/internal/jemalloc_internal_decls.h:60, from include/jemalloc/internal/jemalloc_preamble.h:5, from src/jemalloc.c:2: /usr/include/stdlib.h:565:13: note: ‘__libc_free’ target declared here 565 | extern void free (void *ptr) THROW; | ^~~~ src/malloc_io.c: In function ‘je_malloc_vsnprintf’: src/malloc_io.c:369:2: warning: case label value exceeds maximum value for type 369 | case '?' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:387:2: warning: case label value exceeds maximum value for type 387 | case 'j' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:375:2: warning: case label value exceeds maximum value for type 375 | case 'l' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:381:2: warning: case label value exceeds maximum value for type 381 | case 'q' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:396:2: warning: case label value exceeds maximum value for type 396 | case 'z' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c: In function ‘je_malloc_vsnprintf’: src/malloc_io.c:369:2: warning: case label value exceeds maximum value for type 369 | case '?' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:387:2: warning: case label value exceeds maximum value for type 387 | case 'j' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:375:2: warning: case label value exceeds maximum value for type 375 | case 'l' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:381:2: warning: case label value exceeds maximum value for type 381 | case 'q' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ src/malloc_io.c:396:2: warning: case label value exceeds maximum value for type 396 | case 'z' | 0x80: \ | ^~~~ src/malloc_io.c:581:5: note: in expansion of macro ‘GET_ARG_NUMERIC’ 581 | GET_ARG_NUMERIC(val, 'p'); | ^~~~~~~ ar: u' modifier ignored sinceD' is the default (see U') ar:u' modifier ignored since D' is the default (seeU') [ 24%] Performing install step for 'jemalloc' Skipping install step. [ 24%] Completed 'jemalloc' [ 24%] Built target jemalloc make: *** [Makefile:160: all] Error 2

soodoshll commented 2 years ago

Same problem