public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63142] New: gcc-cilk can not spawn a function template
@ 2014-09-02 16:13 yuantang at csail dot mit.edu
  2014-09-02 16:16 ` [Bug c++/63142] " pinskia at gcc dot gnu.org
  2014-09-17 14:44 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: yuantang at csail dot mit.edu @ 2014-09-02 16:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63142

            Bug ID: 63142
           Summary: gcc-cilk can not spawn a function template
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: yuantang at csail dot mit.edu

Created attachment 33437
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33437&action=edit
testbench to illustrate the bug

I have a following gcc (cilk branch) installed on my system. My OS is Ubuntu
14.04.
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/yuantang/tool_src/gcc-cilk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-cilk-src/configure
--prefix=/home/yuantang/tool_src/gcc-cilk --enable-languages=c,c++,fortran :
(reconfigured) ../gcc-cilk-src/configure
--prefix=/home/yuantang/tool_src/gcc-cilk --enable-languages=c,c++,fortran
--disable-multilib
Thread model: posix
gcc version 4.9.0 20130520 (experimental) (GCC) 

It looks like the cilk_spawn can not spawn a function template. It can spawn
any normal function but not function template, but icc and llvm-cilk can.

I compiled the attached testbench as follows:

$ gcc -o fib -fcilkplus -lcilkrts fib.cpp
/usr/bin/ld: /tmp/ccpNfrZC.o: undefined reference to symbol
'__cxa_rethrow@@CXXABI_1.3'
/usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Best!

-Yuan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/63142] gcc-cilk can not spawn a function template
  2014-09-02 16:13 [Bug c++/63142] New: gcc-cilk can not spawn a function template yuantang at csail dot mit.edu
@ 2014-09-02 16:16 ` pinskia at gcc dot gnu.org
  2014-09-17 14:44 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-09-02 16:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63142

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Try:
g++ -o fib -fcilkplus -lcilkrts fib.cpp

instead.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/63142] gcc-cilk can not spawn a function template
  2014-09-02 16:13 [Bug c++/63142] New: gcc-cilk can not spawn a function template yuantang at csail dot mit.edu
  2014-09-02 16:16 ` [Bug c++/63142] " pinskia at gcc dot gnu.org
@ 2014-09-17 14:44 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-09-17 14:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63142

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-17 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02 16:13 [Bug c++/63142] New: gcc-cilk can not spawn a function template yuantang at csail dot mit.edu
2014-09-02 16:16 ` [Bug c++/63142] " pinskia at gcc dot gnu.org
2014-09-17 14:44 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).