agoo: Compiling fails on Fedora 27 with gcc executable
Even though I have the right version of gcc:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
I cannot compile agoo:
$ gem install agoo
Building native extensions. This could take a while...
ERROR: Error installing agoo:
ERROR: Failed to build gem native extension.
current directory: /home/strzibny/.gem/ruby/gems/agoo-2.0.0/ext/agoo
/usr/bin/ruby -r ./siteconf20180504-3724-lxfgae.rb extconf.rb
creating Makefile
>>>>> Created Makefile for ruby version 2.4.3 on x86_64-linux <<<<<
current directory: /home/strzibny/.gem/ruby/gems/agoo-2.0.0/ext/agoo
make "DESTDIR=" clean
rm -f
rm -f agoo.so *.o *.bak mkmf.log .*.time
current directory: /home/strzibny/.gem/ruby/gems/agoo-2.0.0/ext/agoo
make "DESTDIR="
gcc-7 -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DPLATFORM_LINUX -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64 -o agoo.o -c agoo.c
make: gcc-7: Command not found
make: *** [Makefile:243: agoo.o] Error 127
make failed, exit code 2
The build step expects gcc to be called gcc-7 but on Fedora 27 it’s just called gcc. I believe this would be the case for other systems as well.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (16 by maintainers)
I appreciate your patience. I’m traveling now but will set up rails tomorrow and track that down.