[Debian-med-packaging] Please help building psychtoolbox-3 on loongarch

Andreas Tille andreas at an3as.eu
Wed Jun 3 08:52:17 BST 2026


Hi,

currently psychtoolbox-3 is not migrating to testing due to a build
issue on loong64[1]:

...
   dh_auto_configure -a -O--buildsystem=makefile
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/psychtoolbox-3-3.0.22.2+dfsg'
mkdir -p Psychtoolbox/PsychBasic/Octave3LinuxFiles Psychtoolbox/PsychBasic/PsychPlugins Psychtoolbox/PsychBasic/Octave4LinuxFiles64 Psychtoolbox/PsychBasic/Octave4LinuxFiles
cd PsychSourceGL/Source/; \
        sed -n -e 's,if mode *== *\([0-9]*\).*,\1,gp' linuxmakeit64.m \
        | grep -v -E '^(4|12|13)$' \
        | while read mode; do \
	  octave -p /build/reproducible-path/psychtoolbox-3-3.0.22.2+dfsg/Psychtoolbox/PsychOneliners -q --eval "linuxmakeitoctave3($mode)" || exit 1; \
done
Building plugin type 0 ...

Common/Screen/PsychWindowSupport.c: In function ‘PsychGetMonitorRefreshInterval’:
Common/Screen/PsychWindowSupport.c:5364:37: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
 5364 |             samples = calloc(sizeof(double), maxlogsamples);
      |                                     ^~~~~~
Common/Screen/PsychWindowSupport.c:5364:37: note: earlier argument should specify number of elements, later size of each element
cc1plus: warning: command-line option ‘-std=gnu99’ is valid for C/ObjC but not for C++
In file included from Common/Screen/tinyexr.cc:22:
Common/Screen/tinyexr.h: In function ‘int tinyexr::DecodeChunk(EXRImage*, const EXRHeader*, const std::vector<long unsigned int>&, const unsigned char*, size_t, std::string*)’:
Common/Screen/tinyexr.h:11026:16: warning: ‘void* calloc(size_t, size_t)’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
11026 |         calloc(sizeof(EXRTile), static_cast<size_t>(num_tiles)));
      |                ^~~~~~~~~~~~~~~
Common/Screen/tinyexr.h:11026:16: note: earlier argument should specify number of elements, later size of each element
/usr/bin/loongarch64-linux-gnu-ld.bfd: cannot find -lLexActivator: No such file or directory
collect2: error: ld returned 1 exit status
error: mkoctfile: building exited with failure status
error: called from
    mkoctfile at line 238 column 7
    linuxmakeitoctave3>mex at line 375 column 5
    linuxmakeitoctave3 at line 102 column 5
error: ignoring const execution_exception& while preparing to exit


Any help would be welcome.

Kind regards
    Andreas.


[1] https://buildd.debian.org/status/fetch.php?pkg=psychtoolbox-3&arch=loong64&ver=3.0.22.2%2Bdfsg-5&stamp=1777246797&raw=0

-- 
https://fam-tille.de



More information about the Debian-med-packaging mailing list