编译出错
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
您好,我在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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with build.sh and the complete build output around the jemalloc build step on Ubuntu 20.02 with euler2.0. Determine whether the listed jemalloc messages are warnings or the actual failure, then reproduce the build and document a successful build as the done condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, shell, ubuntu
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100