What steps will reproduce the problem?
1. Install Ubuntu on a 64bit system
2. download ACC 0.8
3. enter make command
What is the expected output? What do you see instead?
It should build with no error. However, if it is running on a 64bit
machine, there will be errors.
What version of the product are you using? On what operating system?
ACCv0.7, v0.8 & v0.8-200903, x86_64-linux-gnu
Please provide any additional information below.
vi world.mc
acc hello.acc world.mc
gcc hello.c world.c
hello.acc:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before
‘{’ token
hello.acc:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’
before ‘{’ token
world.mc: In function ‘main’:
world.mc:2: warning: incompatible implicit declaration of built-in
function ‘printf’
Building the source code...
make
cd src && make all_bs make[1]: Entering directory
`/home/steve/aspectc/ACCv0.8/src'
gcc -c libacc.c
ar rvs ../lib/libacc.a libacc.o
r - libacc.o
gcc -O2 -o ../bin/acc Parse.c Decls.c Unparse.c Bodies.c AST.c IR.c
DefTab.c Types.c Scanning.c Error.c Coder.c Mapping.c Arith.c
weaveutil.c Weave.c Semantic.c main.c lexer.c output.c XARITH.c
xerror.c XCODER.c pointcut.c symboltable.c y.tab.c grts.c
weaveutil.c: In function ‘insert_one_advice’:
weaveutil.c:467: warning: cast from pointer to integer of different size
weaveutil.c: In function ‘match_join_point’:
weaveutil.c:2067: warning: cast to pointer from integer of different
size
lexer.c: In function ‘create_file_pos’:
lexer.c:1178: warning: format ‘%d’ expects type ‘int’, but argument 2
has type ‘long unsigned int’
lexer.c:1178: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘long unsigned int’
lexer.c:1179: warning: format ‘%d’ expects type ‘int’, but argument 2
has type ‘long unsigned int’
output.c: In function ‘logGenDecls’:
output.c:355: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘long int’
xerror.c: In function ‘ERROR’:
xerror.c:107: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘long int’
grts.c: In function ‘yyPrintOpaque’:
grts.c:154: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long int’
grts.c: In function ‘yyPrintIndex’:
grts.c:160: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long int’
grts.c: In function ‘yyPrint_INT’:
grts.c:166: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long int’
grts.c: In function ‘yyPrint_POS’:
grts.c:172: warning: format ‘%d’ expects type ‘int’, but argument 2 has
type ‘long int’
grts.c: In function ‘yyTerm’:
grts.c:232: warning: format ‘%s’ expects type ‘char *’, but argument 2
has type ‘int’
./bin/tacc -acc-option="-n" -bootstrappath=.. -O2 -o ../bin/acc
Parse.c Decls.c Unparse.c Bodies.c AST.c IR.c DefTab.c Types.c
Scanning.c Error.c Coder.c Mapping.c Arith.c weaveutil.c Weave.c
Semantic.c main.c lexer.c output.c XARITH.c xerror.c XCODER.c
pointcut.c symboltable.c y.tab.c grts.c matchinfo.acc matchaa.acc
acc: pointcut.c:250: setACName: Assertion `pCutInfo != ((void *)0)'
failed.
Aborted
make[1]: *** [all_bs] Error 1
make[1]: Leaving directory `/home/steve/aspectc/ACCv0.8/src'
make: *** [all] Error 2
GCC...
gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)
Original issue reported on code.google.com by lzmliz...@gmail.com on 13 May 2010 at 7:14
Original issue reported on code.google.com by
lzmliz...@gmail.com
on 13 May 2010 at 7:14