Switching from standard try catch to yield fixed my crash, it still trows error
but at least it does not escape and crash my app :)
Ty Rika :)
**UPDATE 2** Running on plane http did not help still get this file descriptor
error
**UPDATE** When run whiteout Nginx to proxy pass to app it does not crash, so
hmm now need to figure out if it crashes cuz Nginx or SSL next run with nginx
but no SSL on
form what i know and i am uber newb,
calling proc something.call() is same as call( something ) , i dont think you
can do that whiteout some marcro magic or something similar, ofc its possible i
am wrong :)
Ok i am fighting for 2 days with this, first i tough i broken some code but
from what i see i did not, i tested created relatively minimal example, so when
i run it on my pc it works no problem but when run on arm64 raspbery pi4 thats
proxypassed to by nginx it crashes, posting code and error
SOLVED( thanks to shashlick ): in nim.cfg both exe and linkerexe should point
to to same arm64.linux.gcc.exe = "aarch64-linux-musl-gcc"
arm64.linux.gcc.linkerexe = "aarch64-linux-musl-gcc"
ye i put -ld but now i get new errors nim.cfg
arm64.linux.gcc.exe = "aarch64-linux-musl-gcc"
arm64.linux.gcc.linkerexe = "aarch64-linux-musl-ld"
Run
nim c -f --cpu:arm64 echotest.nim
Hint: used config file
'/home/me/.choosenim/toolchains/nim-1.2.6/c
>From what i see default one hes no defintion for arm64 only for arm i just
>added myself some new lines just am now trying to figure out what linker name
>in void-linux packages
"if the executable runs on your local machine, if so it hasn't cross compiled
properly."
ye i just runed nim --cpu:arm64 --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc c
echotest.nim file echotest.nim has just echo "Test1" and it runned on my
x86_64amdPC like it ignored this --cpu:arm64, duno why
Gcc i think i have everything needed
[*] cross-aarch64-linux-gnu-0.33_3 GNU Cross toolchain for the
aarch64-linux-gnu LE target (binutils/gcc/g...
[*] cross-aarch64-linux-gnu-libc-0.33_3 GNU Cross toolchain for the
aarch64-linux-gnu LE target (binutils/gcc/g...
Can someone help me out, i am trying to cross-compile to
rpi4 alpine-musl ( 5.4.43-0-rpi4 #1-Alpine SMP PREEMPT Thu May 28 10:01:20 UTC
2020 aarch64 Linux )
form normal pc ( 5.8.8_1 #1 SMP Wed Sep 9 19:53:06 UTC 2020 x86_64 GNU/Linux -
voidlinux :) )
So simple code i am using just for testing:
11 matches
Mail list logo