Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
emtone opened this issue Apr 5, 2024 · 1 comment
Open

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

emtone opened this issue Apr 5, 2024 · 1 comment

Comments

@emtone
Copy link

emtone commented Apr 5, 2024

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 old_handler;
| ^~~~~~~~~~~
../libco/sjlj.c:51:5: error: unknown type name ‘stack_t’
51 | stack_t stack;
| ^~~~~~~
../libco/sjlj.c:52:5: error: unknown type name ‘stack_t’
52 | stack_t old_stack;
| ^~~~~~~
../libco/sjlj.c:56:10: error: request for member ‘ss_flags’ in something not a structure or union
56 | stack.ss_flags = 0;
| ^
../libco/sjlj.c:57:10: error: request for member ‘ss_size’ in something not a structure or union
57 | stack.ss_size = size;
| ^
../libco/sjlj.c:58:26: error: request for member ‘ss_sp’ in something not a structure or union
58 | thread->stack = stack.ss_sp = memory;
| ^
../libco/sjlj.c:59:13: error: request for member ‘ss_sp’ in something not a structure or union
59 | if(stack.ss_sp && !sigaltstack(&stack, &old_stack)) {
| ^
../libco/sjlj.c:59:24: warning: implicit declaration of function ‘sigaltstack’ [-Wimplicit-function-declaration]
59 | if(stack.ss_sp && !sigaltstack(&stack, &old_stack)) {
| ^~~~~~~~~~~
../libco/sjlj.c:61:26: error: ‘SA_ONSTACK’ undeclared (first use in this function)
61 | handler.sa_flags = SA_ONSTACK;
| ^~~~~~~~~~
../libco/sjlj.c:61:26: note: each undeclared identifier is reported only once for each function it appears in
../libco/sjlj.c:62:7: warning: implicit declaration of function ‘sigemptyset’ [-Wimplicit-function-declaration]
62 | sigemptyset(&handler.sa_mask);
| ^~~~~~~~~~~
../libco/sjlj.c:65:11: warning: implicit declaration of function ‘sigaction’; did you mean ‘section’? [-Wimplicit-function-declaration]
65 | if(!sigaction(SIGUSR1, &handler, &old_handler)) {
| ^~~~~~~~~
| section
../libco/sjlj.c: In function ‘co_create’:
../libco/sjlj.c:88:22: error: storage size of ‘handler’ isn’t known
88 | struct sigaction handler;
| ^~~~~~~
../libco/sjlj.c:89:22: error: storage size of ‘old_handler’ isn’t known
89 | struct sigaction old_handler;
| ^~~~~~~~~~~
../libco/sjlj.c:91:5: error: unknown type name ‘stack_t’
91 | stack_t stack;
| ^~~~~~~
../libco/sjlj.c:92:5: error: unknown type name ‘stack_t’
92 | stack_t old_stack;
| ^~~~~~~
../libco/sjlj.c:96:10: error: request for member ‘ss_flags’ in something not a structure or union
96 | stack.ss_flags = 0;
| ^
../libco/sjlj.c:97:10: error: request for member ‘ss_size’ in something not a structure or union
97 | stack.ss_size = size;
| ^
../libco/sjlj.c:98:26: error: request for member ‘ss_sp’ in something not a structure or union
98 | thread->stack = stack.ss_sp = malloc(size);
| ^
../libco/sjlj.c:99:13: error: request for member ‘ss_sp’ in something not a structure or union
99 | if(stack.ss_sp && !sigaltstack(&stack, &old_stack)) {
| ^
../libco/sjlj.c:101:26: error: ‘SA_ONSTACK’ undeclared (first use in this function)
101 | handler.sa_flags = SA_ONSTACK;
| ^~~~~~~~~~
../libco/sjlj.c: In function ‘co_switch’:
../libco/sjlj.c:135:26: warning: passing argument 1 of ‘siglongjmp’ makes pointer from integer without a cast [-Wint-conversion]
135 | siglongjmp(co_running->context, 1);
| ~~~~~~~~~~^~~~~~~~~
| |
| int
In file included from /usr/include/features.h:465,
from /usr/include/assert.h:35,
from ../libco/settings.h:84,
from ../libco/sjlj.c:8:
/usr/include/bits/setjmp2.h:31:13: note: expected ‘struct __jmp_buf_tag *’ but argument is of type ‘int’
31 | extern void __REDIRECT_NTHNL (siglongjmp,
| ^~~~~~~~~~~~~~~~
make: *** [../nall/GNUmakefile:160: obj/libco.o] Error 1
make: Leaving directory '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10/higan-ui'

  • ERROR: games-emulation/higan-116_pre20210818-r2::gentoo failed (compile phase):
  • emake failed
  • If you need support, post the output of emerge --info '=games-emulation/higan-116_pre20210818-r2::gentoo',
  • the complete build log and the output of emerge -pqv '=games-emulation/higan-116_pre20210818-r2::gentoo'.
  • The complete build log is located at '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/temp/environment'.
  • Working directory: '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10'
  • S: '/var/tmp/portage/games-emulation/higan-116_pre20210818-r2/work/higan-9bf1b3314b2bcc73cbc11d344b369c31562aff10'
@hobby
Copy link

hobby commented Apr 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants