guzba/crunchy

compile error when using osdialog@0.1.2 and crunchy@0.1.8

tebartsch opened this issue · 1 comments

For the minimum example of using osdialog and crunchy together by running

nimble c -r -d:osdialogGtk3 test.nim --verbose

in a directory with:

# test.nim
import crunchy
import osdialog
# test.nimble
version = "0.1.0"
author = "Tilmann Bartsch"
description = "Testing osdialog + crunchy"
license = "MIT"

requires "osdialog == 0.1.2"
requires "crunchy == 0.1.8"

the following error message is printed:

/tmp/test/test.nim(1, 8) Warning: imported and not used: 'crunchy' [UnusedImport]
/tmp/test/test.nim(2, 8) Warning: imported and not used: 'osdialog' [UnusedImport]
CC: ../../.nimble/pkgs/nimsimd-1.2.5/nimsimd/runtimecheck.nim
/home/user/.cache/nim/test_d/@m..@s..@s.nimble@spkgs@snimsimd-1.2.5@snimsimd@sruntimecheck.nim.c: In function ‘cpuid__OOZOOZOnimbleZpkgsZnimsimd4549O50O53ZnimsimdZruntimecheck_19’:
/home/user/.cache/nim/test_d/@m..@s..@s.nimble@spkgs@snimsimd-1.2.5@snimsimd@sruntimecheck.nim.c:130:30: error: expected ‘)’ before ‘:’ token
  130 |         asm("        cpuid\n"
      |            ~                 ^
      |                              )
  131 |         :"=a"(eaxr), "=b"(ebxr), "=c"(ecxr), "=d"(edxr)
      |         ~                     
Error: execution of an external compiler program 'gcc -c  -w -fmax-errors=3 -g -Wall -Wextra -std=c99 -pedantic -g -Wall -Wextra -std=c99 -pedantic -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread   -I/home/user/opt/nim-1.6.12/lib -I/tmp/test -o /user/.cache/nim/test_d/@m..@s..@s.nimble@spkgs@snimsimd-1.2.5@snimsimd@sruntimecheck.nim.c.o /user/.cache/nim/test_d/@m..@s..@s.nimble@spkgs@snimsimd-1.2.5@snimsimd@sruntimecheck.nim.c' failed with exit code: 1


     Error: Execution failed with exit code 1
        ... Command: /home/user/opt/nim-1.6.12/bin/nim c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:/home/user/.nimble/pkgs/osdialog-0.1.2 --path:/home/user/.nimble/pkgs/crunchy-0.1.8 --path:/home/user/.nimble/pkgs/nimsimd-1.2.5 -r -d:osdialogGtk3 test

os-release.txt