You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I close this issue, because it does not affect the code as such. I also added a note to the README file that the unit tests cannot be compiled using GCC 4.8.
Sorry, I am not familiar with bazel. But the library is a single header, so you just need to include it in your code - there is no need to compile the unit tests at all.
Activity
nlohmann commentedon Aug 11, 2015
I'll check this. If I remember correctly, this error occurs in the following constellation:
If you cannot compile the unit tests, the library will still work. I'll check if there is anything I can do to fix this.
benloong commentedon Oct 21, 2015
this is a gcc bug Preprocessor macros with C++11 raw string literals fail to compile
no error using gcc 4.9 with c++11
added a comment (see #109)
nlohmann commentedon Dec 7, 2015
I close this issue, because it does not affect the code as such. I also added a note to the README file that the unit tests cannot be compiled using GCC 4.8.
goswamig commentedon Jul 18, 2018
@nlohmann What is the way to bypass the unit test compilation ?
nlohmann commentedon Jul 18, 2018
You can pass
-DJSON_BuildTests=OFFto CMake.goswamig commentedon Jul 18, 2018
Thanks.
goswamig commentedon Jul 18, 2018
?Can I try this in bazel build
nlohmann commentedon Jul 18, 2018
I do not know what you mean.
goswamig commentedon Jul 18, 2018
I am running build like below
export TF_NEED_GCP="0"
TF_NEED_HDFS="0"
GCC_HOST_COMPILER_PATH="/usr/bin/gcc"
TF_NEED_OPENCL="0"
CUDA_TOOLKIT_PATH="/usr/local/cuda-9.0"
TF_CUDA_COMPUTE_CAPABILITIES="3.0,3.5,5.2,7.0"
CUDNN_INSTALL_PATH="/usr/local/cuda-9.0"
TF_NEED_CUDA="1" TF_ENABLE_XLA="0"
PYTHON_BIN_PATH="/home/ec2-user/anaconda3/envs/tensorflow_p27/bin/python" TF_CUDNN_VERSION="7"
TF_NEED_JEMALLOC="0"
TF_CUDA_VERSION="9.0"
TF_UNOFFICIAL_SETTING="1"
bazel build -c opt --copt=-msse4.1 --copt=-msse4.2 --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-O3 --verbose_failures tensorflow_serving/...
nlohmann commentedon Jul 19, 2018
Sorry, I am not familiar with bazel. But the library is a single header, so you just need to include it in your code - there is no need to compile the unit tests at all.
Fix datetime-import for validators (nlohmann#109)
Fix datetime-import for validators (nlohmann#109)