Dou*_*son 5 linux mongodb busybox alpine-linux
我正在尝试在 Alpine Linux 上编译 Mongo。
有人知道如何克服这个错误吗?
In file included from src/mongo/util/net/socket_poll.h:20:0,
from src/mongo/util/net/sock.cpp:42:
/usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
cc1plus: all warnings being treated as errors
scons: *** [build/linux2/normal/mongo/util/net/sock.o] Error 1
scons: building terminated because of errors.
Run Code Online (Sandbox Code Playgroud)
这是由于构建系统添加了一个-Werror
标志,因此编译器将警告视为错误并使构建失败。
您可能可以使用临时 --disable-warnings-as-errors
标志来跳过此步骤。
归档时间: |
|
查看次数: |
2544 次 |
最近记录: |