Email or username:

Password:

Forgot your password?
Devine Lu Linvega

Hitting all sorts of weird compilation errors on the pinebook, c dev on arm is a pain in the ass. I'll port the 100r wiki to uxntal over the summer.

9 comments
kelp

@neauoire I'm curious, how is it a pain specifically for ARM?

afaik it's just the same tools but compiled for a different arch, no?

Devine Lu Linvega

@kelp It's many little things, the toolchain doesn't quite behave the same. gcc-wise, ASAN as an example, behaves totally differently. We use tcc for our wiki, and so you end up running after your own tail with all the weird errors in the flavor of `Invalid relocation entry [14] '.rela.debug_info' @ 000004f5
`. The only reliable C experience on ARM that I've had the chance of using was compiling with pcc on Plan9. On linux, it has never once just worked.

cancel

@neauoire @kelp gcc sucks ass for ARM. it behaves badly and also sometimes emits broken machine code. use clang instead. it's wayyy better on ARM.

Devine Lu Linvega

@cancel @kelp yeah, it's funny because every time I end up in arguments with people arguing that it's the same thing, that C is super portable, but it's only because they never tried it themselves.

Cian O'Connor

@neauoire @cancel @kelp

My experience has been that you have to do a lot of voodoo to get C programs running on a new platform.

Rust is a lot better at this. I wonder if Zig has solved this?

Jason Morley

@neauoire I’m always curious about what your lightweight setup is on the pinebook—have you ever written about what OS choices you make outside of uxn? I adore how minimal all your screenshots look.

Devine Lu Linvega

@jbmorley I tend to stick to i3 over arch or manjaro, it does everything I need. I wouldn't recommend it tho, it's kind of finicky, stuff breaks all the time without explanation.

Jason Morley

@neauoire Surprisngly, that’s not far off how I have things set up and, yes, finicky is a good description. 😅

Go Up