-
Notifications
You must be signed in to change notification settings - Fork 29
[DHCP Test] some problems #123
Comments
@er1cthe0ne hi eric , I got a build error below. |
Hi JianWei, Can you tell me the steps/changes you have done before seeing the compile time error? The error log you shared doesn't have a lot of information, can you log into the build container, try to rebuild and get additional error logs: did you change goalstateprovisioner.proto file under /Alcor/schema/proto3 ? Also make sure you have the latest Alcor submodule code, by looking at /Alcor/schema/proto3/goalstate.proto, you should see: message GoalState {
} |
Hi Eric, The version of alcor agent is nanWu git branch. build container log: For compatibility with older versions of CMake, option is clearing the -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") The GoalState is
}` |
Hi JianWei, can you tell me what you changed in build/Dockerfile? Did you change the cmake or gcc version? These are likely the issues that produce the compile error: |
Hi eric ENV http_proxy http://70.202.1.80:3128 RUN echo "Acquire::Retries "999";" > /etc/apt/apt.conf.d/70debconf RUN apt-get update RUN apt install gnutls-bin -y RUN echo "--- installing grpc dependencies ---" && RUN apt-get install wget -y RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.2/cmake-3.18.2.tar.gz --no-check-certificate RUN git config --global http.sslVerify false COPY git/grpc /var/local/git/grpc/ this layer is consuming about 406MB, can try to optimizeRUN echo "--- installing librdkafka ---" && COPY git/cppkafka /var/local/git/cppkafka/ |
Hi JianWei, got it. I suspect the compile time error is caused by the CMake version change to 3.18.2. Can you undo that change (maybe you need to change build/Dockerfile and rebuild a new container) and see if that error goes away? It is not clear to me why we need to move to newer CMake version. The last error I saw was in the test code compile only which doesn't use the new openvswitch code. The main executable AlcorControlAgent uses the new openvswitch code but somehow it compiles okay? Maybe you can give me more information about this so that I can look into it further? |
Hi Eric |
Hi JianWei, the cmake version that comes with ubuntu:18.04 is 3.10.2. That one works just fine for openvswitch branch 2.12 and also the rest of the project. Please try to do a make clean or rebuild the build container without install CMake version 3.18.2. That's the environment we have been using for development and also our automated CI. On this default environment, if you see compile time error with the change in your branch, please try to address it or send me the error message so that I can look into it further. (going offline now ...) |
@er1cthe0ne I got the problem, the WuNan branch CMakeLists.txt is required 3.12.4 because of adding a new command 'add_compile_definitions' need higher than 3.12.4. |
yes, it is likely changed to support this "add_compile_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)" addition. That's the part I am not sure of the reason. Maybe you can backup both changes:
|
I will submit some test errors, and we can discuss here.
The text was updated successfully, but these errors were encountered: