[ebuild U ] app-misc/ddcutil-0.8.6::gentoo [0.8.4::gentoo] USE="X%* user-permissions -drm% -usb-monitor" VIDEO_CARDS="-nvidia" 0 KiB --- ddcutil 0.8.6 ============= libtool version 0:0:0 prefix: /usr datarootdir: ${prefix}/share datadir: /usr/share docdir: /usr/share/doc/ddcutil-0.8.6 mandir: /usr/share/man adl_header_dir: enable_lib: yes enable_swig: no enable_cython: no enable_cffi: no enable_gobject no enable_usb: no enable_drm: no enable_x11: yes enable_doxygen: no enable_failsim: no enable_use_api: no include_testcases: no compiler: x86_64-pc-linux-gnu-gcc cflags: -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize ldflags: -Wl,-O2 -Wl,--as-needed --- libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c ddc_read_capabilities.c -fPIC -DPIC -o .libs/ddc_read_capabilities.o ddc_output.c: In function ‘get_raw_value_for_feature_table_entry’: ddc_output.c:200:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_packet_io.c: In function ‘ddc_open_display’: ddc_packet_io.c:202:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_packet_io.c: In function ‘ddc_close_display’: ddc_packet_io.c:264:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_displays.c: In function ‘ddc_report_display_by_dref’: /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c -o ddc_vcp.lo ddc_vcp.c ddc_displays.c:484:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_displays.c: In function ‘dbgreport_display_ref’: ddc_displays.c:622:57: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("Built without USB support"); ^ /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c -o ddc_vcp_version.lo ddc_vcp_version.c /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c -o ddc_try_stats.lo ddc_try_stats.c ddc_read_capabilities.c: In function ‘get_capabilities_string’: ddc_read_capabilities.c:142:66: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ cc1: all warnings being treated as errors make[3]: *** [Makefile:507: ddc_output.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[3]: *** [Makefile:507: ddc_read_capabilities.lo] Error 1 libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c ddc_vcp.c -fPIC -DPIC -o .libs/ddc_vcp.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c ddc_vcp_version.c -fPIC -DPIC -o .libs/ddc_vcp_version.o cc1: all warnings being treated as errors cc1: all warnings being treated as errors make[3]: *** [Makefile:507: ddc_displays.lo] Error 1 make[3]: *** [Makefile:507: ddc_packet_io.lo] Error 1 libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fno-stack-protector -ftree-vectorize -c ddc_try_stats.c -fPIC -DPIC -o .libs/ddc_try_stats.o ddc_vcp_version.c: In function ‘get_vcp_version_by_display_handle’: ddc_vcp_version.c:94:66: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_vcp.c: In function ‘set_nontable_vcp_value’: ddc_vcp.c:146:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_vcp.c: In function ‘set_table_vcp_value’: ddc_vcp.c:196:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ ddc_vcp.c: In function ‘get_vcp_value’: ddc_vcp.c:610:63: error: ISO C99 requires at least one argument for the "..." in a variadic macro [-Werror] PROGRAM_LOGIC_ERROR("ddcutil not built with USB support"); ^ cc1: all warnings being treated as errors make[3]: *** [Makefile:507: ddc_vcp_version.lo] Error 1 cc1: all warnings being treated as errors make[3]: *** [Makefile:507: ddc_vcp.lo] Error 1 make[3]: Leaving directory '/tmp/portage/app-misc/ddcutil-0.8.6/work/ddcutil-0.8.6/src/ddc' make[2]: *** [Makefile:965: all-recursive] Error 1 make[2]: Leaving directory '/tmp/portage/app-misc/ddcutil-0.8.6/work/ddcutil-0.8.6/src' make[1]: *** [Makefile:576: all-recursive] Error 1 make[1]: Leaving directory '/tmp/portage/app-misc/ddcutil-0.8.6/work/ddcutil-0.8.6' make: *** [Makefile:485: all] Error 2 * ERROR: app-misc/ddcutil-0.8.6::gentoo failed (compile phase):
I don't know how this is happening. I set the same use flags and I don't have that: /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -O2 -w -pipe -c -o ddc_read_capabilities.lo ddc_read_capabilities.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -O2 -w -pipe -c ddc_read_capabilities.c -fPIC -DPIC -o .libs/ddc_read_capabilities.o /bin/sh ../../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -Werror -Wpedantic -march=native -O2 -w -pipe -c -o ddc_services.lo ddc_services.c Your's is stopping because all warnings are treated as errors, but mine should be as well.
(In reply to Jonathan Scruggs from comment #1) > I don't know how this is happening. I set the same use flags and I don't > have that: > > Your's is stopping because all warnings are treated as errors, but mine > should be as well. yes. adding -Wno-error to CFLAGS is somewhat workaround, i guess.
Created attachment 517016 [details, diff] ddcutil-0.8.6-remove-pedantic-cflag.patch Hi, After talking with upstream (link attached to this bug report), I was able to use his recommendation to make a patch. Can you please try this patch to see if it fixes the issue? Thanks for reporting and hope this fixes the issue. :)
(In reply to Jonathan Scruggs from comment #3) > Created attachment 517016 [details, diff] [details, diff] > ddcutil-0.8.6-remove-pedantic-cflag.patch Hi, patch works, thanx
*** This bug has been marked as a duplicate of bug 645830 ***