Comments (5)
Hello Martin,
thanks for pointing this out. I will make a fix to correct this.
On 17 December 2012 10:36, Martin Englund [email protected] wrote:
in libdtrace/dt_open.c the default Solaris cpp is used:
const char _dtrace_defcpp = "/usr/ccs/lib/cpp"; / default cpp(1) to
invoke */which should be changed to the Linux path for cpp (or gcc -E)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47.
from linux.
I noticed when I tried to compile Ruby 2.0 with DTrace support:
http://github.com/ruby/ruby
I think it is a good test case!
from linux.
I've got a follow-up question from compiling Ruby 2 - any clue as to why probes.o
isn't relocatable?
dtrace -G -C -I. -I.ext/include/x86_64-linux -I./include -I. -s ./probes.d -o probes.o array.o eval.o gc.o hash.o load.o object.o parse.o string.o vm.o Invoking: ld -o probes.o -r probes.tmp.o /usr/lib/dtrace/64/drti.o linking miniruby gcc -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ansi -std=iso9899:199409 -L. -fstack-protector -rdynamic -Wl,-export-dynamic -fstack-protector -pie main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o vm_backtrace.o vm_trace.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o strlcpy.o strlcat.o setproctitle.o addr2line.o dmyext.o probes.o -lpthread -lrt -ldl -lcrypt -lm -o miniruby /usr/bin/ld: probes.o: relocation R_X86_64_32 against
.text' can not be used when making a shared object; recompile with -fPIC`
from linux.
Probably because i am stupid and didnt add the switch?
Another to add to my todo.
On Dec 18, 2012 1:05 PM, "Martin Englund" [email protected] wrote:
I've got a follow-up question from compiling Ruby 2 - any clue as to why
probes.o isn't relocatable?dtrace -G -C -I. -I.ext/include/x86_64-linux -I./include -I. -s ./probes.d
-o probes.o array.o eval.o gc.o hash.o load.o object.o parse.o string.o vm.o
Invoking: ld -o probes.o -r probes.tmp.o /usr/lib/dtrace/64/drti.o
linking miniruby
gcc -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter
-Wno-parentheses -Wno-long-long -Wno-missing-field-initializers
-Wunused-variable -Werror=pointer-arith -Werror=write-strings
-Werror=declaration-after-statement -Werror=implicit-function-declaration
-ansi -std=iso9899:199409 -L. -fstack-protector -rdynamic
-Wl,-export-dynamic -fstack-protector -pie main.o dmydln.o dmyencoding.o
dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o
dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o
gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o
parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o
regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o
sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o
variable.o compile.o debug.o iseq.o vm.o vm_dump.o vm_backtrace.o
vm_trace.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o
strlcpy.o strlcat.o setp roctitle.o addr2line.o dmyext.o probes.o -lpthread
-lrt -ldl -lcrypt -lm -o miniruby
/usr/bin/ld: probes.o: relocation R_X86_64_32 against `.text' can not be
used when making a shared object; recompile with -fPIC—
Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-11485079.
from linux.
Hahaha! Don't worry, you probably just didn't test it - that is not the same as being stupid :)
Let me know if you want help testing...
from linux.
Related Issues (20)
- Fedora 18 VM freeze on executing dtrace HOT 2
- /home/aschipor/Desktop/linux-master/build-3.13.0-37-generic/driver/ctf_hash.c:1:1: error: expected identifier or '(' before '.' token ../common/ctf/ctf_hash.c ^ HOT 1
- Build errors on Linux 4.7 HOT 2
- Question: Why aren't there any release tarballs here? HOT 2
- build error on SUSE Linux Enterprise Server HOT 2
- Dtrace is not collecting any data for NodeJS HOT 8
- make all failing HOT 6
- ..
- no build support for RPM or ARCH based distro's -_-
- implicit declaration of function copy_from_user, redefinition of 'struct in6_addr' HOT 3
- make all fails on Ubuntu 17.10 - field 'pr_altstack' has incomplete type HOT 4
- KP on Ubuntu 14.04 with std 3.13.0-145-generic
- Make load crashes RHEL 6.9 kernel
- Ubuntu building problems
- When I install dtrace on CentOS7,I can't pass it.
- unable to load on ubuntu 16.04(amazon image)
- make all falling on centos HOT 1
- 🥰
- make all failing on Kernel v5.9 because `proc_create` kernel api is changed HOT 1
- Broken link: libusdt (@chrisa github blog)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.