That made some progress, but it seems to fail on the tests.
?- pack_install(.).
% swipl --no-pce -O -o scasp -c prolog/scasp/main.pl
% Warning: /home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl:40:
% Warning: '/home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl':40:48: Illegal multibyte Sequence
% Warning: /home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl:107:
% Warning: '/home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl':111:23: Illegal multibyte Sequence
% % Disabled autoloading (loaded 111 files)
% % Disabled autoloading (loaded 8 files)
% % Disabled autoloading (loaded 0 files)
% swipl test/test_scasp.pl
% Warning: /home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl:40:
% Warning: '/home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl':40:48: Illegal multibyte Sequence
% Warning: /home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl:107:
% Warning: '/home/jason/src/swipl-devel/packages/sCASP/prolog/scasp/clp/disequality.pl':111:23: Illegal multibyte Sequence
% bec_light.pl ...............................
%
% Warning: /home/jason/src/swipl-devel/packages/sCASP/test/programs/bec_light.pass:1:
% Warning: '/home/jason/src/swipl-devel/packages/sCASP/test/programs/bec_light.pass':1:5882: Illegal multibyte Sequence
ERROR: ERROR: /home/jason/src/swipl-devel/packages/sCASP/test/test_scasp.pl:40: test_scasp:main /home/jason/src/swipl-devel/packages/sCASP/test/programs/bec_light.pass:1:343: Syntax error: Operator expected
% make: *** [Makefile:10: check] Error 2
ERROR: Process "process(/usr/bin/make,[check])": exit status: 2
ERROR: In:
ERROR: [26] throw(error(process_error(...,...),_46576))
ERROR: [22] build_tools:build_step([test],_46626{bin_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',env:[...|...],link:true,pack:scasp,rebuild:make,src_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',url:'file:///home/jason/src/swipl-devel/packages/sCASP/',version:'0.9.0'},_46626{bin_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',env:[...|...],link:true,pack:scasp,rebuild:make,src_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',url:'file:///home/jason/src/swipl-devel/packages/sCASP/',version:'0.9.0'}) at /usr/local/lib/swipl/library/build/tools.pl:111
ERROR: [21] apply:foldl_([[test],install],build_tools:build_step,_46626{bin_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',env:[...|...],link:true,pack:scasp,rebuild:make,src_dir:'/home/jason/.local/share/swi-prolog/pack/scasp',url:'file:///home/jason/src/swipl-devel/packages/sCASP/',version:'0.9.0'},_46742) at /usr/local/lib/swipl/library/apply.pl:316
ERROR: [16] build_tools:build_steps([[dependencies],...|...],'/home/jason/.local/share/swi-prolog/pack/scasp','<garbage_collected>') at /usr/local/lib/swipl/library/build/tools.pl:104
ERROR: [14] prolog_pack:pack_post_install(scasp,'/home/jason/.local/share/swi-prolog/pack/scasp',[link(true),...|...]) at /usr/local/lib/swipl/library/prolog_pack.pl:1078
ERROR: [9] toplevel_call('<garbage_collected>') at /usr/local/lib/swipl/boot/toplevel.pl:1117
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
Exception: (22) build_tools:build_step([test], _128{bin_dir:'/home/jason/.local/share/swi-prolog/pack/scasp', env:['PATH'='/usr/local/lib/swipl/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'SWIPL'='/usr/local/lib/swipl/bin/x86_64-linux/swipl', 'SWIPLVERSION'=80502, 'SWIHOME'='/usr/local/lib/swipl', 'SWIARCH'='x86_64-linux', ... = ...|...], link:true, pack:scasp, rebuild:make, src_dir:'/home/jason/.local/share/swi-prolog/pack/scasp', url:'file:///home/jason/src/swipl-devel/packages/sCASP/', version:'0.9.0'}, _36510)