Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 912050

Summary: app-editors/helix-23.10-r2 fails to compile on musl/llvm: thread 'main' panicked at 'Failed to compile tree-sitter grammars: 2 grammars failed to build', helix-term/build.rs:7:14
Product: Gentoo Linux Reporter: dysthesis <bgo.pwk8n>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: CONFIRMED ---    
Severity: normal CC: freijon, oleid, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/35899
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=app-editors/helix-23.05::gentoo'
emerge -pqv '=app-editors/helix-23.05::gentoo'

Description dysthesis 2023-08-10 23:07:53 UTC
Created attachment 867594 [details]
build.log

app-editors/helix fails to compile on musl/llvm.
Comment 1 dysthesis 2023-08-10 23:08:45 UTC
Created attachment 867595 [details]
emerge --info '=app-editors/helix-23.05::gentoo'
Comment 2 dysthesis 2023-08-10 23:09:14 UTC
Created attachment 867596 [details]
emerge -pqv '=app-editors/helix-23.05::gentoo'
Comment 3 Olaf Leidinger 2023-08-31 17:15:28 UTC
I've the same problem with clang profile (regular glibc system).
Comment 4 Kostadin Shishmanov 2023-08-31 17:33:01 UTC
https://wiki.gentoo.org/wiki/Modern_C_porting

Add bug 870412 to the "Blocks:" field

  Stderr: /var/tmp/portage/app-editors/helix-23.05/work/runtime/grammars/sources/rescript/src/scanner.c:134:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    const in_string = state->in_quotes || state->in_backticks;
    ~~~~~ ^
    int
  1 error generated.

  Failure 2/2: d Parser compilation failed.
  Stdout: 
  Stderr: /var/tmp/portage/app-editors/helix-23.05/work/runtime/grammars/sources/d/src/scanner.c:70:9: error: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                          if (!isascii(lexer->lookahead) ||
                               ^
/var/tmp/portage/app-editors/helix-23.05/work/runtime/grammars/sources/d/src/scanner.c:81:9: error: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                          if (!isascii(lexer->lookahead) ||
                               ^
  /var/tmp/portage/app-editors/helix-23.05/work/runtime/grammars/sources/d/src/scanner.c:92:9: error: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                          if (!isascii(lexer->lookahead) ||
                               ^
  /var/tmp/portage/app-editors/helix-23.05/work/runtime/grammars/sources/d/src/scanner.c:126:9: error: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                          if (!isascii(lexer->lookahead) ||
                               ^
  4 errors generated.
Comment 5 Agostino Sarubbo gentoo-dev 2023-12-20 08:20:32 UTC
gcc14_tinderbox has reproduced this issue with version 23.10-r2 - Updating summary.