[CM] error when running Snd when compiled without gui toolkit
David O'Toole
deeteeoh1138 at gmail.com
Wed Dec 9 12:26:43 PST 2020
Thank you for your help.
I tried re-running configure with --with-notcurses, but config.log (below)
doesn't seem to say anything about it either way.
I will try the patch you suggested, and update you.
---------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by snd configure 20.9, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --with-alsa --with-ladspa --with-pulseaudio --with-notcurses
## --------- ##
## Platform. ##
## --------- ##
hostname = nomad
uname -m = x86_64
uname -r = 5.0.0-32-generic
uname -s = Linux
uname -v = #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019
/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: /home/dto/.local/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games
PATH: /snap/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2370: checking build system type
configure:2384: result: x86_64-pc-linux-gnu
configure:2404: checking host system type
configure:2417: result: x86_64-pc-linux-gnu
configure:2489: checking for gcc
configure:2505: found /usr/bin/gcc
configure:2516: result: gcc
configure:2745: checking for C compiler version
configure:2754: gcc --version >&5
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 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:2765: $? = 0
configure:2754: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-7
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin
--enable-default-pie --with-system-zlib --with-target-system-zlib
--enable-objc-gc=auto --enable-multiarch --disable-werror
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
configure:2765: $? = 0
configure:2754: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2765: $? = 1
configure:2754: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean
'--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2765: $? = 1
configure:2785: checking whether the C compiler works
configure:2807: gcc conftest.c >&5
configure:2811: $? = 0
configure:2859: result: yes
configure:2862: checking for C compiler default output file name
configure:2864: result: a.out
configure:2870: checking for suffix of executables
configure:2877: gcc -o conftest conftest.c >&5
configure:2881: $? = 0
configure:2903: result:
configure:2925: checking whether we are cross compiling
configure:2933: gcc -o conftest conftest.c >&5
configure:2937: $? = 0
configure:2944: ./conftest
configure:2948: $? = 0
configure:2963: result: no
configure:2968: checking for suffix of object files
configure:2990: gcc -c conftest.c >&5
configure:2994: $? = 0
configure:3015: result: o
configure:3019: checking whether we are using the GNU C compiler
configure:3038: gcc -c conftest.c >&5
configure:3038: $? = 0
configure:3047: result: yes
configure:3056: checking whether gcc accepts -g
configure:3076: gcc -c -g conftest.c >&5
configure:3076: $? = 0
configure:3117: result: yes
configure:3134: checking for gcc option to accept ISO C89
configure:3197: gcc -c -g -O2 conftest.c >&5
configure:3197: $? = 0
configure:3210: result: none needed
configure:3246: checking for a BSD-compatible install
configure:3314: result: /usr/bin/install -c
configure:3558: checking how to run the C preprocessor
configure:3589: gcc -E conftest.c
configure:3589: $? = 0
configure:3603: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3603: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "snd"
| #define PACKAGE_TARNAME "
ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz"
| #define PACKAGE_VERSION "20.9"
| #define PACKAGE_STRING "snd 20.9"
| #define PACKAGE_BUGREPORT "bil at ccrma.stanford.edu"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3628: result: gcc -E
configure:3648: gcc -E conftest.c
configure:3648: $? = 0
configure:3662: gcc -E conftest.c
conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory
#include <ac_nonexistent.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3662: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "snd"
| #define PACKAGE_TARNAME "
ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz"
| #define PACKAGE_VERSION "20.9"
| #define PACKAGE_STRING "snd 20.9"
| #define PACKAGE_BUGREPORT "bil at ccrma.stanford.edu"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3691: checking for grep that handles long lines and -e
configure:3749: result: /bin/grep
configure:3754: checking for egrep
configure:3816: result: /bin/grep -E
configure:3821: checking for ANSI C header files
configure:3841: gcc -c -g -O2 conftest.c >&5
configure:3841: $? = 0
configure:3914: gcc -o conftest -g -O2 conftest.c >&5
configure:3914: $? = 0
configure:3914: ./conftest
configure:3914: $? = 0
configure:3925: result: yes
configure:3938: checking for sys/types.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for sys/stat.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for stdlib.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for string.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for memory.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for strings.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for inttypes.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for stdint.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3938: checking for unistd.h
configure:3938: gcc -c -g -O2 conftest.c >&5
configure:3938: $? = 0
configure:3938: result: yes
configure:3950: checking whether byte ordering is bigendian
configure:3965: gcc -c -g -O2 conftest.c >&5
conftest.c:20:9: error: unknown type name 'not'
not a universal capable compiler
^~~
conftest.c:20:15: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'universal'
not a universal capable compiler
^~~~~~~~~
conftest.c:20:15: error: unknown type name 'universal'
configure:3965: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "snd"
| #define PACKAGE_TARNAME "
ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz"
| #define PACKAGE_VERSION "20.9"
| #define PACKAGE_STRING "snd 20.9"
| #define PACKAGE_BUGREPORT "bil at ccrma.stanford.edu"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #ifndef __APPLE_CC__
| not a universal capable compiler
| #endif
| typedef int dummy;
|
configure:4010: gcc -c -g -O2 conftest.c >&5
configure:4010: $? = 0
configure:4028: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:26:4: error: unknown type name 'not'; did you mean 'ino_t'?
not big endian
^~~
ino_t
conftest.c:26:12: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'endian'
not big endian
^~~~~~
configure:4028: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "snd"
| #define PACKAGE_TARNAME "
ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz"
| #define PACKAGE_VERSION "20.9"
| #define PACKAGE_STRING "snd 20.9"
| #define PACKAGE_BUGREPORT "bil at ccrma.stanford.edu"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <sys/types.h>
| #include <sys/param.h>
|
| int
| main ()
| {
| #if BYTE_ORDER != BIG_ENDIAN
| not big endian
| #endif
|
| ;
| return 0;
| }
configure:4156: result: no
configure:4178: checking size of void *
configure:4183: gcc -o conftest -g -O2 conftest.c >&5
configure:4183: $? = 0
configure:4183: ./conftest
configure:4183: $? = 0
configure:4197: result: 8
configure:4270: checking for pkg-config
configure:4288: found /usr/bin/pkg-config
configure:4300: result: /usr/bin/pkg-config
configure:4325: checking pkg-config is at least version 0.9.0
configure:4328: result: yes
configure:4346: checking for fftw3
configure:4355: result: yes
configure:4396: checking for gsl
configure:4405: result: yes
configure:5640: checking for oggdec
configure:5656: found /usr/bin/oggdec
configure:5667: result: no
configure:5677: checking for oggenc
configure:5693: found /usr/bin/oggenc
configure:5704: result: no
configure:5731: checking for mpg123
configure:5758: result: /usr/bin/mpg123,
configure:5779: checking for mpg321
configure:5795: found /usr/bin/mpg321
configure:5806: result: no
configure:5829: checking for speexdec
configure:5859: result: no
configure:5866: checking for speexenc
configure:5896: result: no
configure:5920: checking for flac
configure:5947: result: /usr/bin/flac
configure:5968: checking for timidity
configure:5984: found /usr/bin/timidity
configure:5995: result: no
configure:6016: checking for wavpack
configure:6046: result: no
configure:6053: checking for wvunpack
configure:6083: result: no
configure:6231: checking for audio system
configure:6233: result: ALSA
configure:6569: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by snd config.status 20.9, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on nomad
config.status:877: creating makefile
config.status:877: creating mus-config.h
configure:7748: result:
Options selected
-------------------------
Snd version ...........: 20.9
CFLAGS ................: -O2 -I. -g -O2
LDFLAGS ...............: -Wl,-export-dynamic
LIBS...................: -lm -ldl
prefix.................: /usr/local
extension language.....: s7
audio system...........: ALSA
graphics toolkit.......: None
optional libraries.....: fftw-3.3.7 gsl-2.4
random features........: ladspa
environs...............: x86_64-pc-linux-gnu gcc
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
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_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_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_PATH_FLAC=/usr/bin/flac
ac_cv_prog_PATH_MPG123=/usr/bin/mpg123,
ac_cv_prog_PATH_MPG321=no
ac_cv_prog_PATH_OGGDEC=no
ac_cv_prog_PATH_OGGENC=no
ac_cv_prog_PATH_TIMIDITY=no
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_sizeof_void_p=8
## ----------------- ##
## Output variables. ##
## ----------------- ##
AUDIO_LIB='-lasound'
CC='gcc'
CFLAGS='-O2 -I. -g -O2'
CPP='gcc -E'
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
FFTW_CFLAGS=''
FFTW_LIBS='-lfftw3'
FTH=''
GL_FILES=''
GL_FLAGS=''
GL_LIBS=''
GMP_LIBS=''
GREP='/bin/grep'
GRFX_CFLAGS=''
GRFX_LD_LIBS=''
GRFX_LIBS=''
GSL_CFLAGS=''
GSL_LIBS='-lgsl -lgslcblas -lm'
GX_FILES='NO_GUI_O_FILES'
GX_HEADERS='NO_GUI_HEADERS'
INSTALL='/usr/bin/install -c'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
JACK_FLAGS=''
JACK_LIBS=''
LDFLAGS=' -Wl,-export-dynamic'
LDSO_FLAGS='-shared'
LIBOBJS=''
LIBS=' -lm -ldl'
LTLIBOBJS=''
MAKE_TARGET='snd'
OBJEXT='o'
ORIGINAL_LDFLAGS=''
PACKAGE_BUGREPORT='bil at ccrma.stanford.edu'
PACKAGE_NAME='snd'
PACKAGE_STRING='snd 20.9'
PACKAGE_TARNAME='ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz'
PACKAGE_URL=''
PACKAGE_VERSION='20.9'
PATH_FLAC='/usr/bin/flac'
PATH_MPG123='/usr/bin/mpg123,'
PATH_MPG321='no'
PATH_OGGDEC='no'
PATH_OGGENC='no'
PATH_SEPARATOR=':'
PATH_SPEEXDEC=''
PATH_SPEEXENC=''
PATH_TIMIDITY='no'
PATH_WAVPACK=''
PATH_WVUNPACK=''
PKG_CONFIG='/usr/bin/pkg-config'
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
S7_LIB='s7.o'
SHELL='/bin/bash'
SO_FLAGS='-fPIC '
SO_LD='gcc'
WEBSERVER_FILES=''
WEBSERVER_LIBS=''
XEN_CFLAGS=''
XEN_LIBS=''
XFLAGS=''
XLIBS=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "snd"
#define PACKAGE_TARNAME "ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-20.tar.gz
"
#define PACKAGE_VERSION "20.9"
#define PACKAGE_STRING "snd 20.9"
#define PACKAGE_BUGREPORT "bil at ccrma.stanford.edu"
#define PACKAGE_URL ""
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define SIZEOF_VOID_P 8
#define HAVE_FFTW3 1
#define HAVE_GSL 1
#define HAVE_LADSPA 1
#define USE_NO_GUI 1
#define HAVE_SCHEME 1
#define HAVE_MPEG 1
#define PATH_MPG123 "/usr/bin/mpg123,"
#define HAVE_SPEEX 1
#define PATH_SPEEXDEC ""
#define PATH_SPEEXENC ""
#define HAVE_FLAC 1
#define PATH_FLAC "/usr/bin/flac"
#define HAVE_WAVPACK 1
#define PATH_WAVPACK ""
#define PATH_WVUNPACK ""
#define MUS_PULSEAUDIO 1
#define HAVE_ALSA 1
#define WITH_AUDIO 1
configure: exit 0
On Wed, Dec 9, 2020 at 1:43 PM <bil at ccrma.stanford.edu> wrote:
> The error is the same because you haven't changed anything.
> If --with-notcurses fails, it falls back on --without-gui.
>
> I think you can get snd to run with the basic repl via ./snd -noinit.
>
> Since it's trying to load repl.scm, I assume you have an init file
> that sets the load path. Apparently it doesn't find libc_s7.so,
> so it tries to make it. It might work to add this
>
> (unless (or (file-exists? "s7.h")
> (not (pair? *load-path*)))
> (set! *cload-cflags* (append *cload-cflags*
> (format #f " -I~A" (car *load-path*)))))
>
> at line 592 of cload.scm -- this adds a -I flag to the compiler
> invocation with the first entry in *load-path*.
>
> The notcurses version does not need anything at startup.
> If you run configure again including --with-notcurses,
> config.log might have useful info.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20201209/bdac3c1a/attachment-0001.html>
More information about the Cmdist
mailing list