flrc-lib
flrc-lib copied to clipboard
Parsing error when using icc to expand macros
If we change gcc in this line of pilicl to icc, then pillar2c would fail due to a parsing error like this:
Program failed to parse at line 3419.
Unparseable symbol at that point => __builtin_expect.
pillar2c: pillar2c.main.cpp:504: int main(int, char**): Assertion `0' failed.
I got similar error with gcc:
Making all in future
make[2]: Entering directory '/home/ron/dev/smly/flrc-lib/toolkit/future'
sed -e 's,[@]bindir[@],/home/ron/dev/smly/libs/bin,g' -e 's,[@]datadir[@],/home/ron/dev/smly/libs/share,g' -e 's,[@]includedir[@],/home/ron/dev/smly/libs/include,g' -e 's,[@]libdir[@],/home/ron/dev/smly/libs/lib
,g' < ../../scripts/linux/pilicl.in > ../../scripts/linux/pilicl
chmod +x ../../scripts/linux/pilicl
sed -e 's,[@]bindir[@],/home/ron/dev/smly/libs/bin,g' -e 's,[@]datadir[@],/home/ron/dev/smly/libs/share,g' -e 's,[@]includedir[@],/home/ron/dev/smly/libs/include,g' -e 's,[@]libdir[@],/home/ron/dev/smly/libs/lib
,g' < ../../scripts/linux/pilink.in > ../../scripts/linux/pilink
chmod +x ../../scripts/linux/pilink
FLRC_BIN_DIR=../../pillar2c/src FLRC_DATA_DIR=../../pillar2c/src FLRC_INCLUDE_DIR=../../include ../../scripts/linux/pilicl -I"../.."/include -p2c -c -Zi -nologo -I. -std=c99 /Fo"ptkfutures_p2c_sequential.obj" pt
kfuture.c
gcc -w -m64 -E -I../../include -D__pillar__ -I../../include -I. -DUSE_STDINT -DTBB -DNO_PRSCALL -D__pillar__ -D__pillar2c__ -DPLSR_LINUX -DLINUX ../../include/prt/prtcodegenerator.h ptkfuture.c | sed "s/__extens
ion__//g" > ptkfuture.c.cpp.c
../../pillar2c/src/pillar2c -p2c-no-yields -p2c-spill-rare -p2c-gcc -p2c-intel64 -p2c-outbase:ptkfuture.c.p2c -p2c-force-pcdecl:../../pillar2c/src/pcdecl.txt ptkfuture.c.cpp.c
Program failed to parse at line 2989.
Unparseable symbol at that point => __builtin_expect.
pillar2c: pillar2c.main.cpp:504: int main(int, char**): Assertion `0' failed.
../../scripts/linux/pilicl: line 97: 29028 Aborted (core dumped) ${FLRC_BIN_DIR}/pillar2c $P2C_ARGS -p2c-outbase:"$PILLAR_INPUT".p2c -p2c-force-pcdecl:${FLRC_DATA_DIR}/pcdecl.txt "$PILLAR_INPUT".
cpp.c
make[2]: *** [Makefile:510: ptkfutures_p2c_sequential.o] Error 134
make[2]: Leaving directory '/home/ron/dev/smly/flrc-lib/toolkit/future'
make[1]: *** [Makefile:334: all-recursive] Error 1
make[1]: Leaving directory '/home/ron/dev/smly/flrc-lib/toolkit'
make: *** [Makefile:422: all-recursive] Error 1