Skip to content

Instantly share code, notes, and snippets.

@TheCrott
Created September 14, 2021 07:49
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 TheCrott/6eb04adde44e5c4ef6257a2f36b8ec44 to your computer and use it in GitHub Desktop.
Save TheCrott/6eb04adde44e5c4ef6257a2f36b8ec44 to your computer and use it in GitHub Desktop.
error when building imagemagick 7 with symcc
make all-am
make[1]: Entering directory '/home/aldo/magick_symcc/ImageMagick-7.1.0-7'
CC utilities/magick.o
CC MagickCore/libMagickCore_7_Q16HDRI_la-accelerate.lo
CC MagickCore/libMagickCore_7_Q16HDRI_la-animate.lo
CC MagickCore/libMagickCore_7_Q16HDRI_la-annotate.lo
In file included from utilities/magick.c:44:
In file included from ./MagickWand/studio.h:194:
In file included from ./MagickWand/MagickWand.h:77:
In file included from ./MagickCore/MagickCore.h:78:
./MagickCore/magick-type.h:43:31: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_FLOAT_T == 0
^
./MagickCore/magick-type.h:45:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT)
^
./MagickCore/magick-type.h:47:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:49:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:52:2: error: Your MagickFloatType type is neither a float, nor a double, nor a long double
#error Your MagickFloatType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:54:32: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_DOUBLE_T == 0
^
./MagickCore/magick-type.h:56:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:58:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:61:2: error: Your MagickDoubleType type is neither a float, nor a double, nor a long double
#error Your MagickDoubleType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:82:9: error: unknown type name 'MagickFloatType'
typedef MagickFloatType Quantum;
^
./MagickCore/magick-type.h:124:9: error: unknown type name 'MagickDoubleType'
typedef MagickDoubleType MagickRealType;
^
./MagickCore/magick-type.h:127:43: error: invalid token at start of a preprocessor expression
#if (MAGICKCORE_SIZEOF_UNSIGNED_LONG_LONG == 8)
^
In file included from utilities/magick.c:44:
In file included from ./MagickWand/studio.h:194:
In file included from ./MagickWand/MagickWand.h:77:
In file included from ./MagickCore/MagickCore.h:80:
In file included from ./MagickCore/annotate.h:21:
In file included from ./MagickCore/draw.h:22:
In file included from ./MagickCore/image.h:144:
./MagickCore/quantum.h:117:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
13 errors generated.
make[1]: *** [Makefile:8553: utilities/magick.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from MagickCore/annotate.c:45:
In file included from ./MagickCore/studio.h:204:
./MagickCore/magick-type.h:43:31: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_FLOAT_T == 0
^
./MagickCore/magick-type.h:45:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT)
^
./MagickCore/magick-type.h:47:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:49:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:52:2: error: Your MagickFloatType type is neither a float, nor a double, nor a long double
#error Your MagickFloatType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:54:32: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_DOUBLE_T == 0
^
./MagickCore/magick-type.h:56:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:58:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:61:2: error: Your MagickDoubleType type is neither a float, nor a double, nor a long double
#error Your MagickDoubleType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:82:9: error: unknown type name 'MagickFloatType'
typedef MagickFloatType Quantum;
^
./MagickCore/magick-type.h:124:9: error: unknown type name 'MagickDoubleType'
typedef MagickDoubleType MagickRealType;
^
./MagickCore/magick-type.h:127:43: error: invalid token at start of a preprocessor expression
#if (MAGICKCORE_SIZEOF_UNSIGNED_LONG_LONG == 8)
^
In file included from MagickCore/accelerate.c:44:
In file included from ./MagickCore/studio.h:204:
./MagickCore/magick-type.h:43:31: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_FLOAT_T == 0
^
./MagickCore/magick-type.h:45:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT)
^
./MagickCore/magick-type.h:47:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:49:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:52:2: error: Your MagickFloatType type is neither a float, nor a double, nor a long double
#error Your MagickFloatType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:54:32: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_DOUBLE_T == 0
^
./MagickCore/magick-type.h:56:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:58:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:61:2: error: Your MagickDoubleType type is neither a float, nor a double, nor a long double
#error Your MagickDoubleType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:82:9: error: unknown type name 'MagickFloatType'
typedef MagickFloatType Quantum;
^
In file included from MagickCore/annotate.c:46:
In file included from ./MagickCore/annotate.h:21:
In file included from ./MagickCore/draw.h:22:
In file included from ./MagickCore/image.h:144:
./MagickCore/quantum.h:117:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
./MagickCore/magick-type.h:124:9: error: unknown type name 'MagickDoubleType'
typedef MagickDoubleType MagickRealType;
^
./MagickCore/magick-type.h:127:43: error: invalid token at start of a preprocessor expression
#if (MAGICKCORE_SIZEOF_UNSIGNED_LONG_LONG == 8)
^
In file included from MagickCore/animate.c:42:
In file included from ./MagickCore/studio.h:204:
./MagickCore/magick-type.h:43:31: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_FLOAT_T == 0
^
./MagickCore/magick-type.h:45:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_FLOAT)
^
./MagickCore/magick-type.h:47:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:49:34: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_FLOAT_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:52:2: error: Your MagickFloatType type is neither a float, nor a double, nor a long double
#error Your MagickFloatType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:54:32: error: invalid token at start of a preprocessor expression
#if MAGICKCORE_SIZEOF_DOUBLE_T == 0
^
./MagickCore/magick-type.h:56:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_DOUBLE)
^
./MagickCore/magick-type.h:58:35: error: invalid token at start of a preprocessor expression
#elif (MAGICKCORE_SIZEOF_DOUBLE_T == MAGICKCORE_SIZEOF_LONG_DOUBLE)
^
./MagickCore/magick-type.h:61:2: error: Your MagickDoubleType type is neither a float, nor a double, nor a long double
#error Your MagickDoubleType type is neither a float, nor a double, nor a long double
^
./MagickCore/magick-type.h:82:9: error: unknown type name 'MagickFloatType'
typedef MagickFloatType Quantum;
^
In file included from MagickCore/accelerate.c:45:
In file included from ./MagickCore/accelerate-private.h:26:
In file included from ./MagickCore/visual-effects.h:21:
In file included from ./MagickCore/draw.h:22:
In file included from ./MagickCore/image.h:144:
./MagickCore/quantum.h:117:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
./MagickCore/magick-type.h:124:9: error: unknown type name 'MagickDoubleType'
typedef MagickDoubleType MagickRealType;
^
./MagickCore/magick-type.h:127:43: error: invalid token at start of a preprocessor expression
#if (MAGICKCORE_SIZEOF_UNSIGNED_LONG_LONG == 8)
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:286:3: error: unknown type name 'MagickFloatType'; did you mean 'MagickFormatType'?
MagickFloatType *magick_restrict pixel)
^~~~~~~~~~~~~~~
MagickFormatType
./MagickCore/magick.h:39:3: note: 'MagickFormatType' declared here
} MagickFormatType;
^
In file included from MagickCore/animate.c:44:
In file included from ./MagickCore/animate-private.h:22:
In file included from ./MagickCore/xwindow-private.h:21:
In file included from ./MagickCore/draw.h:22:
In file included from ./MagickCore/image.h:144:
./MagickCore/quantum.h:117:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:293:5: error: unknown type name 'MagickFloatType'; did you mean 'MagickFormatType'?
MagickFloatType
^~~~~~~~~~~~~~~
MagickFormatType
./MagickCore/magick.h:39:3: note: 'MagickFormatType' declared here
} MagickFormatType;
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:334:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:485:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:498:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/annotate.c:69:
./MagickCore/quantum-private.h:513:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:286:3: error: unknown type name 'MagickFloatType'; did you mean 'MagickFormatType'?
MagickFloatType *magick_restrict pixel)
^~~~~~~~~~~~~~~
MagickFormatType
./MagickCore/magick.h:39:3: note: 'MagickFormatType' declared here
} MagickFormatType;
^
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:293:5: error: unknown type name 'MagickFloatType'; did you mean 'MagickFormatType'?
MagickFloatType
^~~~~~~~~~~~~~~
MagickFormatType
./MagickCore/magick.h:39:3: note: 'MagickFormatType' declared here
} MagickFormatType;
^
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:334:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:485:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:498:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
In file included from MagickCore/accelerate.c:70:
./MagickCore/quantum-private.h:513:14: error: floating point classification requires argument of floating point type (passed in 'Quantum' (aka 'int'))
if ((IsNaN(quantum) != 0) || (quantum <= 0.0))
^~~~~~~
./MagickCore/magick-type.h:183:26: note: expanded from macro 'IsNaN'
# define IsNaN(a) isnan(a)
^
/usr/include/math.h:930:37: note: expanded from macro 'isnan'
# define isnan(x) __builtin_isnan (x)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [Makefile:8576: MagickCore/libMagickCore_7_Q16HDRI_la-accelerate.lo] Error 1
20 errors generated.
make[1]: *** [Makefile:8590: MagickCore/libMagickCore_7_Q16HDRI_la-annotate.lo] Error 1
13 errors generated.
make[1]: *** [Makefile:8583: MagickCore/libMagickCore_7_Q16HDRI_la-animate.lo] Error 1
make[1]: Leaving directory '/home/aldo/magick_symcc/ImageMagick-7.1.0-7'
make: *** [Makefile:6120: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment