Opened 6 years ago

Last modified 6 years ago

#57387 closed defect

watchman 4.9.0_0 darwin_18.x86_64: bser.cpp:345:17: error: offset of on non-standard-layout type 'json_object_t' — at Version 1

Reported by: Splaktar (Michael Prentice) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: mojave Cc:
Port: watchman

Description (last modified by kencu (Ken))

  • 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.

Change History (2)

Changed 6 years ago by Splaktar (Michael Prentice)

Attachment: main.log added

build log: main.log

comment:1 Changed 6 years ago by kencu (Ken)

Cc: seanfarley removed
Description: modified (diff)
Keywords: mojave added
Owner: set to seanfarley
Status: newassigned
Summary: watchman 4.9.0_0 darwin_18.x86_64: Failed to build watchman: command execution failedwatchman 4.9.0_0 darwin_18.x86_64: bser.cpp:345:17: error: offset of on non-standard-layout type 'json_object_t'
Note: See TracTickets for help on using tickets.