[LLVMbugs] [Bug 16015] New: Undefined reference to __builtin_init_heap_trampoline

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 15 09:22:42 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16015

            Bug ID: 16015
           Summary: Undefined reference to __builtin_init_heap_trampoline
           Product: dragonegg
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
          Assignee: baldrick at free.fr
          Reporter: scott+llvm+bugzilla at pakin.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10515
  --> http://llvm.org/bugs/attachment.cgi?id=10515&action=edit
Sample Go code that doesn't link with DragonEgg

Compiling and linking virtually any Go program with DragonEgg results in a
failure to find __builtin_init_heap_trampoline:

$ gccgo --version
gccgo (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gccgo trampoline.go -o trampoline
$ gccgo -fplugin=/usr/local/lib/dragonegg.so trampoline.go -o trampoline
/tmp/ccpimsLI.o:trampoline.go:function main.main: error: undefined reference to
'__builtin_init_heap_trampoline'
collect2: error: ld returned 1 exit status

It seems that this symbol is being used when compiling closures with nontrivial
bodies (i.e., that can't be optimized out).  Only very simple Go programs work
with DragonEgg.

-- Scott

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130515/12328dac/attachment.html>


More information about the llvm-bugs mailing list