oasis icon indicating copy to clipboard operation
oasis copied to clipboard

Error bootstrapping pkgsrc

Open pfr-dev opened this issue 3 years ago • 7 comments

See the screenshot for the full output but ultimately it fails with:

configure: error: in `/src/pkgsrc/work/bmake':
configure: error: no acceptable C compiler found in $PATH

2022-02-02_@_20-36-57-scrot

I couldn't find config.log

pfr-dev avatar Feb 02 '22 10:02 pfr-dev

Hmm... config.log is pretty crucial to figuring out what's going wrong. Is it available in /src/pkgsrc/work/bmake? If not, maybe you can look for it with find /src/pkgsrc/work -name config.log.

michaelforney avatar Feb 02 '22 10:02 michaelforney

Found it:

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 bmake configure 20200524, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ configure --prefix=/src/pkgsrc/work --with-default-sys-path=/src/pkgsrc/work/share/mk --with-machine-arch=x86_64

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

hostname = oasis
uname -m = x86_64
uname -r = 5.9.11
uname -s = Linux
uname -v = #1 Tue Dec 1 19:35:16 UTC 2020

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

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

PATH: /pkg/bin
PATH: /pkg/sbin
PATH: .
PATH: /bin
PATH: /sbin
PATH: /usr/sbin


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

configure:2492: checking for gcc
configure:2522: result: no
configure:2585: checking for cc
configure:2632: result: no
configure:2688: checking for cl.exe
configure:2718: result: no
configure:2742: error: in `/src/pkgsrc/work/bmake':
configure:2744: error: no acceptable C compiler found in $PATH
See `config.log' for more details

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

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

CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GCC=''
GREP=''
INSTALL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='bmake'
PACKAGE_STRING='bmake 20200524'
PACKAGE_TARNAME='bmake'
PACKAGE_URL=''
PACKAGE_VERSION='20200524'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
_MAKE_VERSION='20200524'
ac_ct_CC=''
ac_exe_suffix=''
bindir='${exec_prefix}/bin'
bmake_path_max=''
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
default_sys_path=''
diff_u=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
filemon_h='no'
force_machine=''
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
machine=''
machine_arch=''
mandir='${datarootdir}/man'
mksrc=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/src/pkgsrc/work'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
use_filemon='no'
use_meta='yes'

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

/* confdefs.h */
#define PACKAGE_NAME "bmake"
#define PACKAGE_TARNAME "bmake"
#define PACKAGE_VERSION "20200524"
#define PACKAGE_STRING "bmake 20200524"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""

configure: exit 1

pfr-dev avatar Feb 02 '22 23:02 pfr-dev

Ah, okay. Looks like you don't have gcc installed. It is currently built outside of the oasis repository, but you can install prebuilt binaries as mentioned in the install guide:

cd /
git remote add toolchain https://github.com/michaelforney/oasis-toolchain
git fetch toolchain '--depth=1'
git config --add branch.master.merge toolchain/master
git merge --allow-unrelated-histories

If you want to build your own, the script I used to build it is available at https://github.com/oasislinux/ports/blob/master/gcc/build.

Make sure you also add sets.devel to fs in your config.lua to install binutils and other development tools.

michaelforney avatar Feb 03 '22 00:02 michaelforney

Thank you! I kind of assumed the qemu image would have included the toolchain, thanks for clarifying.

pfr-dev avatar Feb 03 '22 03:02 pfr-dev

I've followed those instructions, not getting a new error.

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

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

  $ configure --prefix=/src/pkgsrc/work --with-default-sys-path=/src/pkgsrc/work/share/mk --with-machine-arch=x86_64

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

hostname = oasis
uname -m = x86_64
uname -r = 5.9.11
uname -s = Linux
uname -v = #1 Tue Dec 1 19:35:16 UTC 2020

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

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

PATH: /pkg/bin
PATH: /pkg/sbin
PATH: .
PATH: /bin
PATH: /sbin
PATH: /usr/sbin


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

configure:2492: checking for gcc
configure:2508: found /bin/gcc
configure:2519: result: gcc
configure:2748: checking for C compiler version
configure:2757: gcc --version >&5
gcc (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2768: $? = 0
configure:2757: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/libexec/gcc/x86_64-linux-musl/11.2.0/lto-wrapper
Target: x86_64-linux-musl
Configured with: ./configure --build=x86_64-linux-musl --prefix= --libdir=/lib --disable-assembly --disable-decimal-float --disable-gnu-indirect-function --disable-libgomp --disable-libitm --disable-libmpx --disable-libmudflap --disable-libquadmath --disable-lto --disable-multilib --disable-nls --disable-plugin --disable-werror --enable-default-pie --enable-initfini-array --enable-languages=c,c++ --enable-libstdcxx-time=rt --enable-tls --with-sysroot=/ --with-build-sysroot=/ --with-debug-prefix-map=/src/ports/gcc/src= --with-native-system-header-dir=/include
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (GCC) 
configure:2768: $? = 0
configure:2757: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2768: $? = 1
configure:2757: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2768: $? = 1
configure:2788: checking whether the C compiler works
configure:2810: gcc    conftest.c  >&5
gcc: fatal error: cannot execute 'as': execvp: No such file or directory
compilation terminated.
configure:2814: $? = 1
configure:2852: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "bmake"
| #define PACKAGE_TARNAME "bmake"
| #define PACKAGE_VERSION "20200524"
| #define PACKAGE_STRING "bmake 20200524"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2857: error: in `/src/pkgsrc/work/bmake':
configure:2859: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
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_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=gcc

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

CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GCC=''
GREP=''
INSTALL=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='[email protected]'
PACKAGE_NAME='bmake'
PACKAGE_STRING='bmake 20200524'
PACKAGE_TARNAME='bmake'
PACKAGE_URL=''
PACKAGE_VERSION='20200524'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
_MAKE_VERSION='20200524'
ac_ct_CC='gcc'
ac_exe_suffix=''
bindir='${exec_prefix}/bin'
bmake_path_max=''
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
default_sys_path=''
diff_u=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
filemon_h='no'
force_machine=''
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
machine=''
machine_arch=''
mandir='${datarootdir}/man'
mksrc=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/src/pkgsrc/work'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
use_filemon='no'
use_meta='yes'

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

/* confdefs.h */
#define PACKAGE_NAME "bmake"
#define PACKAGE_TARNAME "bmake"
#define PACKAGE_VERSION "20200524"
#define PACKAGE_STRING "bmake 20200524"
#define PACKAGE_BUGREPORT "[email protected]"
#define PACKAGE_URL ""

configure: exit 77

pfr-dev avatar Mar 27 '22 05:03 pfr-dev

gcc: fatal error: cannot execute 'as': execvp: No such file or directory

It doesn't look like you've installed binutils. Make sure you have binutils or sets.devel in your fs table in config.lua.

michaelforney avatar Mar 29 '22 05:03 michaelforney

Thanks, I think I'm in over my head a little, I appreciate the help though. I'll keep plugging away at it. Cheers

pfr-dev avatar Apr 05 '22 04:04 pfr-dev