Dear All,
I recently tried compiling the latest version of the
Motor record (V5-2 for 3.14.4) using the Linux -> PPC cross-compiler
that I built from the GNU/Wind River sources available from the SNS site.
The compilation failed due to a compiler problem:
/export/home/ajf/tornado2.2/ppc/host/x86-linux/bin/ccppc -c -D_POSIX_SOURCE
-DCPU=PPC604 -DvxWorks -include /export/home/ajf/tornado2.2/ppc/target/h/vxWorks.h
-ansi -O3 -Wall -mcpu=604 -mstrict-align -mlongcall -fno-implicit-templates
-fno-builtin -I. -I.. -I../../../include/os/vxWorks -I../../../include
-I/export/home/ajf/epics3.14.4/base/include/os/vxWorks
-I/export/home/ajf/epics3.14.4/base/include
-I/export/home/ajf/tornado2.2/ppc/target/h ../drvOms.cc
.../drvOms.cc: In function `int set_status(int, int)':
.../drvOms.cc:228: warning: `bool ls_active' might be used
uninitialized in this function
.../drvOms.cc:878:
sorry, not implemented: `tree_list' not supported by dump_type
....
....
I eventually tracked down the problem
as being due to a change that was made to the GNU compiler between
gcc-2.95 and gcc-2.95.1. I have patched my copy of the SNS compiler
sources and this enabled me to compile successfully.
Interestingly, when cross-compiling from Solaris, using the
cross-compiler supplied with Tornado 2.2, this problem
does not occur. I can only assume then that the compiler which
Wind River supplies is being built from a slightly different set
of source files than the one on the SNS site.
I was also surprised that for the built compiler:
ccppc -v gives:
Reading specs from ./../lib/gcc-lib/powerpc-wrs-vxworks/gcc-2.96/specs
gcc version gcc-2.96 (2.96+) 19990621 AltiVec
which seems to indicate that the sources are from gcc-2.96, i.e. a release
which should have already included the patches that I had to apply.
If anyone else is having problems compiling the motor record and is
interested in the patched compiler code, I would be happy
to supply it.
Cheers,
Andy
--------------------------------------------------------------------
Observatory Sciences Limited Email: [email protected]
William James House Tel: 44 - (0)1223 - 508259
Cowley Road Fax: 44 - (0)1223 - 508258
Cambridge, CB4 0WX, UK http://www.observatorysciences.co.uk