quackduck / devzat

The devs are over here at devzat, chat over SSH!
MIT License
3.66k stars 137 forks source link

Will not compile on Raspberry Pi #212

Closed peterahunt closed 11 months ago

peterahunt commented 11 months ago

With the following error...

gcc: error: unrecognized command-line option '-marm'

quackduck commented 11 months ago

What command did you run exactly? Provide the full output

peterahunt commented 11 months ago

I simply used - 'go build' in the devzat directory. And that was the full output other than downloading stuff, which it does not do now, of course.

I have setup several servers on ubuntu with no problems, and decided to put it on my Pi. Looking into the error, I have found a number of references to this not being a valid option on a Pi, as it does not have that option...

for example...

You get this error because there is no -marm option in gcc. There is an -march option ( arch -> 'architecture'

quackduck commented 11 months ago

Was that the only output it had? Try running CGO_ENABLED=0 go build

peterahunt commented 11 months ago

That solved it, copied my .yml and it runs great! Thanks! Which file would I change to avoid having to specify that at the command line? Or is is more complicated than that?

quackduck commented 11 months ago

There's no source file that can be edited to have it build like that (afaik). You can just make a lil build script for yourself or an alias, etc.

peterahunt commented 11 months ago

OK, thank you very much, use it all the time.

quackduck commented 11 months ago

Also, wow, did you make a GitHub account to be able to make an issue here? What are you using Devzat for, I'm curious

peterahunt commented 11 months ago

I use am basically a lurker on github, I pick up bit and pieces and play with them at home. Yeah I made this for this issue, but honestly I have been thinking I should do that for a while now.

I am just using devchat and other stuff from here to learn more about linux/programming. I spent a lot of years fixing computers - software/hardware,(a long time ago) but never actually learned how to program anything properly so I am leaning towards that now. I don't really have interest in the current internet or apps, so I am playing in the backend.

Better late than never!

quackduck commented 11 months ago

Awesome! Are you into Go?

peterahunt commented 11 months ago

I am currently trying to learn it in a typically ass-backward fashion. I was 'into' Basic on an Apple ][ when I was in school, if that gives you an idea of my age. I have gained a little bit of info on various languages over the years, but never had time, etc. Recently I noticed that go seems to be something I can get my head around. Simple enough, powerful enough. I only have interest in making things for me, hobby-like. I am your typical before internet kind of guy, ran a BBS, installed ISDN connections, back before programming was taught is any schools at all. So we all taught each other what we learned, copied code from magazines, etc.

Now that I have time, seems there are a lot more resources out there. So here I am.

I guess that qualifies as into go! I'll update you in a few months! ;)

peterahunt commented 11 months ago

Yeah, I actually saved and loaded my code on a cassette tape with an actual phone hissing out the code to be recorded analog... pffft

quackduck commented 11 months ago

Crazy... I'm currently a freshman in college so this is absurd for me.

peterahunt commented 11 months ago

Man, I am not that old. lol. I came in with the Commodore 64s and Apple ][s... But yeah, it has really really changed.

quackduck commented 11 months ago

Well we both agree the phone hissing out code to be recorded analog is pretty absurd, right?

peterahunt commented 11 months ago

Honestly, we would hold the phone up to the recorder(or the modem) and you could save or input programs remotely. It was bleeding edge, absurdly bleeding edge. And now, it is absurd to think we did that. You have no idea the time spent just trying to connect two computers, or even just load a program you did not want to type in again. And the error-correction was practically non-existent, so many times you just gave up and typed in pages and pages of code for the millionth time. But It was super cool, you have no idea. We were doing things nobody did. I got sidetracked into fixing them, rather than programming them. Probably should have started paypal, but whoops...

peterahunt commented 11 months ago

And technically, the computer speaker was for recording it, on a tape deck, the phone was when we wanted to send things, It was way way slower than the modems you probably used as a kid, if you did. Like 300 baud was a super upgrade from 72 baud.

Anyways...

quackduck commented 11 months ago

Oh my god, you're saying you transferred code by playing it over the telephone???!!! Wild...

I'm online on the main server rn

peterahunt commented 11 months ago

We did all sorts of creative things, we were not using a modem, the 300 bps modem in the school was off limits. You can move info on a tape if you try. I recall the phone method not working particularly well, but it did work. If you really want an example of what were were doing, read this page, its only a few minutes long... Remember, there was simply not another way to move data between computers, networks did not exist as they exist today, and certainly not in our school. USB sticks were not even on the horizon, and not all the computers had a floppy drive. Just a keyboard, and analog sound, so we used sound.

https://arstechnica.com/staff/2018/11/first-encounter-compute-magazine-and-its-glorious-tedious-type-in-code/

Was pretty cool in the day.