-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Building the do agent on Ubuntu 20.04 fails.
Steps to reproduce:
- Run a fresh Ubuntu 20.04, clone the project
- Run build/boostrap.sh, fix any errors as per build/boostrap.sh lacks execute permissions and has several errors on Ubuntu 20.04 #58
- Run
python3 build/build.py --project agent --package-for deb
The following error is thrown:
[2/32] Building CXX object client-lite/CMakeFiles/docs_common.dir/src/threading/task_thread.cpp.o
FAILED: client-lite/CMakeFiles/docs_common.dir/src/threading/task_thread.cpp.o
/usr/bin/c++ -DBOOST_ALL_DYN_LINK=1 -DDO_AGENT_LOG_DIRECTORY_PATH=\"/var/log/deliveryoptimization-agent\" -DDO_CONFIG_DIRECTORY_PATH=\"/etc/deliveryoptimization-agent\" -DDO_PROXY_SUPPORT -DDO_RUN_DIRECTORY_PATH=\"/var/run/deliveryoptimization-agent\" -I/home/azureuser/do-client/client-lite/src/config -I/home/azureuser/do-client/client-lite/src/download -I/home/azureuser/do-client/client-lite/src/include -I/home/azureuser/do-client/client-lite/src/ipc -I/home/azureuser/do-client/client-lite/src/threading -I/home/azureuser/do-client/client-lite/src/trace -I/home/azureuser/do-client/client-lite/src/util -Wall -fPIE -pie -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -fmerge-all-constants -Wno-noexcept-type -g -DDEBUG -fPIC -std=c++14 -MD -MT client-lite/CMakeFiles/docs_common.dir/src/threading/task_thread.cpp.o -MF client-lite/CMakeFiles/docs_common.dir/src/threading/task_thread.cpp.o.d -o client-lite/CMakeFiles/docs_common.dir/src/threading/task_thread.cpp.o -c /home/azureuser/do-client/client-lite/src/threading/task_thread.cpp
In file included from /home/azureuser/do-client/client-lite/src/include/do_common.h:43,
from /home/azureuser/do-client/client-lite/src/threading/task_thread.cpp:1:
/home/azureuser/do-client/client-lite/src/threading/task_thread.h: In member function ‘void TaskThread::SchedReplace(TLambda&&, TDuration, const void*)’:
/home/azureuser/do-client/client-lite/src/include/do_assert.h:10:9: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available [-fpermissive]
10 | assert(_exp), TRUE \
| ^~~~~~
/home/azureuser/do-client/client-lite/src/include/do_assert.h:19:29: note: in expansion of macro ‘DO_ASSERTMSG’
19 | #define DO_ASSERT(_exp) DO_ASSERTMSG("Failed", _exp)
| ^~~~~~~~~~~~
/home/azureuser/do-client/client-lite/src/threading/task_thread.h:51:9: note: in expansion of macro ‘DO_ASSERT’
51 | DO_ASSERT(tag != nullptr);
| ^~~~~~~~~
/home/azureuser/do-client/client-lite/src/include/do_assert.h:10:9: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
10 | assert(_exp), TRUE \
| ^~~~~~
/home/azureuser/do-client/client-lite/src/include/do_assert.h:19:29: note: in expansion of macro ‘DO_ASSERTMSG’
19 | #define DO_ASSERT(_exp) DO_ASSERTMSG("Failed", _exp)
| ^~~~~~~~~~~~
/home/azureuser/do-client/client-lite/src/threading/task_thread.h:51:9: note: in expansion of macro ‘DO_ASSERT’
51 | DO_ASSERT(tag != nullptr);
| ^~~~~~~~~
[3/32] Building CXX object client-lite/CMakeFiles/docs_common.dir/src/threading/task_queue.cpp.o
ninja: build stopped: subcommand failed.
Running cmake --build /tmp/build-deliveryoptimization-agent/linux-debug --target all failed. Rethrowing exception
Traceback (most recent call last):
File "build/build.py", line 523, in <module>
main()
File "build/build.py", line 33, in main
build.run()
File "build/build.py", line 211, in run
self.build()
File "build/build.py", line 323, in build
run_command(build_command)
File "build/build.py", line 486, in run_command
_check_call(command)
File "build/build.py", line 510, in _check_call
subprocess.check_call(
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '/tmp/build-deliveryoptimization-agent/linux-debug', '--target', 'all']' returned non-zero exit status 1.
Metadata
Metadata
Assignees
Labels
No labels