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

编译出错 #311

Open
beginner-fx opened this issue Sep 23, 2020 · 1 comment
Open

编译出错 #311

beginner-fx opened this issue Sep 23, 2020 · 1 comment

Comments

@beginner-fx
Copy link

您好,我在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 since D' is the default (see U') ar: u' modifier ignored since D' is the default (see U')
[ 24%] Performing install step for 'jemalloc'
Skipping install step.
[ 24%] Completed 'jemalloc'
[ 24%] Built target jemalloc
make: *** [Makefile:160: all] Error 2

@soodoshll
Copy link

Same problem

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

2 participants