Skip to content

compile error for i686 since 3.6.5 #471

@cheese1

Description

@cheese1

i get an compile-error when compiling for i686:

g++ -o generate_loop_macros generate_loop_macros.cpp -I.. -Wall -Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror=unused-label -Wshadow -Wno-int-in-bool-context -Wno-bool-compare -std=c++11 -pedantic -Dcimg_use_vt100 -Dcimg_display=1   -lm -lX11 -lpthread 
In file included from curve_editor2d.cpp:46:
../CImg.h: In static member function ‘static bool cimg_library::cimg::type<_Float16>::is_inf(long double)’:
../CImg.h:3086:24: warning: ISO C++ does not allow converting to ‘_Float16’ from ‘const long double’ with greater conversion rank [-Wnarrowing]
 3086 |         return !is_nan(val) && (val<cimg::type<cimg_float16>::min() || val>cimg::type<cimg_float16>::max());
      |                        ^~~
../CImg.h:3086:23: error: invalid conversion to type ‘_Float16’ without option ‘-msse2’
 3086 |         return !is_nan(val) && (val<cimg::type<cimg_float16>::min() || val>cimg::type<cimg_float16>::max());
      |                 ~~~~~~^~~~~
compilation terminated due to -Wfatal-errors.
make[1]: *** [Makefile:323: curve_editor2d] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from dtmri_view3d.cpp:44:
../CImg.h: In static member function ‘static bool cimg_library::cimg::type<_Float16>::is_inf(long double)’:
../CImg.h:3086:24: warning: ISO C++ does not allow converting to ‘_Float16’ from ‘const long double’ with greater conversion rank [-Wnarrowing]
 3086 |         return !is_nan(val) && (val<cimg::type<cimg_float16>::min() || val>cimg::type<cimg_float16>::max());
      |                        ^~~
../CImg.h:3086:23: error: invalid conversion to type ‘_Float16’ without option ‘-msse2’
 3086 |         return !is_nan(val) && (val<cimg::type<cimg_float16>::min() || val>cimg::type<cimg_float16>::max());
      |                 ~~~~~~^~~~~

the complete compile-log can be found at:
https://kojipkgs.fedoraproject.org//work/tasks/7541/140027541/build.log

other arches compile fine:
https://koji.fedoraproject.org/koji/taskinfo?taskID=140027446

as far as i can see there was a change concerning float16 between 3.6.4 and 3.6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions