Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#59245 closed defect (fixed)

redis @5.0.6 build error on mac os 10.15 Catalina with Xcode 11.0

Reported by: jonasjonas (Frank Hellenkamp) Owned by: Chris Jones <jonesc@…>
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: catalina Cc: cjones051073 (Chris Jones), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: redis

Description

Redis cannot be build:

:debug:sysinfo macOS 10.15 (darwin/19.0.0) arch i386
:debug:sysinfo MacPorts 2.6.1
:debug:sysinfo Xcode 11.0
:debug:sysinfo SDK 10.15
...skipping...
:info:build ./zmalloc.h:50:10: fatal error: 'jemalloc/jemalloc.h' file not found
:info:build #include <jemalloc/jemalloc.h>
:info:build          ^~~~~~~~~~~~~~~~~~~~~
:info:build make[1]: *** [ae.o] Error 1
:info:build make[1]: *** [sds.o] Error 1
:info:build In file included from server.c:30:
:info:build In file included from ./server.h:58:
:info:build ./zmalloc.h:50:10: fatal error: 'jemalloc/jemalloc.h' file not found
:info:build #include <jemalloc/jemalloc.h>
:info:build          ^~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build make[1]: *** [zmalloc.o] Error 1
:info:build 1 error generated.
:info:build make[1]: *** [server.o] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.or
g_release_tarballs_ports_databases_redis/redis/work/redis-5.0.6/src'

All error message are related to missing jemalloc/jemalloc.h.

Attachments (2)

redis_build.log (32.7 KB) - added by xeron (Ivan Larionov) 4 years ago.
jemalloc_config.log (8.9 KB) - added by xeron (Ivan Larionov) 4 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 5 years ago by jonasjonas (Frank Hellenkamp)

Port: redis added

comment:2 Changed 5 years ago by jonasjonas (Frank Hellenkamp)

Keywords: catalina added

comment:3 Changed 5 years ago by cjones051073 (Chris Jones)

Works fine for me, using Xcode 11.1. Please update Xcode and try again.

comment:4 Changed 5 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:5 Changed 5 years ago by cjones051073 (Chris Jones)

Summary: redis @5.0.6 build error on mac os 10.15 Catalina with Xcode 11.1redis @5.0.6 build error on mac os 10.15 Catalina with Xcode 11.0

comment:6 Changed 5 years ago by jonasjonas (Frank Hellenkamp)

I had Xcode 11.1 installed.

But today I selfupdated macports, synced the tree, and viola: redis can be build again.

Thanks!

comment:7 in reply to:  6 Changed 5 years ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed

Replying to jonasjonas:

I had Xcode 11.1 installed.

The build error above proves otherwise

:debug:sysinfo macOS 10.15 (darwin/19.0.0) arch i386
:debug:sysinfo MacPorts 2.6.1
:debug:sysinfo Xcode 11.0
:debug:sysinfo SDK 10.15

That shows, at least for the error log snippet you posted, Xcode 11.0 was used.

But today I selfupdated macports, synced the tree, and viola: redis can be build again.

Glad it now works.

comment:8 Changed 5 years ago by jonasjonas (Frank Hellenkamp)

Resolution: fixed
Status: closedreopened

Unfortunately redis (server and cli) seem to crash with "terminated by signal SIGSEGV (Address boundary error)".

It's probably related to this: https://trac.macports.org/ticket/59246

comment:9 Changed 5 years ago by cjones051073 (Chris Jones)

Please provide a complete crash report (traceback).

comment:10 Changed 5 years ago by Chris Jones <jonesc@…>

Owner: set to Chris Jones <jonesc@…>
Resolution: fixed
Status: reopenedclosed

In e35f356df49a71148c38f8531b08b8a4abee926b/macports-ports (master):

redis: Blacklist Xcode 11 clang due to 'stack-check' issue
Closes: #59245

Changed 4 years ago by xeron (Ivan Larionov)

Attachment: redis_build.log added

comment:11 Changed 4 years ago by xeron (Ivan Larionov)

Still doesn't build for me. Log attached.

Changed 4 years ago by xeron (Ivan Larionov)

Attachment: jemalloc_config.log added

comment:12 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

redis is using the command line tools, which do not have the fix yet.
There is a pull request which should fix the problem.

comment:13 Changed 4 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added
Note: See TracTickets for help on using tickets.