This repository was archived by the owner on Jun 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Compile error on Apple M1 Chip running as Rosetta2 x86 #1997
Copy link
Copy link
Open
Description
Sorry, I'm totally newbie to this repo and probably I event don't know what I'm talking about, but just wanted to put this log here so if anyone encounter this issue its not the only one. I tried to search about this error and nothing specific.
The device I'm using is Apple MacBook Air M1 chip, I know lots of errors on this device just it happens to be me on this specific one error.
Trying to install jemalloc package with homebrew and cause a compile error.
This log is from homebrew, you probably can reproduce the issue by running this cmd $arch -x86_64 brew install jemalloc
patching file include/jemalloc/jemalloc_macros.h.in
Hunk #1 succeeded at 127 (offset -7 lines).
patching file include/jemalloc/jemalloc_protos.h.in
==> ./configure --prefix=/usr/local/homebrew/Cellar/jemalloc/5.2.1_1 --with-jemalloc-prefix=
==> make
Last 15 lines from /Users/kushtrim/Library/Logs/Homebrew/jemalloc/02.make:
#define RTREE_NSB (LG_VADDR - RTREE_NLIB)
^~~~~~~~~~~~~~~~~~~~~~~
include/jemalloc/internal/rtree.h:98:3: note: insert an explicit cast to silence this issue
{RTREE_NSB, RTREE_NHIB + RTREE_NSB}
^~~~~~~~~
static_cast<unsigned int>( )
include/jemalloc/internal/rtree.h:22:19: note: expanded from macro 'RTREE_NSB'
#define RTREE_NSB (LG_VADDR - RTREE_NLIB)
^~~~~~~~~~~~~~~~~~~~~~~
clang -std=gnu11 -Wall -Wextra -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -O3 -funroll-loops -c -D_REENTRANT -Iinclude -Iinclude -o src/base.o src/base.c
clang -std=gnu11 -Wall -Wextra -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -O3 -funroll-loops -c -D_REENTRANT -Iinclude -Iinclude -o src/bin.o src/bin.c
clang -std=gnu11 -Wall -Wextra -Wshorten-64-to-32 -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -O3 -funroll-loops -c -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.o src/bitmap.c
1 error generated.
make: *** [src/jemalloc_cpp.pic.o] Error 1
make: *** Waiting for unfinished jobs....
bmulholland and sly-x86
Metadata
Metadata
Assignees
Labels
No labels