Problem with GCC on minix - fixed, somehow

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Prelates, Moderators General

Problem with GCC on minix - fixed, somehow

Postby RoadieRich » Sat Nov 26, 2011 9:17 pm UTC

As you can see from the screenshot, the standard "hello world" doesn't compile.

Screen shot 2011-11-26 at 21.02.39.png

(I'm using screenshots because I'm running it in a VM and I've not yet figured out an easy way of transferring files between VM and host)

The odd thing is, "make world" in /usr/src works just fine. (That was the first exercise.) As that uses a makefile, it suggests my build environment could be set up wrong. If so, what steps should I take to fix it?
Output of env:
Screen shot 2011-11-26 at 21.12.53.png


Never mind, it works now. Since I last tried, I've updated GCC, and run make clean in the source tree. I'm not sure which exactly did it, but one of them did.
Image
73, de KE8BSL loc EN26.
User avatar
RoadieRich
The Black Hand
 
Posts: 1033
Joined: Tue Feb 12, 2008 11:40 am UTC
Location: Behind you

Re: Problem with GCC on minix - fixed, somehow

Postby Jplus » Sun Nov 27, 2011 4:32 pm UTC

I know anything posted in this thread from now on will be off-topic, but please allow me to hijack.

I'm running Minix in a virtual machine too (in fact also on a mac), just for fun and for testing. Why do you do it? Are you also running a shitload of other operating systems?
"There are only two hard problems in computer science: cache coherence, naming things, and off-by-one errors." (Phil Karlton and Leon Bambrick)

Image coding and xkcd combined
Feel free to call me Julian. J+ is just an abbreviation.
User avatar
Jplus
 
Posts: 1638
Joined: Wed Apr 21, 2010 12:29 pm UTC
Location: Netherlands

Re: Problem with GCC on minix - fixed, somehow

Postby RoadieRich » Mon Nov 28, 2011 2:22 am UTC

It's for the Systems Software module (I think) of my Software Engineering degree. I do have a selection of other OSs, but most of them don't get a lot of use. And about three of them just plain don't work.
Image
73, de KE8BSL loc EN26.
User avatar
RoadieRich
The Black Hand
 
Posts: 1033
Joined: Tue Feb 12, 2008 11:40 am UTC
Location: Behind you


Return to Coding

Who is online

Users browsing this forum: No registered users and 7 guests