Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Can't install gem, compilation error #9

Open
andreyzhelnin-st opened this issue May 26, 2022 · 0 comments
Open

Can't install gem, compilation error #9

andreyzhelnin-st opened this issue May 26, 2022 · 0 comments

Comments

@andreyzhelnin-st
Copy link

While trying to compile Gem, getting the following error.

Installing pyroscope 0.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20220526-20050-1ehft17.rb extconf.rb
creating Makefile

current directory:
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope
make "DESTDIR=" clean
rm -f
rm -f pyroscope_c.so  *.o  *.bak mkmf.log .*.time

current directory:
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/usr/include    -fPIC  -m64 -o pyroscope.o -c pyroscope.c
rm -f pyroscope_c.so
gcc -shared -o pyroscope_c.so pyroscope.o -L. -L/usr/lib64 -L/usr/lib64
-L/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope/lib
-L. -Wl,-z,relro -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-z,relro   -m64 -lpyroscope.rbspy -lrustdeps  -lruby  -lm   -lc
/usr/bin/ld:
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope/lib/librustdeps.a(_UPT_accessors.o):
unable to initialize decompress status for section .debug_info
/usr/bin/ld:
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope/lib/librustdeps.a(_UPT_accessors.o):
unable to initialize decompress status for section .debug_info
/opt/path/vendor/bundle/ruby/2.6.0/gems/pyroscope-0.2.0/ext/pyroscope/lib/librustdeps.a:
error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [pyroscope_c.so] Error 1

make failed, exit code 2

Debug info:

$ uname -a
Linux 4 #1 SMP Tue Jul 14 18:16:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-12)

$ ld --version
GNU ld version 2.29.1-31.amzn2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant