Skip to content

Building on FreeBSD 10.1 fails. #6

@jevonearth

Description

@jevonearth

While trying to build client or server on a FreeBSD 10.1 host, both fail with error error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'?

Server

[freebsd@dbbench ~/bruce]$ source bash_defs
[freebsd@dbbench ~/bruce]$ cd src/bruce/
[freebsd@dbbench ~/bruce/src/bruce]$ build --release bruce
scons: Entering directory `/usr/home/freebsd/bruce'
c++ -o out/release/base/backoff_rate_limiter.o -c -std=c++11 -Wold-style-cast -Wall -Wextra -Werror -Wformat=2 -Winit-self -Wunused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wlogical-op -O2 -DNDEBUG -Wno-unused -Wno-unused-parameter -flto -fvisibility=hidden -DSRC_ROOT='"/usr/home/freebsd/bruce/src"' -Isrc -Isrc/third_party/tclap-1.2.0/include src/base/backoff_rate_limiter.cc
error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'?
      [-Werror,-Wunknown-warning-option]
scons: *** [out/release/base/backoff_rate_limiter.o] Error 1
[freebsd@dbbench ~/bruce/src/bruce]$

Client

[freebsd@dbbench ~/bruce]$ source bash_defs
[freebsd@dbbench ~/bruce]$ cd src/bruce/client/
[freebsd@dbbench ~/bruce/src/bruce/client]$ build --release libbruce_client.so
scons: Entering directory `/usr/home/freebsd/bruce'
cc -o out/release/bruce/client/libbruce_client.os -c -Wwrite-strings -Wall -Wextra -Werror -Wformat=2 -Winit-self -Wunused-parameter -Wshadow -Wpointer-arith -Wcast-align -Wlogical-op -O2 -DNDEBUG -Wno-unused -Wno-unused-parameter -flto -fvisibility=hidden -fPIC -DSRC_ROOT='"/usr/home/freebsd/bruce/src"' -Isrc -Isrc/third_party/tclap-1.2.0/include src/bruce/client/libbruce_client.c
error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'?
      [-Werror,-Wunknown-warning-option]
scons: *** [out/release/bruce/client/libbruce_client.os] Error 1
[freebsd@dbbench ~/bruce/src/bruce/client]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions