Math Functions Error
Eric Norum
norume at aps.anl.gov
Wed Sep 14 14:21:44 UTC 2005
>
>
> I think that the toolchain has problems with this. Here's the
> comment on the CVS commit where I added this flag:
>
> RCS file: /usr1/CVS/rtems/make/custom/uC5282.cfg,v
> Working file: uC5282.cfg
> head: 1.3
> branch:
> locks: strict
> access list:
> symbolic names:
> rtems-4-6-99-2: 1.3
> keyword substitution: kv
> total revisions: 3; selected revisions: 3
> description:
> ----------------------------
> revision 1.3
> date: 2005/02/08 20:56:20; author: ericn; state: Exp; lines: +2 -2
> Put -m5200 back in link-edit commands until proper versions of gcc
> (which take
> -m528x as an order to load the -m5200 multilib variants) are widely
> available.
> ----------------------------
>
>
>
>
>
>
> I believe that the gcc which I'm using (m68k-rtems4.7-gcc (GCC)
> 3.4.3) is still wrong and still needs the explicit -m5200 option to
> the linker.
>
> Cross-development is *such* fun. :-(
>
>
> On Sep 13, 2005, at 8:15 PM, Chris Johns wrote:
>
>> Further to Joel's post about the lack of -lm on the command line ....
>>
>> Mike Bertosh wrote:
>>
>>>
>>> m68k-rtems4.7-gcc --pipe -B/opt/rtems/rtems-4.7/bin/m68k-rtems4.7/
>>> mcf5235/lib/ -
>>> specs bsp_specs -qrtems -g -Wall -O4 -fomit-frame-pointer -
>>> g -m528x -
>>> m5200 -qnolinkcmds -o o-optimize/ax5235.nxe o-optimize/
>>> ramprog.o o-
>>>
>>
>> ... you have -m528x and -m5200 yet you compiled only with -m528x.
>> I am not sure which one will be used by the linker to select the
>> correct libraries but it may be the last one, ie -m5200. It will
>> not make a big difference for this device but it would be a good
>> idea to only have the processor variant you want on the command
>> line in case it did.
>>
>>
>>> optimize/dioconfg.o o-optimize/channel3.o o-optimize/spddrive.o o-
>>> optimize/strings.o o-optimize/io.o o-optimize/interupt.o o-
>>> optimize/delay.o o-optimize/eeprom.o o-
>>> optimize/encoder.o o-optimize/commands.o o-optimize/queues.o o-
>>> optimize/normal.o o-optimize/startamx.o o-optimize/eecode2.o o-
>>> optimize/eepromio.o o-
>>> optimize/tempsens.o /opt/rtems/rtems-4.7/bin/m68k-rtems4.7/
>>> mcf5235/lib/no-
>>> dpmem.rel /opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/no-
>>> msg.rel /opt/rtems/rtems-4.7/bin/m68k-rtems4.7/mcf5235/lib/no-
>>> mp.rel /opt/rtems/rtems-
>>> 4.7/bin/m68k-rtems4.7/mcf5235/lib/no-part.rel /opt/rtems/
>>> rtems-4.7/bin/m68k-
>>> rtems4.7/mcf5235/lib/no-signal.rel -Wl,-Tlinkcmds
>>>
>> --
>> Chris Johns
>>
>
> --
> Eric Norum <norume at aps.anl.gov>
> Advanced Photon Source
> Argonne National Laboratory
> (630) 252-4793
>
>
--
Eric Norum <norume at aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
More information about the users
mailing list