#214·libco

龙芯2f小本在gentoo下编译higan时libco报错

作者: emtone创建于 2024年4月5日更新于 2024年4月5日

yeeloong /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/temp # tail -200 build.log

  • Package: games-emulation/higan-116_pre20210818-r2:0
  • Repository: gentoo
  • Maintainer: [email protected]
  • Upstream: https://GitHub.com/higan-emu/higan/issues
  • USE: abi_mips_n32 alsa elibc_glibc gtk kernel_linux mips opengl pulseaudio sdl udev
  • FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox

Unpacking source... Unpacking higan-116_pre20210818.tar.gz to /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work Source unpacked in /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work Preparing source in /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10 ...

  • Applying higan-116_pre20210404-makefile.patch ... [ ok ]
  • Applying higan-116_pre20210818-paths.patch ... [ ok ]
  • Applying higan-116_pre20210818-gcc13.patch ... [ ok ]

Source prepared. Configuring source in /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10 ... Source configured. Compiling source in /var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10 ... make -j1 platform=linux compiler=mips64el-unknown-linux-gnu-g++ hiro=gtk3 'cores=cv fc gb gba md ms msx ngp pce sfc sg ws' 'ruby=video.xshm input.xlib audio.alsa video.glx video.glx2 audio.pulseaudio audio.pulseaudiosimple input.sdl input.udev' build=performance local=false -C higan-ui make: Entering directory '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10/higan-ui' Compiling libco/libco.c ... mips64el-unknown-linux-gnu-g++ -x c -std=c11 -MMD -MP -MF obj/libco.d -I. -I.. -I../higan -O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe -DBUILD_RELEASE -fno-operator-names -fno-strict-aliasing -fwrapv -Wno-trigraphs -DCORE_CV -DCORE_FC -DCORE_GB -DCORE_GBA -DCORE_MD -DCORE_MS -DCORE_MSX -DCORE_NGP -DCORE_PCE -DCORE_SFC -DCORE_SG -DCORE_WS -c ../libco/libco.c -o obj/libco.o cc1: warning: command-line option ‘-fno-operator-names’ is valid for C++/ObjC++ but not for C In file included from ../libco/libco.c:25: ../libco/sjlj.c:21:3: error: unknown type name ‘sigjmp_buf’ 21 | sigjmp_buf context; | ^~~~~~~~~~ ../libco/sjlj.c: In function ‘springboard’: ../libco/sjlj.c:31:6: warning: implicit declaration of function ‘sigsetjmp’; did you mean ‘_setjmp’? [-Wimplicit-function-declaration] 31 | if(sigsetjmp(creating->context, 0)) { | ^~~~~~~~~ | _setjmp ../libco/sjlj.c: In function ‘co_derive’: ../libco/sjlj.c:48:22: error: storage size of ‘handler’ isn’t known 48 | struct sigaction handler; | ^~~~~~~ ../libco/sjlj.c:49:22: error: storage size of ‘old_handler’ isn’t known 49 | struct sigaction …