[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pc386 fails to build
- Date: Mon, 28 Sep 1998 11:15:47 -0700
- From: erik.ivanenko at utoronto.ca (erik.ivanenko)
- Subject: pc386 fails to build
These are the error messages:
***
/home/cross-19980908/tools/build-i386-rtems/c/src/lib/libbsp/i386/pc386/console
(all)
cd console; make all
/home/cross-19980909/egcs-1.1b-binutils-2.9.1.0.10-newlib-1.8.0/i386-rtems/bin/i386-rtems-gcc
--pipe -Wall -ansi -fasm -g
-B/home/cross-19980908/tools/build-i386-rtems/pc386/lib/ -specs
bsp_specs -qrtems -networking -O4 -fomit-frame-pointer -c -o
o-pc386/console.o
../../../../../../../../rtems-980923/c/src/lib/libbsp/i386/pc386/console/console.c
../../../../../../../../rtems-980923/c/src/lib/libbsp/i386/pc386/console/console.c:111:
parse error before string constant
../../../../../../../../rtems-980923/c/src/lib/libbsp/i386/pc386/console/console.c:124:
parse error before `2'
...
<snip> Many lines removed.
....
../../../../../../../../rtems-980923/c/src/lib/libbsp/i386/pc386/console/console.c:136:
parse error before `}'
make[1]: *** [o-pc386/console.o] Error 1
make: *** [all] Error 1
Since line 111 started all of this, it is the function definition:
void __assert (const char *file, int line, const char *msg)
The error is that the file:
/home/cross-19980909/egcs-1.1b-binutils-2.9.1.0.10-newlib-1.8.0/i386-rtems/lib/gcc-lib/i386-rtems/egcs-2.91.57/include/assert.h
is being included and that file contains this macro instead of the
declaration of __assert:
#define __assert(expression, file, lineno) \
(__eprintf ("%s:%u: failed assertion `%s'\n", \
file, lineno, "expression"), 0)
This is the egcs-1.1b assert macro. Compiling with the -E flag shows
that the definition of __assert is being replaced with this macro
expansion. The assert.h from newlib-1.8.0 is not being included.
newlib-1.8.0 properly defines the __assert function.
How do we fix this?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: Card for Erik Ivanenko
Url : http://rtems.rtems.org/pipermail/rtems-users/attachments/19980928/bce59796/attachment.vcf