Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] rbenv fails to compile ruby
@ 2021-10-18 18:26 jesseadams
  2021-10-18 18:46 ` jesseadams
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jesseadams @ 2021-10-18 18:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

New issue by jesseadams on void-packages repository

https://github.com/void-linux/void-packages/issues/33621

Description:
### System

* xuname:  `Void 5.13.19_1 x86_64 GenuineIntel uptodate rFF`
* package:  gcc-10.2.1pre1_3

### Expected behavior

`rbenv install 3.0.2` downloads and compiles ruby 3.0.2

### Actual behavior

```
Installing ruby-3.0.2...

BUILD FAILED (VoidLinux rolling using ruby-build 20210928-4-g2b9424d)

Inspect or clean up the working tree at /tmp/ruby-build.20211018112122.8745.2yqy2e
Results logged to /tmp/ruby-build.20211018112122.8745.log

Last 10 log lines:
checking for ld... ld
checking for gcc-ar... gcc-ar
checking for g++... g++
checking for gcc-nm... gcc-nm
checking for gcc-ranlib... gcc-ranlib
checking for gcc... (cached) gcc
checking whether the C compiler works... no
configure: error: in `/tmp/ruby-build.20211018112122.8745.2yqy2e/ruby-3.0.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
```

### Steps to reproduce the behavior

```
# Install rbenv
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash

# Load rbenv into your environment
export PATH=~/.rbenv/bin:$PATH
rbenv init

# Instal ruby 3.0.2
rbenv install 3.0.2
```

This is my first attempt at using Void Linux, so I'm sorry if it is something simple that I just overlooked.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rbenv fails to compile ruby
  2021-10-18 18:26 [ISSUE] rbenv fails to compile ruby jesseadams
@ 2021-10-18 18:46 ` jesseadams
  2021-10-18 19:30 ` jesseadams
  2021-10-18 19:30 ` [ISSUE] [CLOSED] " jesseadams
  2 siblings, 0 replies; 4+ messages in thread
From: jesseadams @ 2021-10-18 18:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 8839 bytes --]

New comment by jesseadams on void-packages repository

https://github.com/void-linux/void-packages/issues/33621#issuecomment-946061980

Comment:
Output of config.log:

```
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/home/jesse/.rbenv/versions/2.4.2 --enable-shared

## --------- ##
## Platform. ##
## --------- ##

hostname = wula
uname -m = x86_64
uname -r = 5.13.19_1
uname -s = Linux
uname -v = #1 SMP Sat Sep 18 18:18:26 UTC 2021

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/jesse/.rbenv/libexec
PATH: /home/jesse/.rbenv/plugins/ruby-build/bin
PATH: /home/jesse/.rbenv/shims
PATH: /home/jesse/.rbenv/bin
PATH: /home/jesse/.rbenv/shims
PATH: /home/jesse/.rbenv/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2961: checking for ruby
configure:2992: result: false
configure:3052: checking build system type
configure:3066: result: x86_64-pc-linux-gnu
configure:3149: checking host system type
configure:3162: result: x86_64-pc-linux-gnu
configure:3182: checking target system type
configure:3195: result: x86_64-pc-linux-gnu
configure:3969: checking for gcc
configure:3985: found /bin/gcc
configure:3996: result: gcc
configure:4225: checking for C compiler version
configure:4234: gcc --version >&5
configure:4245: $? = 0
configure:4234: gcc -v >&5
configure:4245: $? = 0
configure:4234: gcc -V >&5
configure:4245: $? = 0
configure:4234: gcc -qversion >&5
configure:4245: $? = 0
configure:4265: checking whether the C compiler works
configure:4287: gcc  -O3 -Wno-error=shorten-64-to-32  -I/home/jesse/.rbenv/versions/2.4.2/include  -L/home/jesse/.rbenv/versions/2.4.2/lib  conftest.c  >&5
configure:4291: $? = 0
configure:4329: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4334: error: in `/tmp/ruby-build.20211017195201.990.QZacaH/ruby-2.4.2':
configure:4336: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build='x86_64-pc-linux-gnu'
ac_cv_env_CCC_set=''
ac_cv_env_CCC_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set='set'
ac_cv_env_CFLAGS_value=' -O3 -Wno-error=shorten-64-to-32 '
ac_cv_env_CPPFLAGS_set='set'
ac_cv_env_CPPFLAGS_value='-I/home/jesse/.rbenv/versions/2.4.2/include '
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXFLAGS_set=''
ac_cv_env_CXXFLAGS_value=''
ac_cv_env_CXX_set=''
ac_cv_env_CXX_value=''
ac_cv_env_LDFLAGS_set='set'
ac_cv_env_LDFLAGS_value='-L/home/jesse/.rbenv/versions/2.4.2/lib '
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_cflags_set=''
ac_cv_env_cflags_value=''
ac_cv_env_cppflags_set=''
ac_cv_env_cppflags_value=''
ac_cv_env_cxxflags_set=''
ac_cv_env_cxxflags_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host='x86_64-pc-linux-gnu'
ac_cv_path_BASERUBY='false'
ac_cv_prog_ac_ct_CC='gcc'
ac_cv_target='x86_64-pc-linux-gnu'

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
ARFLAGS=''
AS=''
ASFLAGS=''
ASMEXT=''
BASERUBY='echo executable host ruby is required.  use --with-baseruby option.; false'
BOOTSTRAPRUBY=''
BTESTRUBY=''
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CC='gcc'
CCDLFLAGS=''
CC_VERSION=''
CC_VERSION_MESSAGE=''
CFLAGS=' -O3 -Wno-error=shorten-64-to-32 '
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
CONFIGURE=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS='-I/home/jesse/.rbenv/versions/2.4.2/include '
CPPOUTFILE=''
CROSS_COMPILING=''
CSRCFLAG=''
CXX=''
CXXFLAGS=''
DEFS=''
DESTDIR=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
DLNOBJ=''
DOT=''
DOXYGEN=''
DTRACE=''
DTRACE_EXT=''
DTRACE_OBJ=''
DTRACE_OPT=''
DTRACE_REBUILD=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
ENCOBJS=''
ENCSTATIC=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTDLDFLAGS=''
EXTLDFLAGS=''
EXTOBJS=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GNU_LD=''
GREP=''
HAVE_BASERUBY='no'
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STATIC_LIBRARY=''
LD=''
LDFLAGS='-L/home/jesse/.rbenv/versions/2.4.2/lib '
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_A_OBJS=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='2'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='4'
MKDIR_P=''
NACL_LIB_PATH=''
NACL_SDK_ROOT=''
NACL_SDK_VARIANT=''
NACL_TOOLCHAIN=''
NM=''
NROFF=''
NULLCMD=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PLATFORM_DIR=''
POSTLINK=''
PRELOADENV=''
PREP=''
PYTHON=''
RANLIB=''
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_BASE_NAME='ruby'
RUBY_EXEC_PREFIX=''
RUBY_INSTALL_NAME=''
RUBY_LIB_VERSION=''
RUBY_LIB_VERSION_STYLE=''
RUBY_PROGRAM_VERSION='2.4.2'
RUBY_SEARCH_PATH=''
RUBY_SO_NAME=''
RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}'
RUNRUBY=''
RUNRUBY_COMMAND=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
SYMBOL_PREFIX=''
TEENY='2'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WERRORFLAG=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
arch=''
archincludedir=''
archlibdir=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
cflags=''
codesign=''
configure_args=''
cppflags=''
cxxflags=' ${optflags} ${debugflags} ${warnflags}'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libdirname=''
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/home/jesse/.rbenv/versions/2.4.2'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyarchdir=''
rubyarchhdrdir=''
rubyarchprefix=''
rubyhdrdir=''
rubylibdir=''
rubylibprefix=''
rubysitearchprefix=''
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitearchdir=''
sitearchhdrdir=''
sitearchincludedir=''
sitearchlibdir=''
sitedir=''
sitehdrdir=''
sitelibdir=''
strict_warnflags=''
sysconfdir='${prefix}/etc'
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux'
target_vendor='pc'
try_header=''
vendorarchdir=''
vendorarchhdrdir=''
vendordir=''
vendorhdrdir=''
vendorlibdir=''
warnflags=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define CANONICALIZATION_FOR_MATHN 1

configure: exit 77
```

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: rbenv fails to compile ruby
  2021-10-18 18:26 [ISSUE] rbenv fails to compile ruby jesseadams
  2021-10-18 18:46 ` jesseadams
@ 2021-10-18 19:30 ` jesseadams
  2021-10-18 19:30 ` [ISSUE] [CLOSED] " jesseadams
  2 siblings, 0 replies; 4+ messages in thread
From: jesseadams @ 2021-10-18 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

New comment by jesseadams on void-packages repository

https://github.com/void-linux/void-packages/issues/33621#issuecomment-946097173

Comment:
It turns out my install was hosed. It's likely due to poor wifi adapter or bad disk. Huge shout out to aedinius and quinq on IRC for help resolving.

We determined this with `sudo xbps-pkgdb -a`. Then we resolved by:

```
sudo rm -rf /var/cache/xbps/*
sudo xbps-install -S
sudo xbps-pkgdb -a 2>&1 | cut -d: -f2 | grep -v 'hash mismatch' | grep -v ERROR | sort | uniq | xargs sudo xbps-install -f -y


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ISSUE] [CLOSED] rbenv fails to compile ruby
  2021-10-18 18:26 [ISSUE] rbenv fails to compile ruby jesseadams
  2021-10-18 18:46 ` jesseadams
  2021-10-18 19:30 ` jesseadams
@ 2021-10-18 19:30 ` jesseadams
  2 siblings, 0 replies; 4+ messages in thread
From: jesseadams @ 2021-10-18 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]

Closed issue by jesseadams on void-packages repository

https://github.com/void-linux/void-packages/issues/33621

Description:
### System

* xuname:  `Void 5.13.19_1 x86_64 GenuineIntel uptodate rFF`
* package:  gcc-10.2.1pre1_3

### Expected behavior

`rbenv install 3.0.2` downloads and compiles ruby 3.0.2

### Actual behavior

```
Installing ruby-3.0.2...

BUILD FAILED (VoidLinux rolling using ruby-build 20210928-4-g2b9424d)

Inspect or clean up the working tree at /tmp/ruby-build.20211018112122.8745.2yqy2e
Results logged to /tmp/ruby-build.20211018112122.8745.log

Last 10 log lines:
checking for ld... ld
checking for gcc-ar... gcc-ar
checking for g++... g++
checking for gcc-nm... gcc-nm
checking for gcc-ranlib... gcc-ranlib
checking for gcc... (cached) gcc
checking whether the C compiler works... no
configure: error: in `/tmp/ruby-build.20211018112122.8745.2yqy2e/ruby-3.0.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
```

### Steps to reproduce the behavior

```
# Install rbenv
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash

# Load rbenv into your environment
export PATH=~/.rbenv/bin:$PATH
rbenv init

# Install ruby 3.0.2
rbenv install 3.0.2
```

This is my first attempt at using Void Linux, so I'm sorry if it is something simple that I just overlooked.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-18 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-18 18:26 [ISSUE] rbenv fails to compile ruby jesseadams
2021-10-18 18:46 ` jesseadams
2021-10-18 19:30 ` jesseadams
2021-10-18 19:30 ` [ISSUE] [CLOSED] " jesseadams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).