Bug appears during "make" of the gcc cilk plus compiler in the objects folder

Bug appears during "make" of the gcc cilk plus compiler in the objects folder

<p>So when I do make in my objects directory for the cilk plus complier, I have this bug that pops up</p>
<p>libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -o gcov-dump
/home/cute_rj/gcc-cilk-obj/./prev-gcc/xg++ -B/home/cute_rj/gcc-cilk-obj/./prev-gcc/ -B/home/cute_rj/gcc-cilk/i686-pc-linux-gnu/bin/ -nostdinc++ -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/home/cute_rj/gcc-cilk-src/libstdc++-v3/libsupc++ -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Icp -I/home/cute_rj/gcc-cilk-src/gcc -I/home/cute_rj/gcc-cilk-src/gcc/cp -I/home/cute_rj/gcc-cilk-src/gcc/../include -I/home/cute_rj/gcc-cilk-src/gcc/../libcpp/include -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber/bid -I../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libbacktrace /home/cute_rj/gcc-cilk-src/gcc/cp/cp-lang.c -o cp/cp-lang.o
/home/cute_rj/gcc-cilk-obj/./prev-gcc/xg++ -B/home/cute_rj/gcc-cilk-obj/./prev-gcc/ -B/home/cute_rj/gcc-cilk/i686-pc-linux-gnu/bin/ -nostdinc++ -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/home/cute_rj/gcc-cilk-src/libstdc++-v3/libsupc++ -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Icp -I/home/cute_rj/gcc-cilk-src/gcc -I/home/cute_rj/gcc-cilk-src/gcc/cp -I/home/cute_rj/gcc-cilk-src/gcc/../include -I/home/cute_rj/gcc-cilk-src/gcc/../libcpp/include -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber/bid -I../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libbacktrace /home/cute_rj/gcc-cilk-src/gcc/cp/call.c -o cp/call.o
/home/cute_rj/gcc-cilk-obj/./prev-gcc/xg++ -B/home/cute_rj/gcc-cilk-obj/./prev-gcc/ -B/home/cute_rj/gcc-cilk/i686-pc-linux-gnu/bin/ -nostdinc++ -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/home/cute_rj/gcc-cilk-src/libstdc++-v3/libsupc++ -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Icp -I/home/cute_rj/gcc-cilk-src/gcc -I/home/cute_rj/gcc-cilk-src/gcc/cp -I/home/cute_rj/gcc-cilk-src/gcc/../include -I/home/cute_rj/gcc-cilk-src/gcc/../libcpp/include -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber/bid -I../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libbacktrace /home/cute_rj/gcc-cilk-src/gcc/cp/decl.c -o cp/decl.o
/home/cute_rj/gcc-cilk-obj/./prev-gcc/xg++ -B/home/cute_rj/gcc-cilk-obj/./prev-gcc/ -B/home/cute_rj/gcc-cilk/i686-pc-linux-gnu/bin/ -nostdinc++ -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/home/cute_rj/gcc-cilk-src/libstdc++-v3/libsupc++ -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Icp -I/home/cute_rj/gcc-cilk-src/gcc -I/home/cute_rj/gcc-cilk-src/gcc/cp -I/home/cute_rj/gcc-cilk-src/gcc/../include -I/home/cute_rj/gcc-cilk-src/gcc/../libcpp/include -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber/bid -I../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libbacktrace /home/cute_rj/gcc-cilk-src/gcc/cp/expr.c -o cp/expr.o
/home/cute_rj/gcc-cilk-obj/./prev-gcc/xg++ -B/home/cute_rj/gcc-cilk-obj/./prev-gcc/ -B/home/cute_rj/gcc-cilk/i686-pc-linux-gnu/bin/ -nostdinc++ -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/include -I/home/cute_rj/gcc-cilk-src/libstdc++-v3/libsupc++ -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/home/cute_rj/gcc-cilk-obj/prev-i686-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -Icp -I/home/cute_rj/gcc-cilk-src/gcc -I/home/cute_rj/gcc-cilk-src/gcc/cp -I/home/cute_rj/gcc-cilk-src/gcc/../include -I/home/cute_rj/gcc-cilk-src/gcc/../libcpp/include -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libdecnumber/bid -I../libdecnumber -I/home/cute_rj/gcc-cilk-src/gcc/../libbacktrace /home/cute_rj/gcc-cilk-src/gcc/cp/pt.c -o cp/pt.o
/home/cute_rj/gcc-cilk-src/gcc/cp/pt.c: In function ‘tree_node* maybe_get_template_decl_from_type_decl(tree)’:
/home/cute_rj/gcc-cilk-src/gcc/cp/pt.c:7064:1: internal compiler error: in propagate_threaded_block_debug_into, at tree-ssa-threadedge.c:623
maybe_get_template_decl_from_type_decl (tree decl)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [cp/pt.o] Error 1
make[3]: Leaving directory `/home/cute_rj/gcc-cilk-obj/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/home/cute_rj/gcc-cilk-obj'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/home/cute_rj/gcc-cilk-obj'
make: *** [all] Error 2
</p>
<p>I don't how to explain the bug but this is what I get. Any thoughts? I have a vm of Kubuntu 12 in virtual box.</p>

12 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I am not sure about this error, as I am not seeing this error in my Suse or Ubuntu boxes. Can you add the "--disable-checking" to your configuration command and then retry doing make?

Before you do that, please delete all the files in your object directory.

Thanks,

 

Balaji V. Iyer.

well the funny thing is i was able to build it now my stupid computer can't find <cilk/cilk.h> and before you ask i did set the environment variables

did you link it during your gcc compilation with -lcilkrts?

Hi Ryan,

    Did you try to give the location of the include directory with the following command: -I<INSTALL_DIR>/include?

 

Thanks,

 

Balaji V. Iyer.

leo -yes 

Balaji -This is using the code from the examples given from the website - > Structured Parallel Programming

Here are my env variables... I know you said you set them up, but maybe they're pointing somewhere else?

export LD_LIBRARY_PATH=/opt/gcc-cilk/lib64 # change to /lib if 32-bit machine
export LIBRARY_PATH=/opt/gcc-cilk/lib64 # change to /lib if 32-bit machine

By the way, it was also painful to do this at the beginning for me too...

# Set CPLUS to a supported compiler, i.e. one of: icpc, g++, icl, cl.
#CPLUS = icpc
CPLUS = g++
#CPLUS = icl
#CPLUS = cl

#----------------------------------------------------------------------------a
# You should not need to change the lines below.
#----------------------------------------------------------------------------

ifdef CPLUS
CPLUS := $(strip $(CPLUS))
endif

ifeq ($(CPLUS),icpc)
# Settings for using Intel C++ compiler 12.1 or later on Linux or Mac OS.
CPLUS_FLAGS = -std=c++0x -openmp -O2 -xHost -ansi-alias -DHAVE_OPENMP=1 -DHAVE_CILKPLUS=1
LIBS = -ltbb
endif

ifeq ($(CPLUS),g++)
# Settings for using gcc on Linux or Mac OS
CPLUS_FLAGS = -std=c++0x -O2 -DHAVE_OPENMP=1 -DHAVE_CILKPLUS=1 -fcilkplus -lcilkrts
LIBS = -ltbb -lgomp
endif

cute_rj@Cute:~/code/src/sort/build$ $PATH
bash: /home/cute_rj/gcc-cilk/bin:/home/cute_rj/gcc-cilk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
cute_rj@Cute:~/code/src/sort/build$ $LIBRARY_PATH
bash: /home/cute_rj/tbb/build/linux_ia32_gcc_cc4.9.0_libc2.15_kernel3.2.0_release:/home/cute_rj/gcc-cilk/lib: No such file or directory

Here's mine

cute_rj@Cute:~/code/src/sort/build$ $LD_LIBRARY_PATH
bash: /home/cute_rj/tbb/build/linux_ia32_gcc_cc4.9.0_libc2.15_kernel3.2.0_release:/home/cute_rj/gcc-cilk/lib: No such file or directory
[1]+ Done kate config.inc (wd: ~/code/config)
(wd now: ~/code/src/sort/build)

Did you try Balaji's suggestion?

gcc -I/home/cute_rj/gcc-cilk/include fib.c -lcilkrts -fcilkplus

says no such file on my cilk.h -,-

dont even know what the -l suppsed to do. I don't think it works like that lol 

Login to leave a comment.