[MacPorts] #57387: watchman 4.9.0_0 darwin_18.x86_64: bser.cpp:345:17: error: offset of on non-standard-layout type 'json_object_t' (was: watchman 4.9.0_0 darwin_18.x86_64: Failed to build watchman: command execution failed)

MacPorts noreply at macports.org
Mon Oct 15 00:18:16 UTC 2018


#57387: watchman 4.9.0_0 darwin_18.x86_64: bser.cpp:345:17: error: offset of on
non-standard-layout type 'json_object_t'
-----------------------+------------------------
  Reporter:  Splaktar  |      Owner:  seanfarley
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.5.4
Resolution:            |   Keywords:  mojave
      Port:  watchman  |
-----------------------+------------------------
Changes (by kencu):

 * status:  new => assigned
 * cc: seanfarley (removed)
 * owner:  (none) => seanfarley
 * keywords:   => mojave


Old description:

> - macOS: 10.14 (18A391)
> - xcode: 10.0 (10A255)
>
> Followed https://trac.macports.org/wiki/Migration after upgrading to
> Mojave.
>
> Running {{{xargs sudo port setrequested < requested.txt}}} gives:
> {{{Error: Registry error: watchman not registered as installed.}}}
>
> Running {{{sudo port install watchman}}} gives:
> {{{
> --->  Computing dependencies for watchman
> --->  Fetching archive for watchman
> --->  Attempting to fetch watchman-4.9.0_0.darwin_18.x86_64.tbz2 from
> https://packages.macports.org/watchman
> --->  Attempting to fetch watchman-4.9.0_0.darwin_18.x86_64.tbz2 from
> http://sea.us.packages.macports.org/macports/packages/watchman
> --->  Attempting to fetch watchman-4.9.0_0.darwin_18.x86_64.tbz2 from
> http://lil.fr.packages.macports.org/watchman
> --->  Fetching distfiles for watchman
> --->  Verifying checksums for watchman
> --->  Extracting watchman
> --->  Configuring watchman
> --->  Building watchman
> Error: Failed to build watchman: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_watchman/watchman/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port watchman failed
> }}}

New description:

 - macOS: 10.14 (18A391)
 - xcode: 10.0 (10A255)

 {{{
 571     :info:build /usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I.
 -I./thirdparty/jansson -I./thirdparty/jansson -Werror -I/opt/local/include
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
 -I/opt/local/include  -pipe -Os -stdlib=libc++
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -arch x86_64 -Wall -Wextra -g -gdwarf-2 -fno-omit-frame-pointer -MT
 watchman-opendir.o -MD -MP -MF .deps/watchman-opendir.Tpo -c -o watchman-
 opendir.o `test -f 'opendir.cpp' || echo './'`opendir.cpp
 572     :info:build bser.cpp:345:17: error: offset of on non-standard-
 layout type 'json_object_t' [-Werror,-Winvalid-offsetof]
 573     :info:build   auto object = json_to_object(obj);
 574     :info:build                 ^~~~~~~~~~~~~~~~~~~
 575     :info:build ./thirdparty/jansson/jansson_private.h:71:32: note:
 expanded from macro 'json_to_object'
 576     :info:build #define json_to_object(json_)
 container_of((json_t*)json_, json_object_t, json)
 577     :info:build                                ^
 ~~~~
 578     :info:build ./thirdparty/jansson/jansson_private.h:19:31: note:
 expanded from macro 'container_of'
 579     :info:build     ((type_ *)((char *)ptr_ - offsetof(type_,
 member_)))
 580     :info:build                               ^               ~~~~~~~
 581     :info:build
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include/stddef.h:120:24:
 note: expanded from macro 'offsetof'
 582     :info:build #define offsetof(t, d) __builtin_offsetof(t, d)
 583     :info:build                        ^                     ~
 584     :info:build 1 error generated.
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/57387#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list