Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
4
votes
1
answers
3283
views
Gcc configuration error
I am trying to build GNU toolchain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html#_stage_1_gcc on Fedora Virtual Box Image. I am getting error saying Configure: error: cannot run /bin/sh ../gcc-svn/config.sub when I try to configure gcc using the command. ../gc...
I am trying to build GNU toolchain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html#_stage_1_gcc on Fedora Virtual Box Image.
I am getting error saying
Configure: error: cannot run /bin/sh ../gcc-svn/config.sub
when I try to configure gcc using the command.
../gcc-svn/configure --target=or32-linux --prefix=$PREFIX \
--disable-libssp --srcdir=../gcc-svn --enable-languages=c \
--without-headers --enable-threads=single --disable-libgomp \
--disable-libmudflap
The full content of config.log is as below
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.64. Invocation command line was
$ ../gcc-svn/configure --target=or32-linux --prefix= --disable-libssp --srcdir=../gcc-svn --enable-languages=c --without-headers --enable-threads=single --disable-libgomp --disable-libmudflap
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = x86_64
uname -r = 3.11.7-300.fc20.x86_64
uname -s = Linux
uname -v = #1 SMP Mon Nov 4 15:07:39 UTC 2013
/usr/bin/uname -p = x86_64
/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/adminuser/toolchain/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /home/adminuser/MINSOC/tools/bin
PATH: /home/adminuser/MINSOC/tools/bin
PATH: /home/adminuser/MINSOC/tools/or32-elf/bin/
PATH: /home/adminuser/.local/bin
PATH: /home/adminuser/bin
PATH: /home/adminuser/MINSOC/tools/bin
PATH: /home/adminuser/MINSOC/tools/bin
PATH: /home/adminuser/MINSOC/tools/or32-elf/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2427: error: cannot run /bin/sh ../gcc-svn/config.sub
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_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=set
ac_cv_env_target_alias_value=or32-linux
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AR_FOR_BUILD=''
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD=''
AS_FOR_TARGET=''
AWK=''
BISON=''
BUILD_CONFIG=''
CC=''
CC_FOR_BUILD=''
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD=''
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD=''
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD=''
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD=''
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GREP=''
INSTALL_DATA=''
INSTALL_GDB_TK=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD=''
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD=''
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD=''
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED=''
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-svn/configure --target=or32-linux --prefix= --disable-libssp --srcdir=../gcc-svn --enable-languages=c --without-headers --enable-threads=single --disable-libgomp --disable-libmudflap'
WINDMC=''
WINDMC_FOR_BUILD=''
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD=''
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_configargs=''
build_configdirs=''
build_cpu=''
build_libsubdir=''
build_noncanonical=''
build_os=''
build_subdir=''
build_tooldir=''
build_vendor=''
clooginc=''
clooglibs=''
compare_exclusions=''
config_shell=''
configdirs=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host=''
host_alias=''
host_configargs=''
host_cpu=''
host_noncanonical=''
host_os=''
host_subdir=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libelfinc=''
libelflibs=''
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='or32-linux'
target_alias='or32-linux'
target_configargs=''
target_configdirs=''
target_cpu=''
target_noncanonical=''
target_os=''
target_subdir=''
target_vendor=''
tooldir=''
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag=''
host_makefile_frag=''
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 2
Chethan N
(163 rep)
Jun 22, 2014, 12:40 PM
• Last activity: May 12, 2025, 12:03 AM
2
votes
2
answers
2676
views
missing zlib when configuring dropbear
when I ran `./configure` in dropbear, it says missing zlib; however, I've already added the prefix, i.e., `--prefix`, to point to the correct directory for zlib, but the problem still persists. I'm trying to build the files in dropbear by running #!/bin/bash ./configure --prefix=$HOME/Hi3536_SDK_V2....
when I ran
./configure
in dropbear, it says missing zlib;
however, I've already added the prefix, i.e., --prefix
, to point to the correct directory for zlib, but the problem still persists.
I'm trying to build the files in dropbear by running
#!/bin/bash
./configure --prefix=$HOME/Hi3536_SDK_V2.0.4.0/dropbear \
--with-zlib=$HOME/Hi3536_SDK_V2.0.4.0/zlib/include \
--host=arm CC=arm-hisiv400-linux-gcc
but it seems that it's unable to local the path to zlib.
rainfrost
(387 rep)
Sep 28, 2016, 07:38 AM
• Last activity: Apr 24, 2025, 10:24 AM
0
votes
0
answers
80
views
Remove not used sinks in ALSA
Just installed Debian 12 from scratch and Kodi, only using ALSA for sound. I have two sound devices, the HDMI to my sound receiver and an external DAC. Every thing runs good with great sound quality, but I got 3 HDMI connection in Kodi gui that I do not use (the first one I use even spells out name...
Just installed Debian 12 from scratch and Kodi, only using ALSA for sound.
I have two sound devices, the HDMI to my sound receiver and an external DAC.
Every thing runs good with great sound quality, but I got 3 HDMI connection in Kodi gui that I do not use (the first one I use even spells out name of sound receiver). The only configuration I had done is to set index of cards in
I have two sound devices, the HDMI to my sound receiver and an external DAC.
Every thing runs good with great sound quality, but I got 3 HDMI connection in Kodi gui that I do not use (the first one I use even spells out name of sound receiver). The only configuration I had done is to set index of cards in
/etc/modprobe.d/sound.conf
to (as it was flipped in order during reboot);
options snd_hda_intel index=0 options snd-usb-audio index=1
So how can I remove the unused HDMI sinks in ALSA, should I just edit some Kodi file, witch files to edit?
EDIT
AI chat gpt sugested adding an udev rule.
So what I did:
Created the file:
/etc/udev/rules.d/99-nvidia-hdmi.rules
With this content:
> SUBSYSTEMS=="sound", ATTRS{id}=="NVidia", ATTRS{device}=="7", KERNEL=="card*", OPTIONS+="ignore_device"
SUBSYSTEMS=="sound", ATTRS{id}=="NVidia", ATTRS{device}=="8", KERNEL=="card*", OPTIONS+="ignore_device"
SUBSYSTEMS=="sound", ATTRS{id}=="NVidia", ATTRS{device}=="9", KERNEL=="card*", OPTIONS+="ignore_device"
Made it executable:
sudo chmod u+x /etc/udev/rules.d/99-nvidia-hdmi.rules
Did a reboot of machine.
But that did not function, still the sinks in kodi gui.
Something I missed, a prefix for the card, maybee ( I tried to read about it on internet, but it is quit complicated.
Klas
(1 rep)
Apr 4, 2024, 07:54 PM
• Last activity: Mar 19, 2025, 09:57 AM
0
votes
1
answers
585
views
How can we append CFLAGS when doing ./configure
I got a configure script file that originally will create some `CFLAGS` when doing `./configure`. I am wondering how can we append some other `CFLAGS` when doing `./configure` without changing the original `CFLAGS` like: ``` ./configure CFLAGS+="some flags" ``` Above is not the correct way to append...
I got a configure script file that originally will create some
CFLAGS
when doing ./configure
. I am wondering how can we append some other CFLAGS
when doing ./configure
without changing the original CFLAGS
like:
./configure CFLAGS+="some flags"
Above is not the correct way to append so I am wondering what would be the best way to append.
Xiuyuan Guo
(1 rep)
Sep 30, 2021, 06:19 AM
• Last activity: Mar 17, 2025, 05:50 PM
0
votes
2
answers
18450
views
checking whether the C compiler works... no
I'm trying to build Linux From Scratch (LFS). I'm just following this book: ``` https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html ``` I have this error after I run ```./configure``` in `eudev` package: ``` checking for gcc... /usr/bin/gcc checking whether the C compiler works......
I'm trying to build Linux From Scratch (LFS).
I'm just following this book:
https://www.linuxfromscratch.org/lfs/view/stable/chapter08/eudev.html
I have this error after I run ./configure
in eudev
package:
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/sources/eudev-3.2.11':
configure: error: C compiler cannot create executables
See `config.log' for more details
Here is .log
---
Update: (more detail)
root@lfs-host:/mnt/lfs/sources/eudev-3.2.11# cat ~/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 eudev configure 3.2.11, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --prefix=/usr --bindir=/usr/sbin --sysconfdir=/etc --enable-manpages --disable-static
## --------- ##
## Platform. ##
## --------- ##
hostname = lfs-host
uname -m = x86_64
uname -r = 5.15.0-30-generic
uname -s = Linux
uname -v = #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022
/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: /mnt/lfs/tools/bin/
PATH: /usr/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3272: looking for aux files: config.guess config.sub ltmain.sh missing install-sh compile
configure:3285: trying ./
configure:3314: ./config.guess found
configure:3314: ./config.sub found
configure:3314: ./ltmain.sh found
configure:3314: ./missing found
configure:3296: ./install-sh found
configure:3314: ./compile found
configure:3496: checking for gcc
configure:3528: result: /usr/bin/gcc
configure:3881: checking for C compiler version
configure:3890: /usr/bin/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:3901: $? = 0
configure:3890: /usr/bin/gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/usr LD=ld --enable-languages=c,c++ --disable-multilib --disable-bootstrap --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (GCC)
configure:3901: $? = 0
configure:3890: /usr/bin/gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3890: /usr/bin/gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3890: /usr/bin/gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3921: checking whether the C compiler works
configure:3943: /usr/bin/gcc -O3 -Wall conftest.c >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/cc1: error while loading shared libraries: /usr/lib/libz.so.1: file too short
configure:3947: $? = 1
configure:3987: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "eudev"
| #define PACKAGE_TARNAME "eudev"
| #define PACKAGE_VERSION "3.2.11"
| #define PACKAGE_STRING "eudev 3.2.11"
| #define PACKAGE_BUGREPORT "https://github.com/gentoo/eudev/issues "
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:3992: error: in `/sources/eudev-3.2.11':
configure:3994: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_BLKID_CFLAGS_set=
ac_cv_env_BLKID_CFLAGS_value=
ac_cv_env_BLKID_LIBS_set=
ac_cv_env_BLKID_LIBS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O3 -Wall'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_KMOD_CFLAGS_set=
ac_cv_env_KMOD_CFLAGS_value=
ac_cv_env_KMOD_LIBS_set=
ac_cv_env_KMOD_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_SELINUX_CFLAGS_set=
ac_cv_env_SELINUX_CFLAGS_value=
ac_cv_env_SELINUX_LIBS_set=
ac_cv_env_SELINUX_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=/usr/bin/gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
BLKID_CFLAGS=''
BLKID_LIBS=''
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-O3 -Wall'
CPP=''
CPPFLAGS=''
CSCOPE=''
CTAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_HWDB_FALSE=''
ENABLE_HWDB_TRUE=''
ENABLE_MANPAGES_FALSE=''
ENABLE_MANPAGES_TRUE=''
ENABLE_MTD_PROBE_FALSE=''
ENABLE_MTD_PROBE_TRUE=''
ENABLE_PROGRAMS_FALSE=''
ENABLE_PROGRAMS_TRUE=''
ENABLE_RULE_GENERATOR_FALSE=''
ENABLE_RULE_GENERATOR_TRUE=''
ETAGS=''
EXEEXT=''
FGREP=''
GPERF=''
GREP=''
HAVE_BLKID_FALSE=''
HAVE_BLKID_TRUE=''
HAVE_INTROSPECTION_FALSE=''
HAVE_INTROSPECTION_TRUE=''
HAVE_KMOD_FALSE=''
HAVE_KMOD_TRUE=''
HAVE_SELINUX_FALSE=''
HAVE_SELINUX_TRUE=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
INTROSPECTION_CFLAGS=''
INTROSPECTION_COMPILER=''
INTROSPECTION_GENERATE=''
INTROSPECTION_GIRDIR=''
INTROSPECTION_LIBS=''
INTROSPECTION_MAKEFILE=''
INTROSPECTION_SCANNER=''
INTROSPECTION_TYPELIBDIR=''
KMOD_CFLAGS=''
KMOD_LIBS=''
LD=''
LDFLAGS=''
LIBM=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
M4=''
MAKEINFO=''
MANIFEST_TOOL=''
MKDIR_P=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT='https://github.com/gentoo/eudev/issues '
PACKAGE_NAME='eudev'
PACKAGE_STRING='eudev 3.2.11'
PACKAGE_TARNAME='eudev'
PACKAGE_URL=''
PACKAGE_VERSION='3.2.11'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SELINUX_CFLAGS=''
SELINUX_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
UDEV_VERSION='243'
VERSION=''
ac_ct_AR=''
ac_ct_CC='/usr/bin/gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='/usr/sbin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
girdir=''
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfiglibdir=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
rootlibdir=''
rootlibexecdir=''
rootprefix=''
rootrundir=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sharepkgconfigdir=''
sushell=''
sysconfdir='/etc'
target_alias=''
typelibsdir=''
udevconfdir=''
udevconffile=''
udevhwdbbin=''
udevhwdbdir=''
udevkeymapdir=''
udevkeymapforceredir=''
udevlibexecdir=''
udevrulesdir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "eudev"
#define PACKAGE_TARNAME "eudev"
#define PACKAGE_VERSION "3.2.11"
#define PACKAGE_STRING "eudev 3.2.11"
#define PACKAGE_BUGREPORT "https://github.com/gentoo/eudev/issues "
#define PACKAGE_URL ""
configure: exit 77
root@lfs-host:/mnt/lfs/sources/eudev-3.2.11#
This error is applied to all ./configure
not only for eudev
But I check the gcc
is working fine:
(lfs chroot) root:/sources/eudev-3.2.11# gcc
gcc: fatal error: no input files
compilation terminated.
Muhammad Ikhwan Perwira
(319 rep)
May 16, 2022, 04:58 PM
• Last activity: Jan 28, 2025, 04:04 AM
19
votes
1
answers
36752
views
What is ac_nonexistent.h?
[Examining a buildlog from a failed build](https://launchpadlibrarian.net/316474831/buildlog_ubuntu-zesty-amd64.vlc_3.0.0~~git20170420+r69423+64~ubuntu17.04.1_BUILDING.txt.gz), what does the following error mean, fatal error: ac_nonexistent.h: No such file or directory #include Here is some context....
[Examining a buildlog from a failed build](https://launchpadlibrarian.net/316474831/buildlog_ubuntu-zesty-amd64.vlc_3.0.0~~git20170420+r69423+64~ubuntu17.04.1_BUILDING.txt.gz) , what does the following error mean,
fatal error: ac_nonexistent.h: No such file or directory #include
Here is some context.
configure:6614: $? = 0
configure:6627: result: none needed
configure:6648: checking how to run the C preprocessor
configure:6679: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
configure:6679: $? = 0
configure:6693: gcc -E -Wdate-time -D_FORTIFY_SOURCE=2 conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
#include
^
compilation terminated.
configure:6693: $? = 1
configure: failed program was:
| /* confdefs.h */
What is
ac_nonexistent.h
? What should I do when I encounter this error?
Evan Carroll
(34663 rep)
Apr 21, 2017, 06:43 PM
• Last activity: Sep 4, 2024, 06:59 PM
0
votes
1
answers
68
views
How to integrate multiple inline `if` variable checks into `configure` flag selection
I'm compiling Nginx from source on Debian 12 in Bash. I'd like to select the TLS vendor (e.g. LibreSSL, OpenSSL) via a preflight variable (`$nginx_tls_vendor`). An example `configure` command without the variable stuff looks like this: ``` ./configure \ --with-foo \ […] --with-openssl=/src/vendor/li...
I'm compiling Nginx from source on Debian 12 in Bash. I'd like to select the TLS vendor (e.g. LibreSSL, OpenSSL) via a preflight variable (
$nginx_tls_vendor
). An example configure
command without the variable stuff looks like this:
./configure \
--with-foo \
[…]
--with-openssl=/src/vendor/library-1.2.3 \
--with-openssl-opt="baz" \
[…]
--with-bar \
The values of the --with-openssl
and --with-openssl-opt
flags depend on $nginx_tls_vendor
. Broadly like this for each vendor:
if [ "$nginx_tls_vendor" = "libressl" ] \
; then \
--with-openssl=/src/libressl/libressl-1.2.3 \
--with-openssl-opt="baz-libressl etc" \
; fi
if [ "$nginx_tls_vendor" = "openssl" ] \
; then \
--with-openssl=/src/openssl/openssl-3.2.1 \
--with-openssl-opt="baz-openssl etc" \
; fi
I haven't yet figured out how to use one or more if
checks inline within a command. I am reasonably comfortable with an if
wrapper around an entire command, but this doesn't apply here. I would like to use two inline if
checks to find the TLS vendor and apply the relevant flags.
I've tried various things that might work but they end up breaking my download-and-compile script.
I would be grateful for some guidance and / or further reading so I can integrate two consecutive if
checks around the two --with-openssl
and --with-openssl-opt
flags.
Thank you.
Pete Cooper
(163 rep)
Mar 30, 2024, 07:21 PM
• Last activity: Mar 31, 2024, 02:15 PM
0
votes
1
answers
2840
views
libsocketcan ./configure: No such file or directory
I want to install [libsocketcan][1] from source on my raspberry pi. I already installed libsocketcan on my Ubunutu VM successfully by following the instructions of the INSTALL file. Unfortunately the first step of the installation is is not working on the raspberry pi. The first step of the installa...
I want to install libsocketcan from source on my raspberry pi. I already installed libsocketcan on my
Ubunutu VM successfully by following the instructions of the INSTALL file. Unfortunately the first step of the installation is is not working on the raspberry pi. The first step of the installation is to cd into the directory and to run **./configure** but when i do this i get ./configure: No such file or directory. What can i do in this situation? I appreciate your help!
mab0189
(121 rep)
Apr 1, 2021, 10:26 PM
• Last activity: Mar 1, 2024, 11:48 AM
0
votes
1
answers
207
views
gcc build error
when I configure gcc I got a error message could anyone help me ? plz.. messages.. checking whether the C compiler works... no configure: error: in `/home/kjs0625/gcc/gcc-13.1.0': configure: error: C compiler cannot create executables config.log gcc (GCC) 13.1.0 Copyright (C) 2023 Free Software Foun...
when I configure gcc I got a error message
could anyone help me ? plz..
messages..
checking whether the C compiler works... no
configure: error: in `/home/kjs0625/gcc/gcc-13.1.0':
configure: error: C compiler cannot create executables
config.log
gcc (GCC) 13.1.0
Copyright (C) 2023 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:4407: $? = 0
configure:4396: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/13.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/root --with-mpc=/root --with-mpfr=/root --with-gmp=/root --with-isl=/root --enable-languages=c,c++ --disable-multilib --with-static-standard-libraries
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.0 (GCC)
configure:4407: $? = 0
configure:4396: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4407: $? = 1
configure:4396: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4407: $? = 1
configure:4427: checking whether the C compiler works
configure:4449: gcc conftest.c >&5
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
configure:4453: $? = 1
configure:4491: 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 ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4496: error: in `/home/kjs0625/gcc/gcc-13.1.0':
configure:4498: error: C compiler cannot create executables
See `config.log' for more details
plz.. somebody help me TT
Rahul Nitin
(1 rep)
Dec 9, 2023, 02:41 AM
• Last activity: Dec 9, 2023, 11:21 AM
10
votes
2
answers
29154
views
"--with-x=yes (default) and X11 headers/libs are not available"
I am trying to install R in our cluster (the cluster is Red Hat Enterprise Linux 6), where I don't have root access. I tried: $wget http://cran.rstudio.com/src/base/R-3/R-3.1.1.tar.gz $ tar xvf R-3.1.1.tar.gz $ cd R-3.1.1 $ ./configure --prefix=/home/Kryo/R-3.1.1 But I am getting an error: configure...
I am trying to install R in our cluster (the cluster is Red Hat Enterprise Linux 6), where I don't have root access. I tried:
$wget http://cran.rstudio.com/src/base/R-3/R-3.1.1.tar.gz
$ tar xvf R-3.1.1.tar.gz
$ cd R-3.1.1
$ ./configure --prefix=/home/Kryo/R-3.1.1
But I am getting an error:
configure: error: --with-x=yes (default) and X11 headers/libs are not available
Kryo
(211 rep)
Jul 13, 2015, 04:11 PM
• Last activity: Nov 7, 2023, 11:24 PM
0
votes
1
answers
632
views
using mingw on Linux Mint
I need to build Windows binaries from a conventional source tarball. I recall that I used to do this in a RedHat environment using specialised configure and make scripts from mingw packages. But I'm now on Linux Mint and have no idea. What packages do I need? What do I use to configure and make? The...
I need to build Windows binaries from a conventional source tarball. I recall that I used to do this in a RedHat environment using specialised configure and make scripts from mingw packages. But I'm now on Linux Mint and have no idea. What packages do I need? What do I use to configure and make? The source files are in C and gcc is fine.
user22108
(101 rep)
Oct 8, 2023, 01:42 PM
• Last activity: Oct 8, 2023, 02:08 PM
1
votes
1
answers
2985
views
How to install owping tool?
I would like to install owping, however I am not able to configure and compile sources. I have installed autoconf. [Instructions to install owping][1] I have downloaded and unpacked sources of master branch. Run command: ``` ./configure ``` Gives 'No such file or directory' In the Internet I found t...
I would like to install owping, however I am not able to configure and compile sources. I have installed autoconf.
Instructions to install owping
I have downloaded and unpacked sources of master branch.
Run command:
./configure
Gives 'No such file or directory'
In the Internet I found that following command may help.
autoreconf -i
However in the end I am not able to make and install this tool. It gives errors. Could you please help me?
Oleksii
(115 rep)
Jan 29, 2020, 05:20 PM
• Last activity: Sep 15, 2023, 07:47 AM
2
votes
1
answers
3990
views
Unable to create Xorg.conf
I opened a terminal and ran ```Xorg -configure```, then I received error. _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets - Make sure an X server i...
I opened a terminal and ran
-configure
, then I received error.
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
It seemed pretty clear that I need to run this command while the X server is not running, so I followed the solutions described in not able to create xorg.conf file and tried the following:
- /etc/init.d/gdm3 stop
To kill X, then open a tty and run -configure
- While X server was running I ran :2 -configure
to run the command from a different server.
Both of these solutions resulted in error message.
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-165-generic x86_64 Ubuntu
Current Operating System: Linux atlantis 5.3.0-7648-generic #41~1586789791~19.10~9593806-Ubuntu SMP Mon Apr 13 17:50:40 UTC x86_64
Kernel command line: initrd=\EFI\Pop_OS-03c4a8e3-3a5b-4231-8a9b-b15f59b18814\initrd.img root=UUID=03c4a8e3-3a5b-4231-8a9b-b15f59b18814 ro quiet loglevel=0 systemd.show_status=false splash
Build Date: 08 October 2019 09:43:30AM
xorg-server 2:1.20.5+git20191008-0ubuntu1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 25 12:00:40 2020
List of video drivers:
amdgpu
ati
intel
nouveau
qxl
radeon
vmware
modesetting
fbdev
vesa
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Number of created screens does not match number of detected devices.
Configuration failed.
(EE) Server terminated with error (2). Closing log file.
Here is the contents of .0.log
:
[ 929.794]
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[ 929.794] Build Operating System: Linux 4.4.0-165-generic x86_64 Ubuntu
[ 929.794] Current Operating System: Linux atlantis 5.3.0-7648-generic #41~1586789791~19.10~9593806-Ubuntu SMP Mon Apr 13 17:50:40 UTC x86_64
[ 929.794] Kernel command line: initrd=\EFI\Pop_OS-03c4a8e3-3a5b-4231-8a9b-b15f59b18814\initrd.img root=UUID=03c4a8e3-3a5b-4231-8a9b-b15f59b18814 ro quiet loglevel=0 systemd.show_status=false splash
[ 929.794] Build Date: 08 October 2019 09:43:30AM
[ 929.794] xorg-server 2:1.20.5+git20191008-0ubuntu1 (For technical support please see http://www.ubuntu.com/support)
[ 929.794] Current version of pixman: 0.38.4
[ 929.794] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 929.794] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 929.794] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 25 12:00:40 2020
[ 929.794] (II) Loader magic: 0x55e4f474a020
[ 929.794] (II) Module ABI versions:
[ 929.794] X.Org ANSI C Emulation: 0.4
[ 929.794] X.Org Video Driver: 24.0
[ 929.794] X.Org XInput driver : 24.1
[ 929.794] X.Org Server Extension : 10.0
[ 929.794] (--) using VT number 1
[ 929.794] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 929.795] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 929.795] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 929.795] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 929.796] (--) PCI:*(0@0:2:0) 8086:3e9b:1025:1338 rev 0, Mem @ 0xa2000000/16777216, 0xb0000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[ 929.796] (--) PCI: (1@0:0:0) 10de:1f91:1025:1336 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00005000/128, BIOS @ 0x????????/524288
[ 929.796] List of video drivers:
[ 929.796] amdgpu
[ 929.796] ati
[ 929.796] intel
[ 929.796] nouveau
[ 929.796] qxl
[ 929.796] radeon
[ 929.796] vmware
[ 929.796] modesetting
[ 929.796] fbdev
[ 929.796] vesa
[ 929.796] (II) LoadModule: "amdgpu"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[ 929.797] (II) Module amdgpu: vendor="X.Org Foundation"
[ 929.797] compiled for 1.20.5, module version = 19.0.1
[ 929.797] Module class: X.Org Video Driver
[ 929.797] ABI class: X.Org Video Driver, version 24.0
[ 929.797] (II) LoadModule: "ati"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 929.797] (II) Module ati: vendor="X.Org Foundation"
[ 929.797] compiled for 1.20.5, module version = 19.0.1
[ 929.797] Module class: X.Org Video Driver
[ 929.797] ABI class: X.Org Video Driver, version 24.0
[ 929.797] (II) LoadModule: "intel"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 929.797] (II) Module intel: vendor="X.Org Foundation"
[ 929.797] compiled for 1.20.4, module version = 2.99.917
[ 929.797] Module class: X.Org Video Driver
[ 929.797] ABI class: X.Org Video Driver, version 24.0
[ 929.797] (II) LoadModule: "nouveau"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[ 929.797] (II) Module nouveau: vendor="X.Org Foundation"
[ 929.797] compiled for 1.20.3, module version = 1.0.16
[ 929.797] Module class: X.Org Video Driver
[ 929.797] ABI class: X.Org Video Driver, version 24.0
[ 929.797] (II) LoadModule: "qxl"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/qxl_drv.so
[ 929.797] (II) Module qxl: vendor="X.Org Foundation"
[ 929.797] compiled for 1.20.0, module version = 0.1.5
[ 929.797] Module class: X.Org Video Driver
[ 929.797] ABI class: X.Org Video Driver, version 24.0
[ 929.797] (II) LoadModule: "radeon"
[ 929.797] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[ 929.797] (II) Module radeon: vendor="X.Org Foundation"
[ 929.798] compiled for 1.20.5, module version = 19.0.1
[ 929.798] Module class: X.Org Video Driver
[ 929.798] ABI class: X.Org Video Driver, version 24.0
[ 929.798] (II) LoadModule: "vmware"
[ 929.798] (II) Loading /usr/lib/xorg/modules/drivers/vmware_drv.so
[ 929.827] (II) Module vmware: vendor="X.Org Foundation"
[ 929.827] compiled for 1.20.0, module version = 13.3.0
[ 929.827] Module class: X.Org Video Driver
[ 929.827] ABI class: X.Org Video Driver, version 24.0
[ 929.827] (II) LoadModule: "modesetting"
[ 929.827] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 929.827] (II) Module modesetting: vendor="X.Org Foundation"
[ 929.827] compiled for 1.20.5, module version = 1.20.5
[ 929.827] Module class: X.Org Video Driver
[ 929.827] ABI class: X.Org Video Driver, version 24.0
[ 929.827] (II) LoadModule: "fbdev"
[ 929.827] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 929.827] (II) Module fbdev: vendor="X.Org Foundation"
[ 929.827] compiled for 1.20.1, module version = 0.5.0
[ 929.827] Module class: X.Org Video Driver
[ 929.827] ABI class: X.Org Video Driver, version 24.0
[ 929.827] (II) LoadModule: "vesa"
[ 929.827] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 929.827] (II) Module vesa: vendor="X.Org Foundation"
[ 929.827] compiled for 1.20.4, module version = 2.4.0
[ 929.827] Module class: X.Org Video Driver
[ 929.827] ABI class: X.Org Video Driver, version 24.0
[ 929.827] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 929.827] (II) intel: Driver for Intel(R) HD Graphics
[ 929.827] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 929.827] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 929.827] (II) NOUVEAU driver Date: Mon Jan 28 23:25:58 2019 -0500
[ 929.827] (II) NOUVEAU driver for NVIDIA chipset families :
[ 929.827] RIVA TNT (NV04)
[ 929.827] RIVA TNT2 (NV05)
[ 929.827] GeForce 256 (NV10)
[ 929.827] GeForce 2 (NV11, NV15)
[ 929.827] GeForce 4MX (NV17, NV18)
[ 929.827] GeForce 3 (NV20)
[ 929.827] GeForce 4Ti (NV25, NV28)
[ 929.827] GeForce FX (NV3x)
[ 929.827] GeForce 6 (NV4x)
[ 929.827] GeForce 7 (G7x)
[ 929.827] GeForce 8 (G8x)
[ 929.827] GeForce 9 (G9x)
[ 929.827] GeForce GTX 2xx/3xx (GT2xx)
[ 929.827] GeForce GTX 4xx/5xx (GFxxx)
[ 929.827] GeForce GTX 6xx/7xx (GKxxx)
[ 929.827] GeForce GTX 9xx (GMxxx)
[ 929.827] GeForce GTX 10xx (GPxxx)
[ 929.827] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 929.827] (II) FBDEV: driver for framebuffer: fbdev
[ 929.827] (II) VESA: driver for VESA chipsets: vesa
[ 929.930] (++) Using config file: "/root/xorg.conf.new"
[ 929.930] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 929.931] (==) ServerLayout "X.org Configured"
[ 929.931] (**) |-->Screen "Screen0" (0)
[ 929.931] (**) | |-->Monitor "Monitor0"
[ 929.932] (**) | |-->Device "Card0"
[ 929.932] (**) |-->Screen "Screen1" (1)
[ 929.932] (**) | |-->Monitor "Monitor1"
[ 929.933] (**) | |-->Device "Card1"
[ 929.933] (**) |-->Input Device "Mouse0"
[ 929.933] (**) |-->Input Device "Keyboard0"
[ 929.933] (==) Automatically adding devices
[ 929.933] (==) Automatically enabling devices
[ 929.933] (==) Automatically adding GPU devices
[ 929.933] (==) Automatically binding GPU devices
[ 929.933] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 929.933] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 929.933] Entry deleted from font path.
[ 929.933] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 929.934] Entry deleted from font path.
[ 929.934] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 929.934] Entry deleted from font path.
[ 929.934] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 929.934] Entry deleted from font path.
[ 929.934] (**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 929.934] (**) ModulePath set to "/usr/lib/xorg/modules"
[ 929.934] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[ 929.934] (WW) Disabling Mouse0
[ 929.934] (WW) Disabling Keyboard0
[ 929.934] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20190619
[ 929.934] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20190815-1 (Timo Aaltonen )
[ 929.934] (II) intel(0): SNA compiled for use with valgrind
[ 930.063] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 930.063] Number of created screens does not match number of detected devices.
Configuration failed.
[ 930.063] (EE) Server terminated with error (2). Closing log file.
Here is the contents of .1.log
OS: Pop!_OS 19.10 64-bit
CPU: Intel Core i7-9750H
GPU: GeForce GTX 1650
Sebastian Frasher
(83 rep)
Apr 25, 2020, 05:20 PM
• Last activity: Sep 14, 2023, 06:02 AM
0
votes
1
answers
740
views
Installing gnome-do on Debian 12 (Bookworm)
While attempting to `./configure` gnome-do I have run into an issue that I cannot seem to resolve. It's looking for gnome-desktop-sharp-2 but cannot find it. I cannot seem to find a suitable library to which to create a link and have become a bit stumped. Gnome-do installs fine from apt in stretch b...
While attempting to
./configure
gnome-do I have run into an issue that I cannot seem to resolve. It's looking for gnome-desktop-sharp-2 but cannot find it. I cannot seem to find a suitable library to which to create a link and have become a bit stumped. Gnome-do installs fine from apt in stretch but does not seem to exist beyond that. Any help would be greatly appreciated!
I have attempted to locate suitable replacements (such as I did with gconf-2.0 by executing: ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/gconf-2.0.pc /usr/lib/x86_64-linux-gnu/pkgconfig/gconf-sharp-2.0.pc
.
bowens
(3 rep)
Sep 1, 2023, 02:01 AM
• Last activity: Sep 1, 2023, 07:21 AM
5
votes
1
answers
6310
views
How to build GCC 13 on M1 MacBook pro?
I want to build gcc-13 on my M1 MacBook Pro. Following [official document](https://gcc.gnu.org/install/), I download source code using git, `configure` and `make`. For `configure`, I refer to the way of Homebrew `configure` gcc-12 on [link](https://github.com/Homebrew/homebrew-core/blob/master/Formu...
I want to build gcc-13 on my M1 MacBook Pro. Following [official document](https://gcc.gnu.org/install/) , I download source code using git,
configure
and make
.
For configure
, I refer to the way of Homebrew configure
gcc-12 on [link](https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb) . Specifically is
../configure \
--prefix=/Users/xubaoyu/gcc/build \
--disable-nls \
--enable-checking=release \
--with-gcc-major-version-only \
--enable-languages=c,c++ \
--program-suffix=-13 \
--with-system-zlib \
--build=aarch64-apple-darwin22 \
--with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
And simply make -j 10
.
Then error occurs:
*** Configuration aarch64-apple-darwin22 not supported
make: *** [configure-stage1-gcc] Error 1
make: *** [stage1-bubble] Error 2
make: *** [all] Error 2
I think I use the wrong value on build parameter, so I check gcc12 by gcc-12 -v
:
Using built-in specs.
COLLECT_GCC=gcc-12
COLLECT_LTO_WRAPPER=/opt/homebrew/Cellar/gcc/12.2.0/bin/../libexec/gcc/aarch64-apple-darwin22/12/lto-wrapper
Target: aarch64-apple-darwin22
Configured with: ../configure --prefix=/opt/homebrew/opt/gcc --libdir=/opt/homebrew/opt/gcc/lib/gcc/current --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-12 --with-gmp=/opt/homebrew/opt/gmp --with-mpfr=/opt/homebrew/opt/mpfr --with-mpc=/opt/homebrew/opt/libmpc --with-isl=/opt/homebrew/opt/isl --with-zstd=/opt/homebrew/opt/zstd --with-pkgversion='Homebrew GCC 12.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --with-system-zlib --build=aarch64-apple-darwin22 --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.2.0 (Homebrew GCC 12.2.0)
which has the same target as I used.
Then I retry make configure-stage1-gcc
:
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in tests
Making all in .
make: Nothing to be done for `all-am'.
Making all in devel
make: Nothing to be done for `all'.
Making all in mpn
make: Nothing to be done for `all'.
Making all in mpz
make: Nothing to be done for `all'.
Making all in mpq
make: Nothing to be done for `all'.
Making all in mpf
make: Nothing to be done for `all'.
Making all in rand
make: Nothing to be done for `all'.
Making all in misc
make: Nothing to be done for `all'.
Making all in cxx
make: Nothing to be done for `all'.
Making all in mpn
make: Nothing to be done for `all'.
Making all in mpz
make: Nothing to be done for `all'.
Making all in mpq
make: Nothing to be done for `all'.
Making all in mpf
make: Nothing to be done for `all'.
Making all in printf
make: Nothing to be done for `all'.
Making all in scanf
make: Nothing to be done for `all'.
Making all in rand
make: Nothing to be done for `all'.
Making all in cxx
make: Nothing to be done for `all'.
Making all in demos
Making all in calc
/Library/Developer/CommandLineTools/usr/bin/make all-am
make: Nothing to be done for `all-am'.
Making all in expr
make: Nothing to be done for `all'.
make: Nothing to be done for `all-am'.
Making all in tune
make: Nothing to be done for `all'.
Making all in doc
make: Nothing to be done for `all'.
make: Nothing to be done for `all-am'.
Making all in doc
make: Nothing to be done for `all'.
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-am
make: Nothing to be done for `all-am'.
Making all in tests
make: Nothing to be done for `all'.
Making all in tune
make: Nothing to be done for `all'.
Making all in tools/bench
make: Nothing to be done for `all'.
make: Nothing to be done for `all-am'.
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in src
make: Nothing to be done for `all'.
Making all in tests
make: Nothing to be done for `all'.
Making all in doc
make: Nothing to be done for `all'.
Making all in tools
Making all in bench
make: Nothing to be done for `all'.
Making all in mpcheck
make: Nothing to be done for `all'.
make: Nothing to be done for `all-am'.
make: Nothing to be done for `all-am'.
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in .
make: Nothing to be done for `all-am'.
Making all in doc
make: Nothing to be done for `all'.
Configuring stage 1 in ./gcc
configure: loading cache ./config.cache
checking build system type... aarch64-apple-darwin22
checking host system type... aarch64-apple-darwin22
checking target system type... aarch64-apple-darwin22
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default dsymutil was specified... no
checking whether a default assembler was specified... no
checking for aarch64-apple-darwin22-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=c++11 accepts -g... yes
checking for aarch64-apple-darwin22-gnatbind... no
checking for gnatbind... no
checking for aarch64-apple-darwin22-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada and is recent enough... rm: conftest.dSYM: is a directory
no
checking for aarch64-apple-darwin22-gdc... no
checking whether the D compiler works... no
checking how to run the C++ preprocessor... g++ -std=c++11 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to run the C preprocessor... gcc -E
checking for inline... inline
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of ino_t... 8
checking size of dev_t... 4
checking size of void *... 8
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking for long long... yes
checking size of long long... 8
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for intmax_t... yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int64_t underlying type... long long
checking for std::swap in ... yes
checking whether g++ -std=c++11 is affected by placement new aliasing bug... no
checking whether g++ -std=c++11 supports -W... yes
checking whether g++ -std=c++11 supports -Wall... yes
checking whether g++ -std=c++11 supports -Wnarrowing... yes
checking whether g++ -std=c++11 supports -Wwrite-strings... yes
checking whether g++ -std=c++11 supports -Wcast-qual... yes
checking whether g++ -std=c++11 supports -Wformat... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether g++ -std=c++11 supports -Wmissing-format-attribute... yes
checking whether g++ -std=c++11 supports -Wconditionally-supported... yes
checking whether g++ -std=c++11 supports -Woverloaded-virtual... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wc++-compat... yes
checking whether g++ -std=c++11 supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... yes
checking whether gcc supports -fno-exceptions... yes
checking whether gcc supports -fno-rtti... yes
checking whether gcc supports -fasynchronous-unwind-tables... yes
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
checking for VALGRIND_DISCARD in ... no
checking for VALGRIND_DISCARD in ... no
checking for multiarch configuration... auto
configure: WARNING: fixed-point is not supported for this target, ignored
checking whether make sets $(MAKE)... yes
checking for gawk... awk
checking whether ln -s works... yes
checking whether ln works... yes
checking for aarch64-apple-darwin22-ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for cmp's capabilities... gnucompare
checking for mktemp... yes
checking for makeinfo... makeinfo
checking for modern makeinfo... yes
checking for recent Pod::Man... yes
checking for flex... flex
checking for bison... bison
checking for python3... python3
checking for modern python3... yes
checking for nm... nm
checking for ar... ar
checking for sphinx-build... texinfo
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether termios.h defines TIOCGWINSZ... yes
checking for limits.h... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... yes
checking for iconv.h... yes
checking for fcntl.h... yes
checking for ftw.h... yes
checking for unistd.h... (cached) yes
checking for sys/auxv.h... no
checking for sys/file.h... yes
checking for sys/time.h... yes
checking for sys/mman.h... yes
checking for sys/resource.h... yes
checking for sys/param.h... yes
checking for sys/times.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/locking.h... no
checking for direct.h... no
checking for malloc.h... no
checking for langinfo.h... yes
checking for ldfcn.h... no
checking for locale.h... yes
checking for wchar.h... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking whether byte ordering is bigendian... no
checking how to run the C++ preprocessor... g++ -std=c++11 -E
checking for unordered_map... yes
checking for tr1/unordered_map... yes
checking for ext/hash_map... yes
checking dependency style of g++ -std=c++11... gcc3
checking for collect2 libraries... none required
checking for library containing exc_resume... no
checking for library containing kstat_open... no
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing ldexp... none required
checking for library containing dlopen... none required
checking for inttypes.h... yes
checking for zstd.h... no
checking for library containing ZSTD_compress... no
checking for times... yes
checking for clock... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for atoq... no
checking for popen... yes
checking for sysconf... yes
checking for strsignal... yes
checking for getrusage... yes
checking for nl_langinfo... yes
checking for gettimeofday... yes
checking for mbstowcs... yes
checking for wcswidth... yes
checking for mmap... yes
checking for posix_fallocate... no
checking for setlocale... yes
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... no
checking for fgetc_unlocked... no
checking for fgets_unlocked... no
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for fread_unlocked... no
checking for fwrite_unlocked... no
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking for madvise... yes
checking for mallinfo... no
checking for mallinfo2... no
checking for fstatat... yes
checking for getauxval... no
checking whether mbstowcs works... yes
checking for ssize_t... yes
checking for caddr_t... yes
checking for sighander_t... no
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for pid_t... yes
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... yes
checking how to link with libiconv... -liconv
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... yes
checking for nl_langinfo and CODESET... yes
checking whether basename is declared... no
checking whether strstr is declared... yes
checking whether getenv is declared... yes
checking whether atol is declared... yes
checking whether atoll is declared... yes
checking whether asprintf is declared... yes
checking whether sbrk is declared... yes
checking whether abort is declared... yes
checking whether atof is declared... yes
checking whether getcwd is declared... yes
checking whether getwd is declared... yes
checking whether madvise is declared... yes
checking whether stpcpy is declared... yes
checking whether strnlen is declared... yes
checking whether strsignal is declared... yes
checking whether strverscmp is declared... no
checking whether strtol is declared... yes
checking whether strtoul is declared... yes
checking whether strtoll is declared... yes
checking whether strtoull is declared... yes
checking whether setenv is declared... yes
checking whether unsetenv is declared... yes
checking whether errno is declared... yes
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether vasprintf is declared... yes
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether calloc is declared... yes
checking whether free is declared... yes
checking whether getopt is declared... yes
checking whether clock is declared... yes
checking whether getpagesize is declared... yes
checking whether ffs is declared... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... no
checking whether fgetc_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether mallinfo is declared... no
checking whether mallinfo2 is declared... no
checking whether ldgetname is declared... no
checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking for F_SETLKW... yes
checking for O_CLOEXEC... yes
checking for fcntl.h... (cached) yes
checking whether O_NONBLOCK is declared... yes
checking for AF_UNIX... yes
checking for AF_INET6... yes
checking for _LK_LOCK... no
checking if mkdir takes one argument... no
*** Configuration aarch64-apple-darwin22 not supported
make: *** [configure-stage1-gcc] Error 1
What went wrong in this process and how to fix it?
Thanks in advance!
徐保钰
(191 rep)
Jan 6, 2023, 01:17 PM
• Last activity: Aug 31, 2023, 02:30 AM
1
votes
1
answers
173
views
Spec file for rpmbuild to build gdb9 on ec2
I'm using aws's ec2 instance and I need to install a newer version of GDB (I can't use `yum install` since there is no newer version available for amazon RHEL). My workflow requires to do this process often and I thought of having a prepared RPM to implement this task. I'm new to the process of crea...
I'm using aws's ec2 instance and I need to install a newer version of GDB (I can't use
yum install
since there is no newer version available for amazon RHEL).
My workflow requires to do this process often and I thought of having a prepared RPM to implement this task.
I'm new to the process of creating RPMs and I'm not sure how to do it, I started to write the file but I ran into some issues, I'd like to share with you the file, with the issues I got:
1. I'd like to get some insight and understand if there's a better way of writing the spec file.
2. Currently I'm getting errors since I need to use the pkg's "configure" before, but this requires creating a "build" directory and only run make
from within that directory. Currently I solved this by make
from within a directory I created within the BUILD/gdb-9.1
dir. But I'm sure there's a more idiomatic way of doing it.
3. for this process to work, I first need to install gcc-c++
and expat-devel
. I what is the best way to do it, currently my option are:
1. put it as part of the rpm installation.
2. run this command prior to the rpm installation. (yet I'd like the rpm to be something that it's the only this required, but I'm not sure if it's a good idea)
%define gdb_version 9.1
%define gdb_release 1
Name: gdb
Summary: GNU Debugger
Version: %{gdb_version}
Release: %{gdb_release}
License: GPL
URL: http://www.gnu.org/software/gdb/
Source0: gdb-%{gdb_version}.tar.gz
BuildRequires: readline-devel, ncurses-devel
%description
GDB, the GNU Project debugger, allows you to see what is going on inside another program while it executes.
%prep
%autosetup
%build
mkdir build
cd build
../configure \
--host=x86_64-redhat-linux-gnu \
--target=x86_64-redhat-linux-gnu \
--with-auto-load-dir=$debugdir:$datadir/auto-load:/usr/share/gdb/auto-load \
--with-auto-load-safe-path=$debugdir:$datadir/auto-load:/usr/share/gdb/auto-load \
--with-expat \
--with-gdb-datadir=/usr/share/gdb \
--with-jit-reader-dir=/usr/lib64/gdb \
--without-libunwind-ia64 \
--with-python=/usr \
--without-guile \
--with-separate-debug-dir=/usr/lib/debug \
--with-system-gdbinit=/etc/gdbinit \
--without-babeltrace
make %{?_smp_mflags}
%install
cd build
make install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
danwgh
(23 rep)
Jul 24, 2023, 11:50 AM
• Last activity: Jul 24, 2023, 12:21 PM
5
votes
2
answers
60309
views
gcc compilation terminated with "fatal error: string: No such file or directory #include <string>"
My situation. `uname -a` gives `Linux computer2 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux` I am trying to install **HDF5 1.8.18** with **GNU make 3.81** invoking **gcc 6.3.0**. I have successfully installed this gcc 6.3.0 alongside the versio...
My situation.
uname -a
gives Linux computer2 4.4.0-62-generic #83~14.04.1-Ubuntu SMP Wed Jan 18 18:10:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I am trying to install **HDF5 1.8.18** with **GNU make 3.81** invoking **gcc 6.3.0**. I have successfully installed this gcc 6.3.0 alongside the version 4.8.4 that is shipped with the Ubuntu distribution.
My gcc 6.3.0 lives in /opt/gcc/6_3_0/
. I use the following script to configure and pass on the commands, libraries and headers in non-standard directories:
export FC='/opt/gcc/6_3_0/bin/gfortran-6.3.0' # probably unnecessary
export CC='/opt/gcc/6_3_0/bin/gcc-6.3.0'
export CXX='/opt/gcc/6_3_0/bin/g++-6.3.0'
export CPP='/opt/gcc/6_3_0/bin/cpp-6.3.0'
export LDFLAGS='-L/opt/gcc/6_3_0/lib -L/opt/gcc/6_3_0/lib64'
export CPPFLAGS='-I/opt/gcc/6_3_0/include -I/opt/gcc/6_3_0/lib/gcc/x86_64-pc-linux-gnu/6.3.0/include'
./configure \
--prefix=${insdir} \
--with-zlib=${zlibdir}/include,${zlibdir}/lib \
--enable-fortran \
--enable-cxx
where ${insdir}
is an installation directory, ${zlibdir}
is where zlib lives and the other switches are standards as per the [installation guidelines](https://support.hdfgroup.org/ftp/HDF5/current18/src/unpacked/release_docs/INSTALL)
The configure step goes well. The make step fails with the error:
make: Entering directory `/hdf5-1.8.18/c++/src'
CXX H5Exception.lo
H5Exception.cpp:16:18: fatal error: string: No such file or directory
#include
^
compilation terminated
If I understand it correctly, some header file is missing, and of a basic nature.
- Where should I get it from?
- Is there any flaw in the names and values of the environment variables?
StackExchange contains a host of [posts on this error](https://stackexchange.com/search?q=fatal+error%3A+string%3A+No+such+file+or+directory) , but they seem to be mostly related to coding exercises. My aim is not to edit codes, rather to compile source codes successfully with my vanilla gcc 6.3.0.
**Updated question**
In the light of the helpful comments and Thomas Dickey's answer below, it appears that a promising avenue is to install matching versions of libstdc++
and gcc
. I have searched around in the [GCC website](https://gcc.gnu.org/install/configure.html) and it appears that one can configure gcc
with the following switch
> --enable-version-specific-runtime-libs
>
> Specify that runtime libraries should be installed in the compiler specific subdirectory (libdir/gcc
) rather than the usual places. **In addition, libstdc++
's include files will be installed into libdir
unless you overruled it by using --with-gxx-include-dir=dirname
.** Using this option is particularly useful if you intend to use several versions of GCC in parallel. This is currently supported by libgfortran
, libstdc++
, and libobjc
.
- Is this pointing in the right direction?
- Where would I be supposed to find the libstdc++'s include files that are distributed alongside the source of gcc, if this is switch is not used?
XavierStuvw
(1179 rep)
Feb 19, 2017, 04:52 PM
• Last activity: Jun 6, 2023, 06:49 PM
0
votes
1
answers
21
views
Using same unpacked tarball to configure to install software into multiple different spots on server
Working on rebuilding some AWS linux servers. I see my company's server has Apache Portable Runtime (APR) downloaded within our Apache webserver instance as well as Tomcat. What are the implications of configuring to install into multiple different locations/softwares, such as APR into Tomcat and Ap...
Working on rebuilding some AWS linux servers. I see my company's server has Apache Portable Runtime (APR) downloaded within our Apache webserver instance as well as Tomcat.
What are the implications of configuring to install into multiple different locations/softwares, such as APR into Tomcat and Apache webserver?
If I run
./configure --prefix=/opt/tomcat/
and then another ./configure --prefix=/opt/apache2/
I see it downloaded the packages in those places.
Is this okay to do? Are there issues with doing this?
I see this done on the old servers where openSSL is also downloaded within apache and tomcat, and I'm assuming it was done with this same approach. But just want to get a good explanation as to the why this either okay or bad practice.
John
(23 rep)
Jan 30, 2023, 09:11 PM
• Last activity: Jan 30, 2023, 09:25 PM
21
votes
4
answers
41101
views
Package "fontconfig" not found despite having installed libfontconfig1-dev
Whilst attempting to compile [poppler](http://poppler.freedesktop.org) from source I get the error `Package "fontconfig" not found`. I have found a lot of other resources advertising that this can be fixed by installing both `pkg-config` and `libfontconfig1-dev` to get the libraries, but I still got...
Whilst attempting to compile [poppler](http://poppler.freedesktop.org) from source I get the error
Package "fontconfig" not found
.
I have found a lot of other resources advertising that this can be fixed by installing both pkg-config
and libfontconfig1-dev
to get the libraries, but I still got the error.
Trying to install fontconfig
from source failed at the make
step and I've found no resources on how to fix (whole host of C errors).
If I have fontconfig
on the system (and apt
seems to suggest I do) how can I use it when running ./configure
for a package?
M1ke
(589 rep)
Dec 13, 2016, 12:47 PM
• Last activity: Dec 23, 2022, 10:00 PM
2
votes
1
answers
486
views
How to provide library path to ./configure script
I was trying to install a library called [Openslide](https://openslide.org/) which failed during the `./configure` step because it could not find a dependency ([libjpeg](https://libjpeg.sourceforge.net/)). I thought I would proceed to build libjpeg and then manually provide the library location to `...
I was trying to install a library called [Openslide](https://openslide.org/) which failed during the
./configure
step because it could not find a dependency ([libjpeg](https://libjpeg.sourceforge.net/)) .
I thought I would proceed to build libjpeg and then manually provide the library location to ./configure
to make it work. After building libjpeg at ~/libjpeg
, I thought I could just add ~/libjpeg/lib
to LD_LIBRARY_PATH
by putting the following in my bashrc and re-sourcing it LD_LIBRARY_PATH=~/libjpeg/lib:$LD_LIBRARY_PATH
.
This didn't work and libjpeg still couldn't be found by the ./configure
script in Openslide. I started hunting down answers online, one suggestion was to try ./configure --with-libjpeg=~/libjpeg/lib
which also failed.
I eventually gave up and just did a sudo apt install, but I am still curious as to why I couldn't manually provide the location of the library. Is there a correct way to do this?
Joff
(393 rep)
Nov 22, 2022, 12:40 PM
• Last activity: Nov 22, 2022, 03:22 PM
Showing page 1 of 20 total questions