varlink / libvarlink

C implementation of the Varlink protocol and command line tool
Apache License 2.0
87 stars 15 forks source link

Failed to build on MacOS #17

Closed shaneing closed 4 years ago

shaneing commented 4 years ago

What happened

An error occurred when I run make build:

Build started at 2020-01-24T23:57:56.374049
Main binary: /usr/local/opt/python/bin/python3.7
Build Options:
Python system: Darwin
The Meson build system
Version: 0.53.0
Source dir: /Users/shaneing/local/libvarlink/libvarlink
Build dir: /Users/shaneing/local/libvarlink/libvarlink/build
Build type: native build
Project name: libvarlink
Project version: 18
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.c -o /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.exe -pipe
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.16)")
C linker for the build machine: cc APPLE ld 530
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.c -o /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.exe -pipe
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command: /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (clang 11.0.0 "Apple clang version 11.0.0 (clang-1100.0.33.16)")
C linker for the host machine: cc APPLE ld 530
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Running compile:
Working directory:  /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpiiit8w7y
Command line:  cc /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpiiit8w7y/testfile.c -o /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpiiit8w7y/output.exe -pipe -O0 -lm -Wl,-undefined,dynamic_lookup

Code:
 int main(void) { return 0; }
Compiler stdout:

Compiler stderr:

Library m found: YES
Configuring config.h using configuration
Program ./varlink-wrapper.py found: YES (/Users/shaneing/local/libvarlink/libvarlink/./varlink-wrapper.py)
Configuring libvarlink.pc using configuration
Adding test "test-interface"
Adding test "test-server-client"
Adding test "test-object"
Adding test "test-array"
Adding test "test-type"
Adding test "test-error"
Adding test "test-avl"
Program test-symbols.sh found: YES (/Users/shaneing/local/libvarlink/libvarlink/lib/test-symbols.sh)
Adding test "test-symbols"
Program git found: YES (/usr/bin/git)
Running command: /usr/bin/git --git-dir=/Users/shaneing/local/libvarlink/libvarlink/.git ls-files :/*.[ch]
--- stdout ---
lib/array.c
lib/array.h
lib/avltree.c
lib/avltree.h
lib/connection.c
lib/connection.h
lib/error.c
lib/interface.c
lib/interface.h
lib/message.c
lib/message.h
lib/object.c
lib/object.h
lib/scanner.c
lib/scanner.h
lib/service.c
lib/service.h
lib/stream.c
lib/stream.h
lib/test-array.c
lib/test-avl.c
lib/test-error.c
lib/test-interface.c
lib/test-object.c
lib/test-server-client.c
lib/test-type.c
lib/transport-device.c
lib/transport-tcp.c
lib/transport-unix.c
lib/transport.c
lib/transport.h
lib/type.c
lib/type.h
lib/uri.c
lib/uri.h
lib/util.c
lib/util.h
lib/value.c
lib/value.h
lib/varlink.h
tool/cli-activate.c
tool/cli-bridge.c
tool/cli.c
tool/cli.h
tool/command-bridge.c
tool/command-call.c
tool/command-complete.c
tool/command-format.c
tool/command-help.c
tool/command-info.c
tool/command-resolve.c
tool/command.c
tool/command.h
tool/main.c
tool/terminal-colors.c
tool/terminal-colors.h

--- stderr ---

Build targets in project: 13

Found ninja-1.9.0 at /usr/local/bin/ninja
Running compile:
Working directory:  /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpr_uj9ea3
Command line:  cc /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpr_uj9ea3/testfile.c -o /Users/shaneing/local/libvarlink/libvarlink/build/meson-private/tmpr_uj9ea3/output.obj -pipe -c -O0 --print-search-dirs

Code:

Compiler stdout:
 programs: =/Library/Developer/CommandLineTools/usr/bin
libraries: =/Library/Developer/CommandLineTools/usr/lib/clang/11.0.0

Compiler stderr:

ERROR: Multiple producers for Ninja target "ctags". Please rename your targets.
haraldh commented 4 years ago

macos has no epoll... libvarlink is only tested on linux

shaneing commented 4 years ago

macos has no epoll... libvarlink is only tested on linux

ok, I get it.