Skip to content

Instantly share code, notes, and snippets.

@iCodeSometime
Created June 27, 2018 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iCodeSometime/5d3ce6d4b90fadb16a6a9f3da8840d9b to your computer and use it in GitHub Desktop.
Save iCodeSometime/5d3ce6d4b90fadb16a6a9f3da8840d9b to your computer and use it in GitHub Desktop.
Full Compiler output for cJSON compilation
build git:(long-long-fix) cmake .. && make
-- The C compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test FLAG_SUPPORTED_stdc89
-- Performing Test FLAG_SUPPORTED_stdc89 - Success
-- Performing Test FLAG_SUPPORTED_pedantic
-- Performing Test FLAG_SUPPORTED_pedantic - Success
-- Performing Test FLAG_SUPPORTED_Wall
-- Performing Test FLAG_SUPPORTED_Wall - Success
-- Performing Test FLAG_SUPPORTED_Wextra
-- Performing Test FLAG_SUPPORTED_Wextra - Success
-- Performing Test FLAG_SUPPORTED_Werror
-- Performing Test FLAG_SUPPORTED_Werror - Success
-- Performing Test FLAG_SUPPORTED_Wstrictprototypes
-- Performing Test FLAG_SUPPORTED_Wstrictprototypes - Success
-- Performing Test FLAG_SUPPORTED_Wwritestrings
-- Performing Test FLAG_SUPPORTED_Wwritestrings - Success
-- Performing Test FLAG_SUPPORTED_Wshadow
-- Performing Test FLAG_SUPPORTED_Wshadow - Success
-- Performing Test FLAG_SUPPORTED_Winitself
-- Performing Test FLAG_SUPPORTED_Winitself - Success
-- Performing Test FLAG_SUPPORTED_Wcastalign
-- Performing Test FLAG_SUPPORTED_Wcastalign - Success
-- Performing Test FLAG_SUPPORTED_Wformat2
-- Performing Test FLAG_SUPPORTED_Wformat2 - Success
-- Performing Test FLAG_SUPPORTED_Wmissingprototypes
-- Performing Test FLAG_SUPPORTED_Wmissingprototypes - Success
-- Performing Test FLAG_SUPPORTED_Wstrictoverflow2
-- Performing Test FLAG_SUPPORTED_Wstrictoverflow2 - Success
-- Performing Test FLAG_SUPPORTED_Wcastqual
-- Performing Test FLAG_SUPPORTED_Wcastqual - Success
-- Performing Test FLAG_SUPPORTED_Wundef
-- Performing Test FLAG_SUPPORTED_Wundef - Success
-- Performing Test FLAG_SUPPORTED_Wswitchdefault
-- Performing Test FLAG_SUPPORTED_Wswitchdefault - Success
-- Performing Test FLAG_SUPPORTED_Wconversion
-- Performing Test FLAG_SUPPORTED_Wconversion - Success
-- Performing Test FLAG_SUPPORTED_Wccompat
-- Performing Test FLAG_SUPPORTED_Wccompat - Success
-- Performing Test FLAG_SUPPORTED_fstackprotectorstrong
-- Performing Test FLAG_SUPPORTED_fstackprotectorstrong - Success
-- Performing Test FLAG_SUPPORTED_Wcomma
-- Performing Test FLAG_SUPPORTED_Wcomma - Success
-- Performing Test FLAG_SUPPORTED_Wdoublepromotion
-- Performing Test FLAG_SUPPORTED_Wdoublepromotion - Success
-- Performing Test FLAG_SUPPORTED_Wparentheses
-- Performing Test FLAG_SUPPORTED_Wparentheses - Success
-- Performing Test FLAG_SUPPORTED_Wformatoverflow
-- Performing Test FLAG_SUPPORTED_Wformatoverflow - Failed
-- Performing Test FLAG_SUPPORTED_Wunusedmacros
-- Performing Test FLAG_SUPPORTED_Wunusedmacros - Success
-- Performing Test FLAG_SUPPORTED_Wmissingvariabledeclarations
-- Performing Test FLAG_SUPPORTED_Wmissingvariabledeclarations - Success
-- Performing Test FLAG_SUPPORTED_Wusedbutmarkedunused
-- Performing Test FLAG_SUPPORTED_Wusedbutmarkedunused - Success
-- Performing Test FLAG_SUPPORTED_Wswitchenum
-- Performing Test FLAG_SUPPORTED_Wswitchenum - Success
-- Performing Test FLAG_SUPPORTED_fvisibilityhidden
-- Performing Test FLAG_SUPPORTED_fvisibilityhidden - Success
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
cjson
unity
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/kennethcochran/programming/libsource/cJSON/build
Scanning dependencies of target cjson
[ 2%] Building C object CMakeFiles/cjson.dir/cJSON.c.o
[ 5%] Linking C shared library libcjson.dylib
[ 5%] Built target cjson
Scanning dependencies of target cJSON_test
[ 7%] Building C object CMakeFiles/cJSON_test.dir/test.c.o
[ 10%] Linking C executable cJSON_test
[ 10%] Built target cJSON_test
Scanning dependencies of target unity
[ 12%] Building C object tests/CMakeFiles/unity.dir/unity/src/unity.c.o
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:271:18: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
if (number < 0.0f || (number == 0.0f && 1.0f / number < 0.0f))
~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:271:37: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
if (number < 0.0f || (number == 0.0f && 1.0f / number < 0.0f))
~~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:271:45: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
if (number < 0.0f || (number == 0.0f && 1.0f / number < 0.0f))
^~~~ ~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:271:61: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
if (number < 0.0f || (number == 0.0f && 1.0f / number < 0.0f))
~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:278:19: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
if (number == 0.0f) UnityPrint("0");
~~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:289:35: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number < 100000.0f / 1e6f) { number *= 1e6f; exponent -= 6; }
~ ~~~~~~~~~~^~~~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:289:56: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number < 100000.0f / 1e6f) { number *= 1e6f; exponent -= 6; }
~~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:290:25: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number < 100000.0f) { number *= 10.0f; exponent--; }
~ ^~~~~~~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:290:56: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number < 100000.0f) { number *= 10.0f; exponent--; }
~~ ^~~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:291:36: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number > 1000000.0f * 1e6f) { number /= 1e6f; exponent += 6; }
~ ~~~~~~~~~~~^~~~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:291:56: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number > 1000000.0f * 1e6f) { number /= 1e6f; exponent += 6; }
~~ ^~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:292:25: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number > 1000000.0f) { number /= 10.0f; exponent++; }
~ ^~~~~~~~~~
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.c:292:56: warning:
implicit conversion increases floating-point precision: 'float' to 'double'
[-Wdouble-promotion]
while (number > 1000000.0f) { number /= 10.0f; exponent++; }
~~ ^~~~~
13 warnings generated.
[ 15%] Linking C shared library libunity.dylib
[ 15%] Built target unity
Scanning dependencies of target print_number
[ 17%] Building C object tests/CMakeFiles/print_number.dir/print_number.c.o
[ 20%] Linking C executable print_number
[ 20%] Built target print_number
Scanning dependencies of target cjson_add
[ 22%] Building C object tests/CMakeFiles/cjson_add.dir/cjson_add.c.o
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/cjson_add.c:28:
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.h:16:
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity_internals.h:73:10: error:
'long long' is an extension when C99 mode is not enabled [-Werror,-Wlong-long]
#if (UINTPTR_MAX <= 0xFFFF)
^
/usr/include/stdint.h:132:23: note: expanded from macro 'UINTPTR_MAX'
#define UINTPTR_MAX UINT64_MAX
^
/usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX'
#define UINT64_MAX 18446744073709551615ULL
^
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/cjson_add.c:28:
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.h:16:
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity_internals.h:75:12: error:
'long long' is an extension when C99 mode is not enabled [-Werror,-Wlong-long]
#elif (UINTPTR_MAX <= 0xFFFFFFFF)
^
/usr/include/stdint.h:132:23: note: expanded from macro 'UINTPTR_MAX'
#define UINTPTR_MAX UINT64_MAX
^
/usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX'
#define UINT64_MAX 18446744073709551615ULL
^
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/cjson_add.c:28:
In file included from /Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity.h:16:
/Users/kennethcochran/programming/libsource/cJSON/tests/unity/src/unity_internals.h:77:12: error:
'long long' is an extension when C99 mode is not enabled [-Werror,-Wlong-long]
#elif (UINTPTR_MAX <= 0xFFFFFFFFFFFFFFFF)
^
/usr/include/stdint.h:132:23: note: expanded from macro 'UINTPTR_MAX'
#define UINTPTR_MAX UINT64_MAX
^
/usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX'
#define UINT64_MAX 18446744073709551615ULL
^
3 errors generated.
make[2]: *** [tests/CMakeFiles/cjson_add.dir/cjson_add.c.o] Error 1
make[1]: *** [tests/CMakeFiles/cjson_add.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment