My compilation of ipal ( from icarus verilog ) fails with the following, and I cannot see what's wrong.



make[1]: Entering directory `/home/seger/src/fpga/icarus/ipal/libipal'
gcc -DIPAL_PA=\"/home/seger/src/fpga/icarus/tools//share/ipal\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MALLOC_H=1 -g -O2 -I./.. -c pal_alloc.c
gcc -DIPAL_PA=\"/home/seger/src/fpga/icarus/tools//share/ipal\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MALLOC_H=1 -g -O2 -I./.. -c pal_array.c
flex -Ppal_ -s -opal_lexor.c ./pal_lexor.lex
bison -t -d -p pal_ -o pal_parse.c ./pal_parse.y
gcc -DIPAL_PA=\"/home/seger/src/fpga/icarus/tools//share/ipal\" -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MALLOC_H=1 -g -O2 -I./.. -c pal_lexor.c
In file included from pal_priv.h:25,
from ./pal_lexor.lex:4:
../ipal.h:41: error: conflicting types for `pal_alloc'
pal_lexor.c:298: error: previous declaration of `pal_alloc'
../ipal.h:42: error: conflicting types for `pal_free'
pal_lexor.c:300: error: previous declaration of `pal_free'
pal_lexor.c: In function `pal__create_buffer':
pal_lexor.c:1359: warning: passing arg 1 of `pal_alloc' makes pointer from integer without a cast
pal_lexor.c:1368: warning: passing arg 1 of `pal_alloc' makes pointer from integer without a cast
pal_lexor.c: In function `pal_ensure_buffer_stack':
pal_lexor.c:1525: warning: passing arg 1 of `pal_alloc' makes pointer from integer without a cast
pal_lexor.c: In function `pal__scan_buffer':
pal_lexor.c:1567: warning: passing arg 1 of `pal_alloc' makes pointer from integer without a cast
pal_lexor.c: In function `pal__scan_bytes':
pal_lexor.c:1616: warning: passing arg 1 of `pal_alloc' makes pointer from integer without a cast
pal_lexor.c: In function `pal_lex_destroy':
pal_lexor.c:1756: warning: passing arg 1 of `pal_free' from incompatible pointer type
pal_lexor.c: At top level:
pal_lexor.c:1787: error: conflicting types for `pal_alloc'
../ipal.h:41: error: previous declaration of `pal_alloc'
pal_lexor.c:1804: error: conflicting types for `pal_free'
../ipal.h:42: error: previous declaration of `pal_free'
make[1]: *** [pal_lexor.o] Error 1
make[1]: Leaving directory `/home/seger/src/fpga/icarus/ipal/libipal'


I am using the developement snapshot though and thought that this perhaps was the problem. Have anyone experienced something similar ?

/ regards, Lars Segerlund

Reply via email to