Opened 3 years ago

Closed 22 months ago

#65162 closed defect (fixed)

redis @6.2.6_1+universal: error: cannot determine number of significant virtual address bits

Reported by: sudheerhebbale (Sudheer Hebbale) Owned by: dgilman (David Gilman)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc:
Port: redis

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installation of redis with +universal on Mac M1 fails with the following error on the terminal

Error: Failed to build redis: command execution failed   
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_redis/redis/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port redis failed

The attached log file contains the details of the error

Install with just x86_64 succeeds

Attachments (1)

main.log (79.6 KB) - added by sudheerhebbale (Sudheer Hebbale) 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

Attachment: main.log added

comment:1 Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

Description: modified (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: arm64 added; redis removed
Owner: set to dgilman
Status: newassigned
Summary: Installation of redis with +universal on Mac M1 is failingredis @6.2.6_1+universal: error: cannot determine number of significant virtual address bits
:info:build checking number of significant virtual address bits... error
:info:build configure: error: cannot determine number of significant virtual address bits
:info:build zmalloc.c:101:17: error: implicit declaration of function 'je_malloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build     void *ptr = malloc(MALLOC_MIN_SIZE(size)+PREFIX_SIZE);
:info:build                 ^
:info:build zmalloc.c:75:22: note: expanded from macro 'malloc'
:info:build #define malloc(size) je_malloc(size)
:info:build                      ^

comment:3 Changed 22 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

redis has been updated, and this issue appears fixed:

% port -v installed redis
The following ports are currently installed:
  redis @7.0.7_0+universal (active) requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64' date='2023-01-09T08:30:39-0800'

% port contents redis | grep bin/ | xargs file
/opt/local/bin/redis-benchmark: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/opt/local/bin/redis-benchmark (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-benchmark (for architecture arm64):	Mach-O 64-bit executable arm64
/opt/local/bin/redis-check-aof: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/opt/local/bin/redis-check-aof (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-check-aof (for architecture arm64):	Mach-O 64-bit executable arm64
/opt/local/bin/redis-check-rdb: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/opt/local/bin/redis-check-rdb (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-check-rdb (for architecture arm64):	Mach-O 64-bit executable arm64
/opt/local/bin/redis-cli:       Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/opt/local/bin/redis-cli (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-cli (for architecture arm64):	Mach-O 64-bit executable arm64
/opt/local/bin/redis-sentinel:  Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/opt/local/bin/redis-sentinel (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-sentinel (for architecture arm64):	Mach-O 64-bit executable arm64
/opt/local/bin/redis-server:    Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/opt/local/bin/redis-server (for architecture x86_64):	Mach-O 64-bit executable x86_64
/opt/local/bin/redis-server (for architecture arm64):	Mach-O 64-bit executable arm64
Note: See TracTickets for help on using tickets.