You are not logged in.
When i install xrdp using yay i met this problem
```
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in '/home/steven/.cache/yay/xrdp-git/src/xrdp':
configure: error: C compiler cannot create executables
See 'config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...
```
and when the config.log is
```
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xrdp configure 0.10.0, which was
generated by GNU Autoconf 2.72. Invocation command line was
$ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --sbindir=/usr/bin --with-systemdsystemunitdir=/usr/lib/systemd/system --enable-jpeg --enable-tjpeg --enable-fuse --enable-fdkaac --enable-opus --enable-rfxcodec --enable-mp3lame --enable-pixman --enable-painter --enable-vsock --enable-ipv6 --enable-pam-config=arch --enable-rdpsndaudin --with-imlib2
## --------- ##
## Platform. ##
## --------- ##
hostname = steven
uname -m = x86_64
uname -r = 6.10.0-rc3-1-git-00021-g2ef5971ff345
uname -s = Linux
uname -v = #1 SMP PREEMPT_DYNAMIC Wed, 12 Jun 2024 04:44:26 +0000
/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: /usr/lib/ccache/bin/
PATH: /opt/miniconda3/condabin/
PATH: /usr/local/sbin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /usr/lib/jvm/default/bin/
PATH: /usr/bin/site_perl/
PATH: /usr/bin/vendor_perl/
PATH: /usr/bin/core_perl/
PATH: /usr/lib/rustup/bin/
PATH: /home/steven/Android/Sdk/cmdline-tools/latest/bin/
PATH: /home/steven/fvm/default/bin/
PATH: /home/steven/.local/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3358: looking for aux files: tap-driver.sh config.guess config.sub ltmain.sh compile missing install-sh
configure:3371: trying ./
configure:3400: ./tap-driver.sh found
configure:3400: ./config.guess found
configure:3400: ./config.sub found
configure:3400: ./ltmain.sh found
configure:3400: ./compile found
configure:3400: ./missing found
configure:3382: ./install-sh found
configure:3535: checking for a BSD-compatible install
configure:3609: result: /usr/bin/install -c
configure:3620: checking whether build environment is sane
configure:3675: result: yes
configure:3836: checking for a race-free mkdir -p
configure:3879: result: /usr/bin/mkdir -p
configure:3886: checking for gawk
configure:3907: found /usr/bin/gawk
configure:3919: result: gawk
configure:3930: checking whether make sets $(MAKE)
configure:3954: result: yes
configure:3984: checking whether make supports nested variables
configure:4003: result: yes
configure:4203: checking for gcc
configure:4224: found /usr/lib/ccache/bin/gcc
configure:4236: result: gcc
configure:4595: checking for C compiler version
configure:4604: gcc --version >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4615: $? = 1
configure:4604: gcc -v >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4615: $? = 1
configure:4604: gcc -V >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4615: $? = 1
configure:4604: gcc -qversion >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4615: $? = 1
configure:4604: gcc -version >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4615: $? = 1
configure:4635: checking whether the C compiler works
configure:4657: gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/steven/.cache/yay/xrdp/src=/usr/src/debug/xrdp -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto conftest.c >&5
gcc: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found (required by gcc)
gcc: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.15' not found (required by gcc)
configure:4661: $? = 1
configure:4702: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xrdp"
| #define PACKAGE_TARNAME "xrdp"
| #define PACKAGE_VERSION "0.10.0"
| #define PACKAGE_STRING "xrdp 0.10.0"
| #define PACKAGE_BUGREPORT "xrdp-devel@googlegroups.com"
| #define PACKAGE_URL ""
| #define VERSION_YEAR 2024
| #define PACKAGE "xrdp"
| #define VERSION "0.10.0"
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:4707: error: in '/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0':
configure:4709: error: C compiler cannot create executables
See 'config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
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='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/steven/.cache/yay/xrdp/src=/usr/src/debug/xrdp -flto=auto'
ac_cv_env_CHECK_CFLAGS_set=
ac_cv_env_CHECK_CFLAGS_value=
ac_cv_env_CHECK_LIBS_set=
ac_cv_env_CHECK_LIBS_value=
ac_cv_env_CMOCKA_CFLAGS_set=
ac_cv_env_CMOCKA_CFLAGS_value=
ac_cv_env_CMOCKA_LIBS_set=
ac_cv_env_CMOCKA_LIBS_value=
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=set
ac_cv_env_CXXFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/steven/.cache/yay/xrdp/src=/usr/src/debug/xrdp -flto=auto'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FDKAAC_CFLAGS_set=
ac_cv_env_FDKAAC_CFLAGS_value=
ac_cv_env_FDKAAC_LIBS_set=
ac_cv_env_FDKAAC_LIBS_value=
ac_cv_env_FREERDP_CFLAGS_set=
ac_cv_env_FREERDP_CFLAGS_value=
ac_cv_env_FREERDP_LIBS_set=
ac_cv_env_FREERDP_LIBS_value=
ac_cv_env_FREETYPE2_CFLAGS_set=
ac_cv_env_FREETYPE2_CFLAGS_value=
ac_cv_env_FREETYPE2_LIBS_set=
ac_cv_env_FREETYPE2_LIBS_value=
ac_cv_env_FUSE_CFLAGS_set=
ac_cv_env_FUSE_CFLAGS_value=
ac_cv_env_FUSE_LIBS_set=
ac_cv_env_FUSE_LIBS_value=
ac_cv_env_IMLIB2_CFLAGS_set=
ac_cv_env_IMLIB2_CFLAGS_value=
ac_cv_env_IMLIB2_LIBS_set=
ac_cv_env_IMLIB2_LIBS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto'
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_OPENSSL_CFLAGS_set=
ac_cv_env_OPENSSL_CFLAGS_value=
ac_cv_env_OPENSSL_LIBS_set=
ac_cv_env_OPENSSL_LIBS_value=
ac_cv_env_PIXMAN_CFLAGS_set=
ac_cv_env_PIXMAN_CFLAGS_value=
ac_cv_env_PIXMAN_LIBS_set=
ac_cv_env_PIXMAN_LIBS_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_XMKMF_set=
ac_cv_env_XMKMF_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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '\''/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/missing'\'' aclocal-1.16'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTHMOD_LIB=''
AUTHMOD_OBJ=''
AUTOCONF='${SHELL} '\''/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/missing'\'' automake-1.16'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/steven/.cache/yay/xrdp/src=/usr/src/debug/xrdp -flto=auto'
CHECK_CFLAGS=''
CHECK_LIBS=''
CMOCKA_CFLAGS=''
CMOCKA_LIBS=''
CPP=''
CPPFLAGS=''
CSCOPE='cscope'
CTAGS='ctags'
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/steven/.cache/yay/xrdp/src=/usr/src/debug/xrdp -flto=auto'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DEVEL_DEBUG_FALSE=''
DEVEL_DEBUG_TRUE=''
DLLTOOL=''
DLOPEN_LIBS=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FDKAAC_CFLAGS=''
FDKAAC_LIBS=''
FGREP=''
FILECMD=''
FREEBSD_FALSE=''
FREEBSD_TRUE=''
FREERDP_CFLAGS=''
FREERDP_LIBS=''
FREETYPE2_CFLAGS=''
FREETYPE2_LIBS=''
FUSE_CFLAGS=''
FUSE_LIBS=''
GREP=''
HAVE_SYSTEMD_FALSE=''
HAVE_SYSTEMD_TRUE=''
IMLIB2_CFLAGS=''
IMLIB2_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LINUX_FALSE=''
LINUX_TRUE=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MACOS_FALSE=''
MACOS_TRUE=''
MAKEINFO='${SHELL} '\''/home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/usr/bin/mkdir -p'
NETBSD_FALSE=''
NETBSD_TRUE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENBSD_FALSE=''
OPENBSD_TRUE=''
OPENSSL=''
OPENSSL_CFLAGS=''
OPENSSL_LIBS=''
OTOOL64=''
OTOOL=''
PACKAGE='xrdp'
PACKAGE_BUGREPORT='xrdp-devel@googlegroups.com'
PACKAGE_NAME='xrdp'
PACKAGE_STRING='xrdp 0.10.0'
PACKAGE_TARNAME='xrdp'
PACKAGE_URL=''
PACKAGE_VERSION='0.10.0'
PAM_RULES=''
PATH_SEPARATOR=':'
PIXMAN_CFLAGS=''
PIXMAN_LIBS=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
RANLIB=''
SED=''
SESMAN_BSD_FALSE=''
SESMAN_BSD_TRUE=''
SESMAN_KERBEROS_FALSE=''
SESMAN_KERBEROS_TRUE=''
SESMAN_NOPAM_FALSE=''
SESMAN_NOPAM_TRUE=''
SESMAN_PAMUSERPASS_FALSE=''
SESMAN_PAMUSERPASS_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TurboJpegIncDir=''
TurboJpegLibDir=''
USE_FREETYPE2_FALSE=''
USE_FREETYPE2_TRUE=''
VERSION='0.10.0'
XMKMF=''
XRDP_FDK_AAC_FALSE=''
XRDP_FDK_AAC_TRUE=''
XRDP_FUSE_FALSE=''
XRDP_FUSE_TRUE=''
XRDP_JPEG_FALSE=''
XRDP_JPEG_TRUE=''
XRDP_MP3LAME_FALSE=''
XRDP_MP3LAME_TRUE=''
XRDP_NEUTRINORDP_FALSE=''
XRDP_NEUTRINORDP_TRUE=''
XRDP_OPUS_FALSE=''
XRDP_OPUS_TRUE=''
XRDP_PAINTER_FALSE=''
XRDP_PAINTER_TRUE=''
XRDP_PIXMAN_FALSE=''
XRDP_PIXMAN_TRUE=''
XRDP_RDPSNDAUDIN_FALSE=''
XRDP_RDPSNDAUDIN_TRUE=''
XRDP_RFXCODEC_FALSE=''
XRDP_RFXCODEC_TRUE=''
XRDP_TJPEG_FALSE=''
XRDP_TJPEG_TRUE=''
XRDP_ULALACA_FALSE=''
XRDP_ULALACA_TRUE=''
XRDP_XRDPVR_FALSE=''
XRDP_XRDPVR_TRUE=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_AR=''
ac_ct_CC='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='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/steven/.cache/yay/xrdp/src/xrdp-0.10.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
moduledir=''
oldincludedir='/usr/include'
pamconfdir=''
pdfdir='${docdir}'
pkgconfigdir=''
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='/usr/bin'
sharedstatedir='${prefix}/com'
socketdir=''
subdirs=''
sysconfdir='/etc'
systemdsystemunitdir=''
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "xrdp"
#define PACKAGE_TARNAME "xrdp"
#define PACKAGE_VERSION "0.10.0"
#define PACKAGE_STRING "xrdp 0.10.0"
#define PACKAGE_BUGREPORT "xrdp-devel@googlegroups.com"
#define PACKAGE_URL ""
#define VERSION_YEAR 2024
#define PACKAGE "xrdp"
#define VERSION "0.10.0"
configure: exit 77
```
Offline
it fixed after i set /etc/makepkg.conf with !ccache
it seems a problem related with ccache
how to fix ccache because i also meet
-- Check for working C compiler: /usr/lib/ccache/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/lib/ccache/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/steven/.cache/yay/qv2ray-plugin-naiveproxy-git/src/qv2ray-plugin-naiveproxy/build/CMakeFiles/CMakeScratch/TryCompile-leFLPN'
Run Build Command(s): /usr/bin/ninja -v cmTC_5f124
[1/2] /usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/steven/.cache/yay/qv2ray-plugin-naiveproxy-git/src=/usr/src/debug/qv2ray-plugin-naiveproxy-git -flto=auto -o CMakeFiles/cmTC_5f124.dir/testCCompiler.c.o -c /home/steven/.cache/yay/qv2ray-plugin-naiveproxy-git/src/qv2ray-plugin-naiveproxy/build/CMakeFiles/CMakeScratch/TryCompile-leFLPN/testCCompiler.c
FAILED: CMakeFiles/cmTC_5f124.dir/testCCompiler.c.o
/usr/lib/ccache/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/home/steven/.cache/yay/qv2ray-plugin-naiveproxy-git/src=/usr/src/debug/qv2ray-plugin-naiveproxy-git -flto=auto -o CMakeFiles/cmTC_5f124.dir/testCCompiler.c.o -c /home/steven/.cache/yay/qv2ray-plugin-naiveproxy-git/src/qv2ray-plugin-naiveproxy/build/CMakeFiles/CMakeScratch/TryCompile-leFLPN/testCCompiler.c
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
Offline
Please edit your post to use code tags.
https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode
Mod note: moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Please post the output of the following in code tags:
pacman -Qi gcc gcc-libs ccacheOffline