ngn/k
19
63
Fork
You've already forked k
17

gcc 8 is failing #5

Closed
opened 2021年08月12日 14:37:24 +02:00 by meyt4r · 3 comments
Contributor
Copy link

error when make

0.c In file included from 0.c:2:
0.c:33:88: error: expected ‘;’ before ‘asm’
 FBSD(asm(h3(freebsd11_getdents));ssize_t getdents(I f,C*b,Nn)_(getdents(f,b,n)))NFBSD(asm(h3(getdents)))

i saw this commit:

more recent compilers
1ee327ab73

i am on a gcc (Debian 8.3.0-6) 8.3.0
any chance you'll still support it?
do you really get anything real shiny from advancing a gcc version?
i am asking caus i'm intrested and caus its seems like a real headache to upgrade it on my side (maybe i am just lacking knowledge and the procedure is quite nice, idk)
anyhow, you call the shots. thank you very much for the software.

error when make ``` 0.c In file included from 0.c:2: 0.c:33:88: error: expected ‘;’ before ‘asm’ FBSD(asm(h3(freebsd11_getdents));ssize_t getdents(I f,C*b,Nn)_(getdents(f,b,n)))NFBSD(asm(h3(getdents))) ``` i saw this commit: >more recent compilers https://codeberg.org/ngn/k/commit/1ee327ab737faceb5e2a762365ac5236b9bdc6e4 i am on a gcc (Debian 8.3.0-6) 8.3.0 any chance you'll still support it? do you really get anything real shiny from advancing a gcc version? i am asking caus i'm intrested and caus its seems like a real headache to upgrade it on my side (maybe i am just lacking knowledge and the procedure is quite nice, idk) anyhow, you call the shots. thank you very much for the software.
Author
Contributor
Copy link

it was easier than expected ( assuming i did right ):
downloaded llvm+clang precomplied, untared it, and added to PATH

now i am getting:

CC=clang make -e 
0.c 0.c:33:88: fatal error: expected ';' after top-level asm block
 FBSD(asm(h3(freebsd11_getdents));ssize_t getdents(I f,C*b,Nn)_(getdents(f,b,n)))NFBSD(asm(h3(getdents)))
clang --version
clang version 12.0.1
Target: x86_64-unknown-linux-gnu
it was easier than expected ( assuming i did right ): downloaded llvm+clang precomplied, untared it, and added to PATH now i am getting: ``` CC=clang make -e 0.c 0.c:33:88: fatal error: expected ';' after top-level asm block FBSD(asm(h3(freebsd11_getdents));ssize_t getdents(I f,C*b,Nn)_(getdents(f,b,n)))NFBSD(asm(h3(getdents))) ``` ``` clang --version clang version 12.0.1 Target: x86_64-unknown-linux-gnu ```
Author
Contributor
Copy link

ok, this error was quite facinating
0.c 0.c:33:88: fatal error
i tried alot of stuff on line 33 but the culprit was on line 32
so there is needs to be a ';' after (h(pipe)) on line 32
same thing with getdents
then it compiles
but... test are failing, i don't think i can help here, maybe one day i will.

PS once i get my gears going and feel comfrtable with git,commits and pulls, i hope to resolve such issues with a pull request.

ok, this error was quite facinating ``` 0.c 0.c:33:88: fatal error ``` i tried alot of stuff on line 33 but the culprit was on line 32 so there is needs to be a ';' after (h(pipe)) on line 32 same thing with getdents then it compiles but... test are failing, i don't think i can help here, maybe one day i will. PS once i get my gears going and feel comfrtable with git,commits and pulls, i hope to resolve such issues with a pull request.
Owner
Copy link

gcc (Debian 8.3.0-6) 8.3.0

it should work with the latest sources (please reopen if it doesn't).
yeah, i got so carried away trying to shorten the syscall definitions, i forgot to add that semicolon.
thanks

> gcc (Debian 8.3.0-6) 8.3.0 it should work with the latest sources (please reopen if it doesn't). yeah, i got so carried away trying to shorten the syscall definitions, i forgot to add that semicolon. thanks
Sign in to join this conversation.
No Branch/Tag specified
master
pages
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ngn/k#5
Reference in a new issue
ngn/k
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?