Package: crystal
Version: 1.6.0+dfsg-2
Severity: serious

Hi!

On a fresh unstable install, installing crystal and trying to compile a program with it fails due to dependency issues:

$ crystal hello.cr --: 1: cc: not found
Error: execution of command failed with code: 127: `cc "${@}" -o /root/.cache/crystal/crystal-run-hello.tmp -rdynamic -L/usr/bin/../lib/crystal -lm -lgc -lpthread -levent -lrt -lpthread -ldl`

After installing the 'gcc' package, the error turns to
$ crystal hello.cr
/usr/bin/ld: cannot find -levent (this usually means you need to install the development package for libevent): No such file or directory
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /root/.cache/crystal/crystal-run-hello.tmp -rdynamic -L/usr/bin/../lib/crystal -lm -lgc -lpthread -levent -lrt -lpthread -ldl`

Only after also installing the 'libevent-dev' package it starts to work:
$ crystal hello.cr Hello World!

I am setting this as 'serious' as a violation of policy §3.5.

thanks,
Taavi

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-3-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages crystal depends on:
ii  libc6                 2.36-8
ii  libevent-2.1-7        2.1.12-stable-5+b1
ii  libgc-dev             1:8.2.2-3
ii  libgc1                1:8.2.2-3
ii  libgcc-s1             12.2.0-14
ii  libllvm14             1:14.0.6-10+b1
ii  libpcre3              2:8.39-15
ii  libstdc++6            12.2.0-14
ii  pkg-config            1.8.1-1
ii  pkgconf [pkg-config]  1.8.1-1

crystal recommends no packages.

Versions of packages crystal suggests:
pn  crystal-doc      <none>
pn  crystal-samples  <none>

-- no debconf information

Attachment: OpenPGP_0xEF242F709F912FBE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to