Sue Witherspoon wrote:
Hi,
I'm trying to build EPICS 3.14.9 for RTEMS-pc386 and I get the
following error. It appears that the CONFIG files don't include
the cross-compiler include directory. I can't seem to figure out which
config file to add the necessary include path. My environment is the
following:
EPICS 3.14.9
RTEMS 4.9.1
HOST Linux Red-Hat 4.0 ia32
gcc 4.3.2
Hi Sue.
The following info is IIRC - it's been a while I last
looked into a similar problem:
Have you installed the rtems cross-compiler into
a location different from the install location specified
when building the cross compiler (gcc configure options
--prefix & friends) ?
If so, then the first-choice of builtin search paths for
system headers, executables, libraries, etc.
won't work. Normally, gcc tries
a few alternatives which should work but this
is overridden by EPICS defining (for historical reasons?)
CONFIG.CrossCommon:
export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/
I say in CONFIG.Common.RTEMS
unexport GCC_EXEC_PREFIX
and relocating my cross-toolchain then works.
For debugging this sort of problems gcc's
-print-<xyz>
options (not literally 'xyz' but the type of info you're
interested in) are your friends -- RTM. Make sure you
try these from an EPICS Makefile so that all other
options and environment variables as defined by
the EPICS build system are in effect.
HTH
-- Till
Any help and clues would be greatly appreciated.
Sue Witherspoon
TJNAF
Accelerator Software Controls
gmake -C O.RTEMS-pc386 -f ../Makefile TOP=../../.. T_A=RTEMS-pc386
install
gmake[3]: Entering directory
`/a/devsite/dvlepics/epics/R3.14.9.J1/src/libCom/O.RTEMS-pc386'
/usr/csite/pubtools/rtems/4.9.1/bin/i386-rtems4.9-gcc --pipe
-B/usr/csite/pubtools/rtems/4.9.1/i386-rtems4.9/pc386/lib/ -specs
bsp_specs -qrtems -fasm -c -mtune=i386 -ansi -O2
-g -g -Wall -I. -I.. -I../../../src/libCom/bucketLib
-I../../../src/libCom/ring -I../../../src/libCom/calc
-I../../../src/libCom/cvtFast -I../../../src/libCom/cppStd
-I../../../src/libCom/cxxTemplates -I../../../src/libCom/dbmf
-I../../../src/libCom/ellLib -I../../../src/libCom/env
-I../../../src/libCom/error -I../../../src/libCom/fdmgr
-I../../../src/libCom/freeList -I../../../src/libCom/gpHash
-I../../../src/libCom/iocsh -I../../../src/libCom/logClient
-I../../../src/libCom/macLib -I../../../src/libCom/misc
-I../../../src/libCom/osi -I../../../src/libCom/taskwd
-I../../../src/libCom/timer -I../../../src/libCom/tsDefs
-I../../../include/os/RTEMS -I../../../include
../../../src/libCom/bucketLib/bucketLib.c
../../../src/libCom/bucketLib/bucketLib.c:20:19: error: stdio.h: No
such file or directory
../../../src/libCom/bucketLib/bucketLib.c:21:20: error: stdlib.h: No
such file or directory
../../../src/libCom/bucketLib/bucketLib.c:22:20: error: string.h: No
such file or directory
../../../src/libCom/bucketLib/bucketLib.c:23:20: error: limits.h: No
such file or directory
../../../src/libCom/bucketLib/bucketLib.c:24:18: error: math.h: No
such file or directory
../../../src/libCom/bucketLib/bucketLib.c:25:18: error: time.h: No
such file or directory
In file included from ../../../src/libCom/bucketLib/bucketLib.c:29:
../../../src/libCom/freeList/freeList.h:17:20: error: stddef.h: No
such file or directory
In file included from ../../../src/libCom/bucketLib/bucketLib.c:29:
../../../src/libCom/freeList/freeList.h:29: error: expected '=', ',',
';', 'asm' or '__attribute__' before 'freeListItemsAvail'
In file included from ../../../src/libCom/bucketLib/bucketLib.c:35:
../../../src/libCom/error/errMdef.h:32:27: error: stdarg.h: No such
file or directory
In file included from ../../../src/libCom/error/errMdef.h:42,
from ../../../src/libCom/bucketLib/bucketLib.c:35:
../../../src/libCom/error/errlog.h:45: error: expected declaration
specifiers or '...' before 'va_list'
../../../src/libCom/error/errlog.h:49: error: expected declaration
specifiers or '...' before 'va_list'
../../../src/libCom/error/errlog.h:81: error: expected declaration
specifiers or '...' before 'va_list'
../../../src/libCom/bucketLib/bucketLib.c: In function
'bucketUnsignedCompare':
../../../src/libCom/bucketLib/bucketLib.c:184: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c:184: error: (Each
undeclared identifier is reported only once
../../../src/libCom/bucketLib/bucketLib.c:184: error: for each
function it appears in.)
../../../src/libCom/bucketLib/bucketLib.c: In function
'bucketPointerCompare':
../../../src/libCom/bucketLib/bucketLib.c:207: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c: In function
'bucketStringCompare':
../../../src/libCom/bucketLib/bucketLib.c:222: warning: implicit
declaration of function
'strcmp'../../../src/libCom/bucketLib/bucketLib.c:229: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c: In function 'bucketCreate':
../../../src/libCom/bucketLib/bucketLib.c:320: warning: implicit
declaration of function 'fprintf'
../../../src/libCom/bucketLib/bucketLib.c:320: warning: incompatible
implicit declaration of built-in function 'fprintf'
../../../src/libCom/bucketLib/bucketLib.c:320: error: 'stderr'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c:321: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c:327: error: 'CHAR_BIT'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c:345: warning: incompatible
implicit declaration of built-in function 'fprintf'
../../../src/libCom/bucketLib/bucketLib.c:355: warning: implicit
declaration of function
'calloc'../../../src/libCom/bucketLib/bucketLib.c:355: warning:
incompatible implicit declaration of built-in function 'calloc'
../../../src/libCom/bucketLib/bucketLib.c:367: warning: implicit
declaration of function 'free'
../../../src/libCom/bucketLib/bucketLib.c:367: warning: incompatible
implicit declaration of built-in function 'free'
../../../src/libCom/bucketLib/bucketLib.c: In function 'bucketFree':
../../../src/libCom/bucketLib/bucketLib.c:389: warning: incompatible
implicit declaration of built-in function 'free'
../../../src/libCom/bucketLib/bucketLib.c: In function
'bucketLookupAndRemoveItem':
../../../src/libCom/bucketLib/bucketLib.c:474: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c: In function
'bucketLookupItem':
../../../src/libCom/bucketLib/bucketLib.c:560: error: 'NULL'
undeclared (first use in this function)
../../../src/libCom/bucketLib/bucketLib.c: In function 'bucketShow':
../../../src/libCom/bucketLib/bucketLib.c:580: warning: implicit
declaration of function
'printf'../../../src/libCom/bucketLib/bucketLib.c:580: warning:
incompatible implicit declaration of built-in function 'printf'
../../../src/libCom/bucketLib/bucketLib.c:604: warning: implicit
declaration of function 'sqrt'
../../../src/libCom/bucketLib/bucketLib.c:604: warning: incompatible
implicit declaration of built-in function 'sqrt'
gmake[3]: *** [bucketLib.o] Error 1
gmake[3]: Leaving directory
`/a/devsite/dvlepics/epics/R3.14.9.J1/src/libCom/O.RTEMS-pc386'
gmake[2]: *** [install.RTEMS-pc386] Error 2
gmake[2]: Leaving directory
`/a/devsite/dvlepics/epics/R3.14.9.J1/src/libCom'
gmake[1]: *** [libCom.install] Error 2
gmake[1]: Leaving directory `/a/devsite/dvlepics/epics/R3.14.9.J1/src'
gmake: *** [src.install] Error 2
- References:
- Help building EPICS 3.14.9 for RTEMS Sue Witherspoon
- Navigate by Date:
- Prev:
Re: weird behaviour of SNL test program running on Soft IOC on LINUX Oleg Makarov
- Next:
Re: weird behaviour of SNL test program running on Soft IOC on LINUX J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Help building EPICS 3.14.9 for RTEMS Sue Witherspoon
- Next:
Re: Help building EPICS 3.14.9 for RTEMS Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|