You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by dk...@apache.org on 2020/05/15 17:55:25 UTC

[avro] branch master updated: AVRO-2668: Build failure without a C++ compiler

This is an automated email from the ASF dual-hosted git repository.

dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/master by this push:
     new 414a51f  AVRO-2668: Build failure without a C++ compiler
414a51f is described below

commit 414a51fdc1856083bb16851f09a4c61a48796132
Author: Fabrice Fontaine <fo...@gmail.com>
AuthorDate: Mon Dec 30 12:32:20 2019 +0100

    AVRO-2668: Build failure without a C++ compiler
    
    Specify that AvroC is a C project and remove tests_cpp.cpp to avoid the
    following build failure if a C++ compiler is not found:
    
    CMake Error at CMakeLists.txt:20 (project):
      The CMAKE_CXX_COMPILER:
    
        /home/naourr/work/instance-2/output-1/host/bin/microblazeel-buildroot-linux-uclibc-g++
    
      is not a full path to an existing compiler tool.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.
    
    Fixes:
     - http://autobuild.buildroot.org/results/135e246aa70f28c6b9aea5fd6b0eb9c7b45ebfe7
    
    Signed-off-by: Fabrice Fontaine <fo...@gmail.com>
---
 lang/c/CMakeLists.txt       |  2 +-
 lang/c/tests/CMakeLists.txt |  1 -
 lang/c/tests/test_cpp.cpp   | 27 ---------------------------
 3 files changed, 1 insertion(+), 29 deletions(-)

diff --git a/lang/c/CMakeLists.txt b/lang/c/CMakeLists.txt
index 11cbf01..b75418c 100644
--- a/lang/c/CMakeLists.txt
+++ b/lang/c/CMakeLists.txt
@@ -17,7 +17,7 @@
 # under the License.
 #
 cmake_minimum_required(VERSION 2.4)
-project(AvroC)
+project(AvroC C)
 enable_testing()
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
diff --git a/lang/c/tests/CMakeLists.txt b/lang/c/tests/CMakeLists.txt
index b9e8fe1..2e84a06 100644
--- a/lang/c/tests/CMakeLists.txt
+++ b/lang/c/tests/CMakeLists.txt
@@ -81,7 +81,6 @@ add_avro_test_checkmem(test_avro_1405)
 add_avro_test_checkmem(test_avro_1572)
 add_avro_test(test_avro_data) # Skip memory check for datum. Deprecated and has a lot of memory issues
 add_avro_test_checkmem(test_refcount)
-add_avro_test_checkmem(test_cpp test_cpp.cpp)
 add_avro_test_checkmem(test_avro_1379)
 add_avro_test_checkmem(test_avro_1691)
 add_avro_test_checkmem(test_avro_1906)
diff --git a/lang/c/tests/test_cpp.cpp b/lang/c/tests/test_cpp.cpp
deleted file mode 100644
index 13f98a9..0000000
--- a/lang/c/tests/test_cpp.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to you under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.  See the License for the specific language governing
- * permissions and limitations under the License.
- */
-
-#include "avro.h"
-
-int main(int argc, char **argv)
-{
-    (void)argc;
-    (void)argv;
-
-	return 0;
-}
-