[Orp-bugs] [ orp-Bugs-499413 ] Compilation error
Status: Beta
Brought to you by:
cierniak
From: <no...@so...> - 2002-05-08 07:42:46
|
Bugs item #499413, was opened at 2002-01-04 16:05 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=384545&aid=499413&group_id=25513 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Daniel Bonniot (bonniot) Assigned to: Nobody/Anonymous (nobody) Summary: Compilation error Initial Comment: I just downloaded orp20011116.tgz and got a compilation error. Here is the relevant compilation log: g++ -c -w -g -O0 -D_DEBUG -DORP_STATS -DSIGNAL_DEBUG -DORP_POSIX -D_REENTRANT -D__SMP__ -DMONITOR_STO -DGC_REWORK -I../../../arch/ia32/base -I../../../os/Linux/include -I../../../common/include -I../../../common/jit_utils/include -I../../../interface -I../../../base_natives/common -I../../../arch/ia32/ia32_o1_jit -I../../../arch/ia32/dump -I../../../arch/ia32/debugger/include root_set_enum_ia32.cpp -o Linux/dbg/root_set_enum_ia32.o In file included from root_set_enum_ia32.cpp:39: /usr/include/asm/spinlock.h: In function `void read_lock(rwlock_t *)': /usr/include/asm/spinlock.h:157: parse error before `::' /usr/include/asm/spinlock.h:158: confused by earlier errors, bailing out make[2]: *** [Linux/dbg/root_set_enum_ia32.o] Error 1 make[2]: Leaving directory `/usr/local/src/orp/arch/ia32/base' make[1]: *** [../../arch/ia32/base/Linux/dbg/libvm.a] Error 2 make[1]: Leaving directory `/usr/local/src/orp/mains/orp' make: *** [dbg] Error 2 Here is a short description of my system: Linux 2.4.14 (Debian) glibc: 2.2.4 g++ version 2.95.4 I see that the file is included inside conditionals: #ifdef ORP_POSIX #ifdef __linux__ #include <asm/spinlock.h> #endif #include "platform2.h" #endif I have unfortunately no knowledge about asm instructions in C (the parse error occurs inside one). So I attach a tar file with the two asm/*.h include files that seem to provoke the problem. ---------------------------------------------------------------------- Comment By: Max Gilead (gilead) Date: 2002-05-08 09:42 Message: Logged In: YES user_id=1832 It can be solved by putting space between colons (both in ORP sources and kernel sources) ie. instead '::' it should be ': :'. I don't know how kernel can be compileable with this but I'm far from being an expert here. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=384545&aid=499413&group_id=25513 |