Next cygwin/powerpc Problem (Was RE: Getting reacquainted -- Cygw in/powerpc-rtems Build Error)
Mills, John M.
Mills.J at ems-t.com
Tue Jan 4 18:03:02 UTC 2005
Mark - Thanks for your note.
-----Original Message-----
From: Mark Dean [mailto:M.Dean at sstl.co.uk]
...
Subject: RE: Getting reacquainted -- Cygwin/powerpc-rtems Build Error
MD- Looks to me that you are trying exactly the config we're trying to
use. I've had
MD- nothing but problems with RTEMS/cygwin. If you get a configuration
working I'd be REALLY
MD- REALLY interested to know what versions of RTEMS and the tools you used
(and any
MD- patches).
I'll put a summary together.
I got much further when I rebuilt my tools and RTEMS-4.6.2 with couple of
minor changes in my scripts:
1. I disabled NLS for gcc (probably not an issue),
2. I did not '--enable-shared' for gcc (this wasn't available to build for
PPC anyway),
3. I enabled 'version-specific-runtime-libs' (probably not an issue yet),
and
4. For the RTEMS build I specified '--prefix=<my_toolchain_prefix>' (which
_was_ probably
the real key).
(I got this lead by installing the powerpc-rtems tool binaries on a Linux
box and running:
'$ powerpc-rtems-gcc -v'.)
NEXT PROBLEM:
All PPC BSP targets now build and install successfully _except_ MVMV2307,
mcp750, and mtx603e. These targets all fail to build 'tests/tmtests/tm27',
but they all build OK if this subdirectory is removed from the build list!
The problems all seem to arise from one included file: <bsp.h>, giving
errors such as:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++
powerpc-rtems-gcc --pipe -B../../../../../lib/
-B../../../../../mvme2307/lib/ -specs bsp_specs -qrtems -mcpu=604 -mmultiple
-mstring -mstrict-align -meabi -msdata=eabi -O4 -g -Wall -ansi -fasm
-o o-optimize/tm27.nxe o-optimize/task1.o
../../../../../mvme2307/lib/no-dpmem.rel
../../../../../mvme2307/lib/no-event.rel
../../../../../mvme2307/lib/no-msg.rel ../../../../../mvme2307/lib/no-mp.rel
../../../../../mvme2307/lib/no-part.rel
../../../../../mvme2307/lib/no-signal.rel
../../../../../mvme2307/lib/no-timer.rel
../../../../../mvme2307/lib/no-rtmon.rel
o-optimize/task1.o(.text+0x29c): In function `Task_1':
/usr/src/rtems-4.6.2/c/src/tests/tmtests/tm27/task1.c:92: undefined
reference to `Install_tm27_vector'
o-optimize/task1.o(.text+0x2b0):/usr/src/rtems-4.6.2/c/src/tests/tmtests/tm2
7/task1.c:105: undefined reference to `Cause_tm27_intr'
[... similar errors elided ...]
o-optimize/task1.o(.text+0x430): In function `Isr_handler':
/usr/src/rtems-4.6.2/c/src/tests/tmtests/tm27/task1.c:257: undefined
reference to `Clear_tm27_intr'
[... elided ...]
o-optimize/task1.o(.text+0x524):/usr/src/rtems-4.6.2/c/src/tests/tmtests/tm2
7/task1.c:268: undefined reference to `Cause_tm27_intr'
collect2: ld returned 1 exit status
make[5]: *** [o-optimize/tm27.exe] Error 1
make[5]: Leaving directory
`/tmp/build/rtems/powerpc-rtems/c/mvme2307/tests/tmtests/tm27'
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++
>>>> QUESTION: Does this ring a bell for anyone?
MD- The weirdest problem I've had is that gcc builds ok but takes 3
hours! it then won't
MD- compile the powerpc-rtems bsp with various error messages.
Yes - 'leisurely' is the kindest word I would use. No way I could afford to
use this for production!
- Mills
John M. Mills
Staff Engineer
EMS Technologies
660 Engineering Drive
Norcross, GA 30092
770.263.9200 ext4882
More information about the users
mailing list