This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Duane, Thanks for the pointer! I had mistyped the path to the cross compiler so EMILE reverted to using the host's compiler. So I fixed that and it's now correctly using the right assembler, but it still errors out: make -C first TARGET=m68k-linux /opt/crosstool/gcc-3.4.5-glibc-2.3.6/m68k-mac-linux-gnu/bin/m68k-mac-linux-gnu-as -I/home/g1powermac/Desktop/emile-0.12/first --defsym SCSI_SUPPORT=1 -o first_scsi.o first.S first.S: Assembler messages: first.S:7: Error: unknown pseudo-op: `.cpu' make[1]: *** [first_scsi.o] Error 1 make: *** [first] Error That line in first.S is this: .cpu 68000 Any ideas? Also, this part of EMILE compiled fine when using a buildroot toolchain but it died later on because it needs glibc, which is what leads me to use crosstool. Thanks, J Silverman --- On Wed, 8/13/08, Duane Ellis <duane@duaneellis.com> wrote: > From: Duane Ellis <duane@duaneellis.com> > Subject: Re: m68k Toolchain issues > To: "J Silverman" <g1powermac@yahoo.com> > Cc: crossgcc@sourceware.org > Date: Wednesday, August 13, 2008, 9:47 PM > J Silverman wrote: > > Hi All, > > > > I'm using the most recent crosstools to make a > m68k toolchain. It compiles successfully and I then go > about using it to compile a Macintosh bootloader called > EMILE (http://emile.sourceforge.net/). When it reaches an > assembly source file, it dies with an odd error: > > > > make -C first TARGET=m68k-linux > > as -I/home/g1powermac/Desktop/emile-0.12/first > --defsym SCSI_SUPPORT=1 -o first_scsi.o first.S > > > [SNIP] > > >> It's as if the assembler doesn't recognize > the m68k assembly code. Does anyone know the reason why > this is happening? > > > Your suspicions are correct. > > 1) It seems you are invoking the "host" version > of "as" - and not the > target verion of as., for arm that might be: arm-elf-as, > I'm not sure > of the correct name for your target, ie: m68k-elf-as > > The "un-adorned" name "as" is always > the host version. > > 2) It seems - I do not have your makefile in front of me - > the Makefile > is not invoking "GCC" to assemble the .S file. By > convention, > .(little-s) is assembler, and .(captial-S) is first ran > through the C > pre-processor. That convention might not hold for the > Makefiles you are > working with. > > -Duane -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |