Page 2 of 2

Re:Developing on Mac

Posted: Sat Mar 12, 2005 5:29 am
by calpis
I don't know what I have done wrong, but I got these errors(I shorten it). I used make install and make all-gcc etc, and the same configure. Any clue? I uses OSX 10.3.8.

Any advice would be great. Thanks

crtstuff.c:2:unknown section type: @progbits
crtstuff.c:2:Rest of line ignored. 1st junk character valued 32 ( ).
crtstuff.c:3:Unknown pseudo-op: .type
crtstuff.c:3:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:3:Invalid mnemonic 'object'
crtstuff.c:6:unknown section type: @progbits
...
...
crtstuff.c:116:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:117:Unknown pseudo-op: .weak
crtstuff.c:117:Rest of line ignored. 1st junk character valued 95 (_).
crtstuff.c:118:Unknown pseudo-op: .ident
crtstuff.c:118:Rest of line ignored. 1st junk character valued 34 (").
make[1]: *** [crtbegin.o] Error 1
make: *** [all-gcc] Error 2

Re:Developing on Mac

Posted: Sat Mar 12, 2005 7:03 am
by AR
That looks like it's whinging about invalid assembly code. Try "make clean" then ./configure then make and make install.

If clean fails or it messes up whilst compiling again then your code directory is probably compromised (I had an unpleasant experience where I couldn't rebuild Bochs because I'd changed the configure script parameters without "make clean"ing it first and it just plain blew up for no apparent reason with all sorts of odd errors). To fix this you'll have to delete the directory and extract it again.

Are you using the version from Apple? You may be better off trying the "official" GCC and Binutils from ftp://ftp.gnu.org/gnu/ if you aren't already.

Re:Developing on Mac

Posted: Sat Mar 12, 2005 9:32 pm
by calpis
Thank you for your reply. Aha~OK, I will try make clean first. I am using GCC 3.3 from Mac I believe, and with gcc_select I can choose gcc versions, and I did download the GCC 3.4.2, install. But somehow, I can't not see it or find it after install. I think the ./configure compile and install were done without errors althought I just simply did ./configure and make and install to try as I remember. I will give it a go again. I also have binutils installed as i586-elf as I was trying to set up cross compiler.

Thanks again.

Re:Developing on Mac

Posted: Wed Mar 16, 2005 10:12 am
by calpis
The make clean didn't make a differents. But instead, I did make -i all-gcc....and it worked.

I also have to change the prefix from the tutorial that I was following. I think it was from /bin to /usr/cross. Anyway, the -i is to ignore errors and it compiled, make and install it as i586-elf-gcc.

As far as I m concerned, it is done for now altho I haven't try to actually run it. I need to set up bochs disk image with grub first. Before then,

thanks alot~ :)

Re:Developing on Mac

Posted: Tue Mar 22, 2005 7:54 am
by calpis
The cross compiler works~! Thank you all.