From paul.mcconkey at cambridgeimaging.co.uk Wed Aug 16 16:58:36 2006 From: paul.mcconkey at cambridgeimaging.co.uk (Paul McConkey) Date: Wed, 16 Aug 2006 17:58:36 +0100 Subject: Problems with -mcpu=assembler switch Message-ID: <59789F6B85725F4CAD78243CDDBA4C662226B1@SERVA.grange.local> Hi I have noticed a slight problem with the m68k-elf-as assembler in your current release of the ColdFire toolchain. I'm building for an mcf5282 target so I have set -mcpu=5282 and just get: "error: bad value (5282) for -mcpu= switch" although 5282 is listed as a valid CPU target by -help and --target-help. The 528x switch seems ok. Cheers, Paul. From carlos at codesourcery.com Wed Aug 16 17:34:38 2006 From: carlos at codesourcery.com (Carlos O'Donell) Date: Wed, 16 Aug 2006 13:34:38 -0400 Subject: [coldfire-gnu-discuss] Problems with -mcpu=assembler switch In-Reply-To: <59789F6B85725F4CAD78243CDDBA4C662226B1@SERVA.grange.local> References: <59789F6B85725F4CAD78243CDDBA4C662226B1@SERVA.grange.local> Message-ID: <20060816173437.GD2259@lios> On Wed, Aug 16, 2006 at 05:58:36PM +0100, Paul McConkey wrote: > I have noticed a slight problem with the m68k-elf-as assembler in your > current release of the ColdFire toolchain. > > I'm building for an mcf5282 target so I have set -mcpu=5282 and just > get: > > "error: bad value (5282) for -mcpu= switch" > > although 5282 is listed as a valid CPU target by -help and > --target-help. > > The 528x switch seems ok. Hi Paul! Thanks for your interested in our Sourcery G++ Coldfire toolchains. 1. Are you running the assembler directly or through GCC? 2. Which version of the toolchain are you using? (m68k-elf-gcc --version) The compiler does not accept -mcpu=5282, it only accepts 528x. The assembler accepts -mcpu=5282. Ufnortuantely the output of "m68k-elf-gcc --target-help" is sometimes confusing since it includes help information for the assembler. The 5281, 5282, 5283 are the same as 528x. I will file an internal issue so that the compiler and assembler have similar options. Cheers, Carlos. -- Carlos O'Donell CodeSourcery carlos at codesourcery.com (650) 331-3385 x716 From carlos at codesourcery.com Wed Aug 16 17:40:48 2006 From: carlos at codesourcery.com (Carlos O'Donell) Date: Wed, 16 Aug 2006 13:40:48 -0400 Subject: [coldfire-gnu-discuss] Problems with -mcpu=assembler switch In-Reply-To: <20060816173437.GD2259@lios> References: <59789F6B85725F4CAD78243CDDBA4C662226B1@SERVA.grange.local> <20060816173437.GD2259@lios> Message-ID: <20060816174047.GE2259@lios> On Wed, Aug 16, 2006 at 01:34:38PM -0400, Carlos O'Donell wrote: > The 5281, 5282, 5283 are the same as 528x. I will file an internal issue > so that the compiler and assembler have similar options. Sorry, I'm off by one here, that list should be 5280, 5281, 5282. Cheers, Carlos. -- Carlos O'Donell CodeSourcery carlos at codesourcery.com (650) 331-3385 x716 From paul.mcconkey at cambridgeimaging.co.uk Wed Aug 16 17:48:05 2006 From: paul.mcconkey at cambridgeimaging.co.uk (Paul McConkey) Date: Wed, 16 Aug 2006 18:48:05 +0100 Subject: [coldfire-gnu-discuss] Problems with -mcpu=assembler switch Message-ID: <59789F6B85725F4CAD78243CDDBA4C662226B4@SERVA.grange.local> Hi Carlos, Thanks for the quick reply! OK, I'm new to the GNU toolchain so maybe I should have tested with the assembler direct! I'm calling the assembler through m68k-elf-gcc, but I'm looking at the help output from m68k-elf-as. Versions are m68k-elf-gcc 4.1-14 and m68k-elf-as 2.16.91 Cheers, Paul. From dan at codesourcery.com Wed Aug 16 17:51:26 2006 From: dan at codesourcery.com (Daniel Jacobowitz) Date: Wed, 16 Aug 2006 13:51:26 -0400 Subject: [coldfire-gnu-discuss] Problems with -mcpu=assembler switch In-Reply-To: <59789F6B85725F4CAD78243CDDBA4C662226B4@SERVA.grange.local> References: <59789F6B85725F4CAD78243CDDBA4C662226B4@SERVA.grange.local> Message-ID: <20060816175124.GM7153@caradoc.them.org> On Wed, Aug 16, 2006 at 06:48:05PM +0100, Paul McConkey wrote: > Hi Carlos, > > Thanks for the quick reply! OK, I'm new to the GNU toolchain so maybe I > should have tested with the assembler direct! > > I'm calling the assembler through m68k-elf-gcc, but I'm looking at the > help output from m68k-elf-as. To expand on what Carlos said: it probably should be considered a bug that the options for the compiler and assembler are different. Also, we recommend that you always run GCC rather than the assembler directly - on some platforms GCC knows a lot about how to invoke the assembler and linker correctly. So, you're doing everything right. -- Daniel Jacobowitz CodeSourcery From carlos at codesourcery.com Wed Aug 16 17:52:45 2006 From: carlos at codesourcery.com (Carlos O'Donell) Date: Wed, 16 Aug 2006 13:52:45 -0400 Subject: [coldfire-gnu-discuss] Problems with -mcpu=assembler switch In-Reply-To: <59789F6B85725F4CAD78243CDDBA4C662226B4@SERVA.grange.local> References: <59789F6B85725F4CAD78243CDDBA4C662226B4@SERVA.grange.local> Message-ID: <20060816175244.GF2259@lios> On Wed, Aug 16, 2006 at 06:48:05PM +0100, Paul McConkey wrote: > Thanks for the quick reply! OK, I'm new to the GNU toolchain so maybe I > should have tested with the assembler direct! > > I'm calling the assembler through m68k-elf-gcc, but I'm looking at the > help output from m68k-elf-as. Calling the assembler through m68k-elf-gcc is the right thing to do, the compiler driver knows how to pass the right options. > Versions are m68k-elf-gcc 4.1-14 and m68k-elf-as 2.16.91 Ok. Glad we could help! Cheers, Carlos. -- Carlos O'Donell CodeSourcery carlos at codesourcery.com (650) 331-3385 x716 From davidwu at arcturusnetworks.com Thu Aug 31 14:40:40 2006 From: davidwu at arcturusnetworks.com (David Wu) Date: Thu, 31 Aug 2006 10:40:40 -0400 Subject: how to build m68k-uclinux from source tar ball Message-ID: Hello, I have downloaded the source tar ball(freescale-coldfire-4.1-14-m68k-uclinux.src.tar.bz2) and found out lots of hardcoded path in freescale-coldfire-4.1-14-m68k-uclinux.sh. I wonder how to modify it so I can build it myself. Thanks, -- David From nathan at codesourcery.com Thu Aug 31 15:38:14 2006 From: nathan at codesourcery.com (Nathan Sidwell) Date: Thu, 31 Aug 2006 16:38:14 +0100 Subject: [coldfire-gnu-discuss] how to build m68k-uclinux from source tar ball In-Reply-To: References: Message-ID: <44F70266.7010801@codesourcery.com> David Wu wrote: > Hello, > > I have downloaded the source tar > ball(freescale-coldfire-4.1-14-m68k-uclinux.src.tar.bz2) and found out > lots of hardcoded path in freescale-coldfire-4.1-14-m68k-uclinux.sh. I > wonder how to modify it so I can build it myself. the build script intentionally controls the build environment and records exactly the commands we used to build the toolchain. You should be able to modify it for your environment, but be aware that it can be tricky. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk