Hello Tim, thanks for answering. 😁

I'm using the following CMake script:

https://github.com/risoflora/libbrook/blob/new_api/cmake/BkFlags.cmake

it seems the error is related to the line 60:

[snip]
53. if (BK_PICKY_COMPILER)
54.     if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
55.         #-Wsign-conversion - needs to fix (un)signed bugs in utstring.h
56.         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra
-Wdeclaration-after-statement -Wstrict-prototypes -Wmissing-declarations
-Wredundant-decls -Wnested-externs -Winline")
57.         if (NOT ARM)
58.             set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpedantic")
59.             if (CMAKE_COMPILER_IS_GNUCC)
60.                 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wc90-c99-compat")
61.             endif ()
62.         endif ()
63.     else ()
64.         message(FATAL_ERROR "Unknown C compiler: ${CMAKE_C_COMPILER}")
65.     endif ()
66. endif ()

Now I understood why it raises "long long" error only in GCC: I'm passing
-Wc90-c99-compat for it. I've used this option just because I want to raise
"*error C++ style comments are incompatible with C90*" to avoid "*//*"
comments in my sources, but it seems GCC doesn't provide a specific option
for this checking. :-/

On Sat, Mar 24, 2018 at 5:37 AM, Tim Rühsen <tim.rueh...@gmx.de> wrote:

> Hi Silvio,
>
> On 24.03.2018 04:30, silvioprog wrote:
>
> I'm using the following compilers:
>
> 1) clang version 5.0.1-svn325091-1~exp1 (branches/release_50)
>
> 2) arm-linux-androideabi-gcc (Linaro GCC 4.7-2014.04-1~dev) 4.7.4
>
> 3) gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
>
> clang and arm-linux-androideabi-gcc compiles MHD fine, but gcc raises the
> following error:
>
>
> That version of gcc definitely understands 'long long'. So it's likely you
> have -std=c89 somewhere in your command line.
> Is that what you desperately need / want ?
>
> Regards, Tim
>

-- 
Silvio Clécio

Reply via email to