Package Details: gambit-c 4.9.4-4

Git Clone URL: https://aur.archlinux.org/gambit-c.git (read-only, click to copy)
Package Base: gambit-c
Description: Efficient implementation of the Scheme programming language
Upstream URL: https://github.com/gambit/gambit
Licenses: LGPL, Apache
Submitter: gromit
Maintainer: sonofaglitch
Last Packager: gromit
Votes: 1
Popularity: 0.007094
First Submitted: 2024-03-19 23:08 (UTC)
Last Updated: 2024-03-19 23:08 (UTC)

Dependencies (2)

Required by (3)

Sources (1)

Latest Comments

sonofaglitch commented on 2024-03-31 20:54 (UTC)

Thanks for the advice @vgivanovic configuring with the additional two switches you suggested still results in an error I've originally encountered. Something must be done differently but the configure part seems the same at the least.

vgivanovic commented on 2024-03-25 18:26 (UTC)

All of the following is FYI, grist for the mill, as it were. Hopefully it is somewhat helpful.

PKGBUILD fails when the latest gambit-c tar file doesn't have the expected 'pkgname' and 'pkgver'. There may also be issues with 'v' being prepended (or not) to 'pkgver', so rather than sort all that out, I built by hand after adding '--enable-march=native' and '--enable-dynamic-clib' to the 'configure' command as suggested by 'configure'.

I ended up with 'gsc v' ==> v4.9.5 20230726044844 x86_64-pc-linux-gnu "./configure '--docdir=/usr/share/doc/gambit-c' '--enable-gcc-opts' '--enable-single-host' '--infodir=/usr/share/info' '--libdir=/usr/lib/gambit-c' '--prefix=/usr' '--enable-march=native' '--enable-dynamic-clib'"

and I used 'gcc -v' ==> Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.2.1 20230801 (GCC)

Note: 'gsc' doesn't conflict with ghostscript as alleged in PKGBUILD, but 'gsx' does. 'gsx -v' ==> GPL Ghostscript 10.03.0 (2024-03-06) Copyright (C) 2024 Artifex Software, Inc. All rights reserved.

I didn't mess with renaming '/usr/bin/gsc' to 'usr/bin/gambitc' and then symbolically linking 'gambitc' to 'gsc-script'.

For a test, I used the Fibonacci code given in Section 2.1 of the Gambit Manual: 'gsc -' ==>

(define (fact n) (if (< n 2) 1 (* n (fact (- n 1))))) (map fact '(1 2 3 4 5 6)) (1 2 6 24 120 720) (values (fact 10) (fact 40)) 3628800 815915283247897734345611269596115894272000000000 ,q

SRFI42 seems to have been built without error.

My system: 'inxi' ==> CPU: 8-core AMD Ryzen 9 7940HS w/ Radeon 780M Graphics (-MT MCP-) speed/min/max: 1169/400/5263:6228:5583:5903:6067:5423:5743 MHz Kernel: 6.8.1-arch1-1 x86_64 Up: 1d 23h 8m Mem: 45.59/58.58 GiB (77.8%) Storage: 7.13 TiB (49.5% used) Procs: 560 Shell: FIZSH inxi: 3.3.33

sonofaglitch commented on 2024-03-23 22:30 (UTC) (edited on 2024-03-23 22:34 (UTC) by sonofaglitch)

Apparently an issue v4.9.5 building against the gcc ver. 13.2.1;

https://github.com/gambit/gambit/issues/864

I'll try and keep an eye on and update accordingly when it builds.


building module srfi/42 for C *** ERROR IN _define-library/define-library-expand#parse-define-library -- duplicate pattern variable building module srfi/42 for js *** ERROR IN _define-library/define-library-expand#parse-define-library -- duplicate pattern variable make[5]: *** [../../module-common.mk:199: modules-pre] Error 70 make[5]: Leaving directory '/home/sebastian/Downloads/gambit-c/src/gambit-v4_9_5/lib/srfi/42' make[4]: *** [../module-common.mk:352: modules-recursive] Error 1 make[4]: Leaving directory '/home/sebastian/Downloads/gambit-c/src/gambit-v4_9_5/lib/srfi' make[3]: *** [makefile:518: srfi] Error 1 make[3]: Leaving directory '/home/sebastian/Downloads/gambit-c/src/gambit-v4_9_5/lib' make[2]: *** [makefile:515: modules-recursive] Error 2 make[2]: Leaving directory '/home/sebastian/Downloads/gambit-c/src/gambit-v4_9_5/lib' make[1]: *** [makefile:373: modules] Error 2 make[1]: Leaving directory '/home/sebastian/Downloads/gambit-c/src/gambit-v4_9_5' make: *** [makefile:107: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...