build errors in unmodified unix/posix target

Keith Robertson kjrobert at alumni.uwaterloo.ca
Mon Dec 6 23:19:24 UTC 2004


After configuring rtems-4.6.2 with the following line:

$ cd build-rtems
$ ../rtems-4.6.2/configure --enable-posix --disable-itron
--disable-networking --disable-cxx --prefix=/opt/rtems-4.6-posix

And then running 'make' from the build-rtems directory as more or less
suggested in:

http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.6.2/share/rtems/html/started/started00060.html

I get the following errors:

Making all in fileio
make[5]: Entering directory
`/home/keithr/work/build-rtems/c/posix/tests/samples/fileio'
gcc --pipe -B../../../../../lib/ -B../../../../../posix/lib/ -specs
bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src-tests-samples\"
-DPACKAGE_TARNAME=\"rtems-c-src-tests-samples\"
-DPACKAGE_VERSION=\"4.6.2\"
-DPACKAGE_STRING=\"rtems-c-src-tests-samples\ 4.6.2\"
-DPACKAGE_BUGREPORT=\"rtems-bugs at rtems.com\"    -isystem
../../../../../posix/lib/include     -D_BSD_SOURCE  -O2 -g -Wall -ansi
-fasm  -o o-optimize/init.o -c
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c
In file included from
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:24:
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/system.h:30:56:
libchip/ata.h: No such file or directory
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/system.h:31:69:
libchip/ide_ctrl.h: No such file or directory
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:33:19:
dosfs.h: No such file or directory
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:47:
error: `msdos_ops' undeclared here (not in a function)
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:47:
error: initializer element is not constant
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:47:
error: (near initialization for `fs_table[0].fs_ops')
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:50:
error: initializer element is not constant
../../../../../../rtems-4.6.2/c/src/tests/samples/fileio/init.c:50:
error: (near initialization for `fs_table[0]')

<snipped more similar errors>

As gcc thinks, these files appear not to exist in the location that gcc
is looking for them in.

~/work/build-rtems/posix$ cd
~/work/build-rtems/c/posix/tests/samples/fileio

~/work/build-rtems/c/posix/tests/samples/fileio$ ls
../../../../../posix/lib/include
bsp.h     chain.h     console.h  iosupp.h   rtc.h    serdbgcnf.h
sys       timerdrv.h  zilog      bspopts.h clockdrv.h  coverhd.h 
motorola  rtems       serdbg.h   termios_printk_cnf.h  tmacros.h
buffer_test_io.h      confdefs.h imfs.h     ringbuf.h  rtems.h 
spurious.h            termios_printk.h      vmeintr.h

~/work/build-rtems/c/posix/tests/samples/fileio$ ls
../../../../../posix/lib/include/sys
filio.h  ioccom.h  ioctl.h  sockio.h  termios.h  ttycom.h


However, they do exist in:

~/work/rtems-4.6.2$ find -iname "ata.h"
./c/src/libchip/ide/ata.h
~/work/rtems-4.6.2$ find -iname "ide_ctrl.h"
./c/src/libchip/ide/ide_ctrl.h
~/work/rtems-4.6.2$ find -iname "dosfs.h" ./cpukit/libfs/src/dosfs/dosfs.h

It appears that fileio is just looking in the wrong place, however,
fixing this is currently out of the range of my understanding of the
rtems/autoconf/automake build system.  Before I dive into the
autoconf/automake manuals, does anybody have any suggestions?  Have I
missed something obvious?

Cheers,

Keith

P.S. Changing the appropriate source files to use an absolute path for
the above files seems to indicate that they are the correct ones.  The
test then appears to compile but fails while linking.  Seems to me there
is some larger configuration item missing than just the location of the
header files.






More information about the users mailing list