Hi All, I am trying to compile the mrfioc2 drivers using the tutorial (Getting started with EPICS on RTEMS). The target board for the mrfioc2 is mvme3100. The tool source files and packages are as follows: binutils-2.19 gcc-g++-4.3.2 gcc-core-4.3.2 / gcc-core-4.3.2-rtems4.9-20081214.diff newlib-1.16.0 / newlib-1.16.0-rtems4.9-20090324.diff rtems-addon-packages-4.9.2 rtems_libbspExt_1.5 I successfully compiled gcc to cross-compile for powerpc-mvme3100 and created an example application with base-3.14.12.1. For compiling the mrfioc2, i added the location of external products including epics_base, devlib2 and autosave in mrfioc2/configure/RELEASE. When i tried to compile the mrfioc2, i get the error message as follows: make -C ./configure install make[1]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure' perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/makeMakefile.pl O.linux-x86 ../.. perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/makeMakefile.pl O.RTEMS-mvme3100 ../.. mkdir O.Common make -C O.linux-x86 -f ../Makefile TOP=../.. T_A=linux-x86 install make[2]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure/O.linux-x86' perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/convertRelease.pl checkRelease make[2]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure/O.linux-x86' make -C O.RTEMS-mvme3100 -f ../Makefile TOP=../.. T_A=RTEMS-mvme3100 install make[2]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure/O.RTEMS-mvme3100' perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/convertRelease.pl checkRelease make[2]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure/O.RTEMS-mvme3100' make[1]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/configure' make -C ./mrfCommon install make[1]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon' make -C ./src install make[2]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon/src' perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/makeMakefile.pl O.linux-x86 ../../.. perl /usr/local/epics/base_ppc/rtems/base-3.14.12.1/bin/linux-x86/makeMakefile.pl O.RTEMS-mvme3100 ../../.. mkdir O.Common make -C O.linux-x86 -f ../Makefile TOP=../../.. T_A=linux-x86 install make[3]: Entering directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon/src/O.linux-x86' /usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -DDEBUG_PRINT -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../mrfFracSynth.c /usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -DDEBUG_PRINT -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../linkoptions.c /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../cardmap.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../object.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjAnalog.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjLong.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjBinary.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjMBB.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjMBBDirect.cpp /usr/bin/g++ -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -DDEBUG_PRINT -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -m32 -g -fPIC -MMD -I. -I../O.Common -I. -I../os/default -I.. -I../../../include/os/Linux -I../../../include -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include/os/Linux -I/usr/local/epics/base_ppc/rtems/base-3.14.12.1/include ../devObjWf.cpp ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsInt8[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsInt8[]]' ../devObjWf.cpp:26: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsUInt8[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsUInt8[]]' ../devObjWf.cpp:28: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsInt16[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsInt16[]]' ../devObjWf.cpp:30: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsUInt16[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsUInt16[]]' ../devObjWf.cpp:32: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsInt32[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsInt32[]]' ../devObjWf.cpp:34: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = epicsUInt32[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = epicsUInt32[]]' ../devObjWf.cpp:36: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = float[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = float[]]' ../devObjWf.cpp:38: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds ../mrf/object.h: In member function `std::auto_ptr<mrf::property<P> > mrf::Object::getProperty(const char*) [with P = double[]]': ../devObj.h:155: instantiated from `long int add_record_property(dbCommon*, DBLINK*) [with P = double[]]' ../devObjWf.cpp:40: instantiated from here ../mrf/object.h:277: error: invalid use of array with unspecified bounds make[3]: *** [devObjWf.o] Error 1 make[3]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon/src/O.linux-x86' make[2]: *** [install.linux-x86] Error 2 make[2]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon/src' make[1]: *** [src.install] Error 2 make[1]: Leaving directory `/usr/local/epics/base_ppc/rtems/Event/mrfioc2-2.0.0/mrfCommon' make: *** [mrfCommon.install] Error 2 Could you tell me how to do? Thanks in advance, -Young-gi
|