[ruby-core:75159] [Ruby trunk Bug#12316] clang on Linux wrongly keep the inlined symbol

From: naruse@...
Date: 2016-04-24 14:56:35 UTC
List: ruby-core #75159
Issue #12316 has been reported by Yui NARUSE.

----------------------------------------
Bug #12316: clang on Linux wrongly keep the inlined symbol
https://bugs.ruby-lang.org/issues/12316

* Author: Yui NARUSE
* Status: Third Party's Issue
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Through clang-3.4 to clang-3.8 they wrongly keep the inlined symbols, and it cause compilation error.

```
compiling vm.c
linking miniruby
vm.o: In function `vm_getinstancevariable':
/home/naruse/ruby-clang/./vm_insnhelper.c:876: undefined reference to `vm_getivar'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:223: recipe for target 'miniruby' failed
make: *** [miniruby] Error 1
```

Note that Apple's and FreeBSD's following versions works fine.

```
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.3
Thread model: posix
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next