flux-framework / flux-core

core services for the Flux resource management framework
GNU Lesser General Public License v3.0
167 stars 50 forks source link

C preprocessor "clang-cpp" fails sanity check #5798

Closed mattf4171 closed 7 months ago

mattf4171 commented 7 months ago

I am trying to build flux-core and when running .configure an error occurs:

checking how to run the C preprocessor... clang-cpp
configure: error: in `/root/Flux/flux-core':
configure: error: C preprocessor "clang-cpp" fails sanity check

The below snippet of the entire config.log file is what concerns me to believe dependencies are not properly set up.

configure:5372: clang -c -g -O2  conftest.c >&5
conftest.c:33:9: error: use of undeclared identifier 'thisisanerror'
        thisisanerror;
        ^
1 error generated.
configure:5372: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|       #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))
|         thisisanerror;
|       #endif
| 
|   ;
|   return 0;
| }
grondo commented 7 months ago

That snippet appears to be an expected error. Can you paste the entire config.log (either attached here or at paste.centos.org or similar)? configure is complaining that clang-cpp isn't working as a valid C preprocessor...

mattf4171 commented 7 months ago

That snippet appears to be an expected error. Can you paste the entire config.log (either attached here or at paste.centos.org or similar)? configure is complaining that clang-cpp isn't working as a valid C preprocessor...

@grondo Here is the entire config.log file.

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

It was created by flux-core configure 0.59.0-131-g01a63f291, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

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

hostname = ****
uname -m = x86_64
uname -r = 4.18.0-477.10.1.el8_8.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Apr 5 13:35:01 EDT 2023

/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin

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

configure:2756: checking build system type
configure:2770: result: x86_64-pc-linux-gnu
configure:2790: checking host system type
configure:2803: result: x86_64-pc-linux-gnu
configure:2823: checking target system type
configure:2836: result: x86_64-pc-linux-gnu
configure:2871: checking installation directory variables
configure:3122: result: yes
configure:3145: checking for a BSD-compatible install
configure:3213: result: /usr/bin/install -c
configure:3224: checking whether build environment is sane
configure:3279: result: yes
configure:3428: checking for a thread-safe mkdir -p
configure:3467: result: /usr/bin/mkdir -p
configure:3474: checking for gawk
configure:3490: found /usr/bin/gawk
configure:3501: result: gawk
configure:3512: checking whether make sets $(MAKE)
configure:3534: result: yes
configure:3563: checking whether make supports nested variables
configure:3580: result: yes
configure:3659: checking how to create a pax tar archive
configure:3670: tar --version
tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:3673: $? = 0
configure:3713: tardir=conftest.dir && eval tar --format=posix -chf - "$tardir" >conftest.tar
configure:3716: $? = 0
configure:3720: tar -xf - <conftest.tar
configure:3723: $? = 0
configure:3725: cat conftest.dir/file
GrepMe
configure:3728: $? = 0
configure:3741: result: gnutar
configure:3802: checking whether make supports nested variables
configure:3819: result: yes
configure:3833: checking whether to enable maintainer-specific portions of Makefiles
configure:3842: result: yes
configure:3863: checking for a sed that does not truncate output
configure:3927: result: /usr/bin/sed
configure:3937: checking Major version
configure:3939: result: 0
configure:3941: checking Minor version
configure:3943: result: 59
configure:3945: checking Point version
configure:3947: result: 0-131-g01a63f291
configure:4007: checking for pkg-config
configure:4025: found /usr/bin/pkg-config
configure:4037: result: /usr/bin/pkg-config
configure:4062: checking pkg-config is at least version 0.9.0
configure:4065: result: yes
configure:4138: checking whether make supports the include directive
configure:4153: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:4156: $? = 0
configure:4175: result: yes (GNU style)
configure:4245: checking for gcc
configure:4272: result: clang
configure:4501: checking for C compiler version
configure:4510: clang --version >&5
clang version 10.0.0-4ubuntu1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
configure:4521: $? = 0
configure:4510: clang -v >&5
clang version 10.0.0-4ubuntu1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Candidate multilib: .;@m64
Selected multilib: .;@m64
configure:4521: $? = 0
configure:4510: clang --version >&5
clang version 10.0.0-4ubuntu1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
configure:4521: $? = 0
configure:4541: checking whether the C compiler works
configure:4563: clang    conftest.c  >&5
configure:4567: $? = 0
configure:4615: result: yes
configure:4618: checking for C compiler default output file name
configure:4620: result: a.out
configure:4626: checking for suffix of executables
configure:4633: clang -o conftest    conftest.c  >&5
configure:4637: $? = 0
configure:4659: result: 
configure:4681: checking whether we are cross compiling
configure:4689: clang -o conftest    conftest.c  >&5
configure:4693: $? = 0
configure:4700: ./conftest
configure:4704: $? = 0
configure:4692: result: no
configure:4697: checking for suffix of object files
configure:4719: clang -c   conftest.c >&5
configure:4723: $? = 0
configure:4744: result: o
configure:4748: checking whether we are using the GNU C compiler
configure:4767: clang -c   conftest.c >&5
configure:4767: $? = 0
configure:4776: result: yes
configure:4785: checking whether clang accepts -g
configure:4805: clang -c -g  conftest.c >&5
configure:4805: $? = 0
configure:4846: result: yes
configure:4863: checking for clang option to accept ISO C89
configure:4926: clang  -c -g -O2  conftest.c >&5
configure:4926: $? = 0
configure:4939: result: none needed
configure:4964: checking whether clang understands -c and -o together
configure:4986: clang -c conftest.c -o conftest2.o
configure:4989: $? = 0
configure:4986: clang -c conftest.c -o conftest2.o
configure:4989: $? = 0
configure:5001: result: yes
configure:5020: checking dependency style of clang
configure:5131: result: gcc3
configure:5146: checking for clang option to accept ISO C99
configure:5295: clang  -c -g -O2  conftest.c >&5
configure:5295: $? = 0
configure:5308: result: none needed
configure:5325: checking for C compiler vendor
configure:5372: clang -c -g -O2  conftest.c >&5
conftest.c:33:9: error: use of undeclared identifier 'thisisanerror'
        thisisanerror;
        ^
1 error generated.
configure:5372: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|       #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))
|         thisisanerror;
|       #endif
| 
|   ;
|   return 0;
| }
configure:5372: clang -c -g -O2  conftest.c >&5
conftest.c:33:9: error: use of undeclared identifier 'thisisanerror'
        thisisanerror;
        ^
1 error generated.
configure:5372: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|       #if !(defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__))
|         thisisanerror;
|       #endif
| 
|   ;
|   return 0;
| }
configure:5372: clang -c -g -O2  conftest.c >&5
conftest.c:33:9: error: use of undeclared identifier 'thisisanerror'
        thisisanerror;
        ^
1 error generated.
configure:5372: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|       #if !(defined(__PATHCC__) || defined(__PATHSCALE__))
|         thisisanerror;
|       #endif
| 
|   ;
|   return 0;
| }
configure:5372: clang -c -g -O2  conftest.c >&5
configure:5372: $? = 0
configure:5380: result: clang
configure:5385: checking for C compiler version
configure:5545: clang -o conftest -g -O2   conftest.c  >&5
configure:5545: $? = 0
configure:5545: ./conftest
configure:5545: $? = 0
configure:5554: clang -o conftest -g -O2   conftest.c  >&5
configure:5554: $? = 0
configure:5554: ./conftest
configure:5554: $? = 0
configure:5563: clang -o conftest -g -O2   conftest.c  >&5
configure:5563: $? = 0
configure:5563: ./conftest
configure:5563: $? = 0
configure:6342: result: 10.0.0
configure:6357: checking If -Werror=missing-field-initializers can be used
configure:6367: result: yes
configure:6376: checking whether to enable a sanitizer tool
configure:6394: result: no
configure:6447: clang -c -g -O2  conftest.c >&5
configure:6447: $? = 0
configure:6469: checking for rsh
configure:6487: found /usr/bin/rsh
configure:6499: result: /usr/bin/rsh
configure:6563: checking how to print strings
configure:6590: result: printf
configure:6611: checking for a sed that does not truncate output
configure:6675: result: /usr/bin/sed
configure:6693: checking for grep that handles long lines and -e
configure:6751: result: /usr/bin/grep
configure:6756: checking for egrep
configure:6818: result: /usr/bin/grep -E
configure:6823: checking for fgrep
configure:6885: result: /usr/bin/grep -F
configure:6920: checking for ld used by clang
configure:6987: result: /usr/bin/ld
configure:6994: checking if the linker (/usr/bin/ld) is GNU ld
configure:7009: result: yes
configure:7021: checking for BSD- or MS-compatible name lister (nm)
configure:7075: result: /usr/bin/nm -B
configure:7205: checking the name lister (/usr/bin/nm -B) interface
configure:7212: clang -c -g -O2  conftest.c >&5
configure:7215: /usr/bin/nm -B "conftest.o"
configure:7218: output
0000000000000000 B some_variable
configure:7219: result: BSD nm
configure:7222: checking whether ln -s works
configure:7226: result: yes
configure:7234: checking the maximum length of command line arguments
configure:7365: result: 3458764513820540925
configure:7413: checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format
configure:7453: result: func_convert_file_noop
configure:7460: checking how to convert x86_64-pc-linux-gnu file names to toolchain format
configure:7480: result: func_convert_file_noop
configure:7487: checking for /usr/bin/ld option to reload object files
configure:7494: result: -r
configure:7568: checking for objdump
configure:7584: found /usr/bin/objdump
configure:7595: result: objdump
configure:7627: checking how to recognize dependent libraries
configure:7827: result: pass_all
configure:7912: checking for dlltool
configure:7942: result: no
configure:7972: checking how to associate runtime and link libraries
configure:7999: result: printf %s\n
configure:8059: checking for ar
configure:8075: found /usr/bin/ar
configure:8086: result: ar
configure:8123: checking for archiver @FILE support
configure:8140: clang -c -g -O2  conftest.c >&5
configure:8140: $? = 0
configure:8143: ar cr libconftest.a @conftest.lst >&5
configure:8146: $? = 0
configure:8151: ar cr libconftest.a @conftest.lst >&5
ar: conftest.o: No such file or directory
configure:8154: $? = 1
configure:8153: result: @
configure:8211: checking for strip
configure:8227: found /usr/bin/strip
configure:8238: result: strip
configure:8310: checking for ranlib
configure:8326: found /usr/bin/ranlib
configure:8337: result: ranlib
configure:8439: checking command to parse /usr/bin/nm -B output from clang object
configure:8592: clang -c -g -O2  conftest.c >&5
configure:8595: $? = 0
configure:8599: /usr/bin/nm -B conftest.o | sed -n -e 's/^.*[    ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][  ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' > conftest.nm
configure:8665: clang -o conftest -g -O2   conftest.c conftstm.o >&5
configure:8668: $? = 0
configure:8706: result: ok
configure:8753: checking for sysroot
configure:8783: result: no
configure:8790: checking for a working dd
configure:8828: result: /usr/bin/dd
configure:8832: checking how to truncate binary pipes
configure:8847: result: /usr/bin/dd bs=4096 count=1
configure:8983: clang -c -g -O2  conftest.c >&5
configure:8986: $? = 0
configure:9176: checking for mt
configure:9206: result: no
configure:9226: checking if : is a manifest tool
configure:9232: : '-?'
configure:9240: result: no
configure:9917: checking how to run the C preprocessor
configure:9987: result: clang-cpp
configure:10007: clang-cpp  conftest.c
./configure: line 2138: clang-cpp: command not found
configure:10007: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| #define FLUX_DEEPBIND RTLD_DEEPBIND
| #define PATH_SSH "/usr/bin/rsh"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:10007: clang-cpp  conftest.c
./configure: line 2138: clang-cpp: command not found
configure:10007: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "flux-core"
| #define PACKAGE_TARNAME "flux-core"
| #define PACKAGE_VERSION "0.59.0-131-g01a63f291"
| #define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define X_PREFIX "/usr/local"
| #define X_EXEC_PREFIX "/usr/local"
| #define X_BINDIR "/usr/local/bin"
| #define X_SBINDIR "/usr/local/sbin"
| #define X_LIBEXECDIR "/usr/local/libexec"
| #define X_DATADIR "/usr/local/share"
| #define X_SYSCONFDIR "/usr/local/etc"
| #define X_SHAREDSTATEDIR "/usr/local/com"
| #define X_LOCALSTATEDIR "/usr/local/var"
| #define X_RUNSTATEDIR "/run"
| #define X_LIBDIR "/usr/local/lib"
| #define X_INCLUDEDIR "/usr/local/include"
| #define X_OLDINCLUDEDIR "/usr/include"
| #define X_INFODIR "/usr/local/share/info"
| #define X_MANDIR "/usr/local/share/man"
| #define PACKAGE "flux-core"
| #define VERSION "0.59.0-131-g01a63f291"
| #define _GNU_SOURCE 1
| #define FLUX_DEEPBIND RTLD_DEEPBIND
| #define PATH_SSH "/usr/bin/rsh"
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|            Syntax error
configure:10037: error: in `/root/Flux/flux-core':
configure:10039: error: C preprocessor "clang-cpp" fails sanity check
See `config.log' for more details

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

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CALIPER_CFLAGS_set=
ac_cv_env_CALIPER_CFLAGS_value=
ac_cv_env_CALIPER_LIBS_set=
ac_cv_env_CALIPER_LIBS_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
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=set
ac_cv_env_CPP_value=clang-cpp
ac_cv_env_CURSES_CFLAGS_set=
ac_cv_env_CURSES_CFLAGS_value=
ac_cv_env_CURSES_LIBS_set=
ac_cv_env_CURSES_LIBS_value=
ac_cv_env_FLUX_SECURITY_CFLAGS_set=
ac_cv_env_FLUX_SECURITY_CFLAGS_value=
ac_cv_env_FLUX_SECURITY_LIBS_set=
ac_cv_env_FLUX_SECURITY_LIBS_value=
ac_cv_env_HWLOC_CFLAGS_set=
ac_cv_env_HWLOC_CFLAGS_value=
ac_cv_env_HWLOC_LIBS_set=
ac_cv_env_HWLOC_LIBS_value=
ac_cv_env_JANSSON_CFLAGS_set=
ac_cv_env_JANSSON_CFLAGS_value=
ac_cv_env_JANSSON_LIBS_set=
ac_cv_env_JANSSON_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBARCHIVE_CFLAGS_set=
ac_cv_env_LIBARCHIVE_CFLAGS_value=
ac_cv_env_LIBARCHIVE_LIBS_set=
ac_cv_env_LIBARCHIVE_LIBS_value=
ac_cv_env_LIBSYSTEMD_CFLAGS_set=
ac_cv_env_LIBSYSTEMD_CFLAGS_value=
ac_cv_env_LIBSYSTEMD_LIBS_set=
ac_cv_env_LIBSYSTEMD_LIBS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBUUID_CFLAGS_set=
ac_cv_env_LIBUUID_CFLAGS_value=
ac_cv_env_LIBUUID_LIBS_set=
ac_cv_env_LIBUUID_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_LUA_INCLUDE_set=
ac_cv_env_LUA_INCLUDE_value=
ac_cv_env_LUA_LIB_set=
ac_cv_env_LUA_LIB_value=
ac_cv_env_LUA_set=
ac_cv_env_LUA_value=
ac_cv_env_LZ4_CFLAGS_set=
ac_cv_env_LZ4_CFLAGS_value=
ac_cv_env_LZ4_LIBS_set=
ac_cv_env_LZ4_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_PYTHON_VERSION_set=
ac_cv_env_PYTHON_VERSION_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_SQLITE_CFLAGS_set=
ac_cv_env_SQLITE_CFLAGS_value=
ac_cv_env_SQLITE_LIBS_set=
ac_cv_env_SQLITE_LIBS_value=
ac_cv_env_SSH_set=
ac_cv_env_SSH_value=
ac_cv_env_VALGRIND_CFLAGS_set=
ac_cv_env_VALGRIND_CFLAGS_value=
ac_cv_env_VALGRIND_LIBS_set=
ac_cv_env_VALGRIND_LIBS_value=
ac_cv_env_ZMQ_CFLAGS_set=
ac_cv_env_ZMQ_CFLAGS_value=
ac_cv_env_ZMQ_LIBS_set=
ac_cv_env_ZMQ_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_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_SSH=/usr/bin/rsh
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_lt_DD=/usr/bin/dd
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP=clang-cpp
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=clang
ac_cv_prog_ac_ct_OBJDUMP=objdump
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_c99=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_target=x86_64-pc-linux-gnu
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
am_cv_prog_tar_pax=gnutar
ax_cv_c_compiler_vendor=clang
ax_cv_c_compiler_version=10.0.0
lt_cv_ar_at_file=@
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_gnu_ld=yes
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[     ][  ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/  {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(lib.*\)$/  {"\1", (void *) \&\1},/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/  {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=3458764513820540925
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/usr/bin/dd bs=4096 count=1'

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

ACLOCAL='${SHELL} /root/Flux/flux-core/config/missing aclocal-1.16'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='0'
AM_V='$(V)'
AR='ar'
ASPELL=''
AUTOCONF='${SHELL} /root/Flux/flux-core/config/missing autoconf'
AUTOHEADER='${SHELL} /root/Flux/flux-core/config/missing autoheader'
AUTOMAKE='${SHELL} /root/Flux/flux-core/config/missing automake-1.16'
AWK='gawk'
AX_MAJOR_VERSION='0'
AX_MINOR_VERSION='59'
AX_POINT_VERSION='0'
CALIPER_CFLAGS=''
CALIPER_LIBS=''
CC='clang'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CODE_COVERAGE_CFLAGS=''
CODE_COVERAGE_CPPFLAGS=''
CODE_COVERAGE_CXXFLAGS=''
CODE_COVERAGE_ENABLED=''
CODE_COVERAGE_ENABLED_FALSE=''
CODE_COVERAGE_ENABLED_TRUE=''
CODE_COVERAGE_LDFLAGS=''
CODE_COVERAGE_LIBS=''
CODE_COVERAGE_RULES=''
CPP='clang-cpp'
CPPFLAGS=''
CURSES_CFLAGS=''
CURSES_LIBS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/grep -E'
ENABLE_CONTENT_S3_FALSE=''
ENABLE_CONTENT_S3_TRUE=''
ENABLE_DOCS_FALSE=''
ENABLE_DOCS_TRUE=''
ENABLE_PYLINT_FALSE=''
ENABLE_PYLINT_TRUE=''
EXEEXT=''
FGREP='/usr/bin/grep -F'
FLUX_SECURITY_CFLAGS=''
FLUX_SECURITY_INCDIR=''
FLUX_SECURITY_LIBS=''
GCOV=''
GENHTML=''
GREP='/usr/bin/grep'
HAVE_FLUX_SECURITY_FALSE=''
HAVE_FLUX_SECURITY_TRUE=''
HAVE_LIBSYSTEMD_FALSE=''
HAVE_LIBSYSTEMD_TRUE=''
HAVE_MPI_FALSE=''
HAVE_MPI_TRUE=''
HAVE_SYSTEMD_FALSE=''
HAVE_SYSTEMD_TRUE=''
HWLOC_CFLAGS=''
HWLOC_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JANSSON_CFLAGS=''
JANSSON_LIBS=''
LCOV=''
LD='/usr/bin/ld -m elf_x86_64'
LDFLAGS=''
LIBARCHIVE_CFLAGS=''
LIBARCHIVE_LIBS=''
LIBDL=''
LIBFLUX_CORE_VERSION_INFO='2:0:0'
LIBFLUX_HOSTLIST_VERSION_INFO='1:0:0'
LIBFLUX_IDSET_VERSION_INFO='1:0:0'
LIBFLUX_OPTPARSE_VERSION_INFO='1:0:0'
LIBFLUX_SCHEDUTIL_VERSION_INFO='1:0:0'
LIBFLUX_TASKMAP_VERSION_INFO='1:0:0'
LIBOBJS=''
LIBPTHREAD=''
LIBRT=''
LIBS3=''
LIBS=''
LIBSYSTEMD_CFLAGS=''
LIBSYSTEMD_LIBS=''
LIBTOOL=''
LIBUUID_CFLAGS=''
LIBUUID_LIBS=''
LIPO=''
LN_S='ln -s'
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
LUA=''
LUA_EXEC_PREFIX=''
LUA_INCLUDE=''
LUA_LIB=''
LUA_PLATFORM=''
LUA_PREFIX=''
LUA_SHORT_VERSION=''
LUA_VERSION=''
LZ4_CFLAGS=''
LZ4_LIBS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /root/Flux/flux-core/config/missing makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='/usr/bin/mkdir -p'
MPICC=''
MPI_CFLAGS=''
MPI_CLDFLAGS=''
NM='/usr/bin/nm -B'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='flux-core'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='flux-core'
PACKAGE_STRING='flux-core 0.59.0-131-g01a63f291'
PACKAGE_TARNAME='flux-core'
PACKAGE_URL=''
PACKAGE_VERSION='0.59.0-131-g01a63f291'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
PYLINT=''
PYTHON=''
PYTHON_CPPFLAGS=''
PYTHON_EXEC_PREFIX=''
PYTHON_EXTRA_LDFLAGS=''
PYTHON_EXTRA_LIBS=''
PYTHON_LIBRARY=''
PYTHON_LIBS=''
PYTHON_PLATFORM=''
PYTHON_PLATFORM_SITE_PKG=''
PYTHON_PREFIX=''
PYTHON_SITE_PKG=''
PYTHON_VERSION=''
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
SQLITE_CFLAGS=''
SQLITE_LIBS=''
SSH='/usr/bin/rsh'
STRIP='strip'
VALGRIND_CFLAGS=''
VALGRIND_LIBS=''
VERSION='0.59.0-131-g01a63f291'
WARNING_CFLAGS='-Wall -Werror -Wno-strict-aliasing -Wno-error=deprecated-declarations -Werror=missing-field-initializers'
WITH_PKG_CONFIG_FALSE=''
WITH_PKG_CONFIG_TRUE=''
X_BINDIR='/usr/local/bin'
X_DATADIR='/usr/local/share'
X_EXEC_PREFIX='/usr/local'
X_INCLUDEDIR='/usr/local/include'
X_INFODIR='/usr/local/share/info'
X_LIBDIR='/usr/local/lib'
X_LIBEXECDIR='/usr/local/libexec'
X_LOCALSTATEDIR='/usr/local/var'
X_MANDIR='/usr/local/share/man'
X_OLDINCLUDEDIR='/usr/include'
X_PREFIX='/usr/local'
X_RUNSTATEDIR='/run'
X_SBINDIR='/usr/local/sbin'
X_SHAREDSTATEDIR='/usr/local/com'
X_SYSCONFDIR='/usr/local/etc'
ZMQ_CFLAGS=''
ZMQ_LIBS=''
ac_ct_AR='ar'
ac_ct_CC='clang'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='tar --format=posix -chf - "$$tardir"'
am__untar='tar -xf -'
bashcompdir=''
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='NONE'
fluxbindingincludedir=''
fluxbindir=''
fluxcmddir=''
fluxconfdir=''
fluxconnectordir=''
fluxcoreincludedir=''
fluxincludedir=''
fluxlib_ldflags=''
fluxlibdir=''
fluxlibexecdir=''
fluxluadir=''
fluxmod_ldflags=''
fluxmoddir=''
fluxplugin_ldflags=''
fluxpydir=''
fluxpylinkdir=''
fluxpysodir=''
fluxschedutilincludedir=''
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'
install_sh='${SHELL} /root/Flux/flux-core/config/install-sh'
jobtap_plugindir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
luadir=''
luaexecdir=''
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
pkgluadir=''
pkgluaexecdir=''
pkgpyexecdir=''
pkgpythondir=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir=''
pythondir=''
runstatedir='/run'
san_ld_zdef_flag='-Wl,--no-undefined'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
shell_plugindir=''
sysconfdir='${prefix}/etc'
systemdsystemunitdir=''
target='x86_64-pc-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='pc'

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

/* confdefs.h */
#define PACKAGE_NAME "flux-core"
#define PACKAGE_TARNAME "flux-core"
#define PACKAGE_VERSION "0.59.0-131-g01a63f291"
#define PACKAGE_STRING "flux-core 0.59.0-131-g01a63f291"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define X_PREFIX "/usr/local"
#define X_EXEC_PREFIX "/usr/local"
#define X_BINDIR "/usr/local/bin"
#define X_SBINDIR "/usr/local/sbin"
#define X_LIBEXECDIR "/usr/local/libexec"
#define X_DATADIR "/usr/local/share"
#define X_SYSCONFDIR "/usr/local/etc"
#define X_SHAREDSTATEDIR "/usr/local/com"
#define X_LOCALSTATEDIR "/usr/local/var"
#define X_RUNSTATEDIR "/run"
#define X_LIBDIR "/usr/local/lib"
#define X_INCLUDEDIR "/usr/local/include"
#define X_OLDINCLUDEDIR "/usr/include"
#define X_INFODIR "/usr/local/share/info"
#define X_MANDIR "/usr/local/share/man"
#define PACKAGE "flux-core"
#define VERSION "0.59.0-131-g01a63f291"
#define _GNU_SOURCE 1
#define FLUX_DEEPBIND RTLD_DEEPBIND
#define PATH_SSH "/usr/bin/rsh"

configure: exit 1
mattf4171 commented 7 months ago

Apologies, I did not mean to close this issue.

grondo commented 7 months ago

You do not seem to have the specified C preprocessor clang-cpp in your PATH:

configure:10007: clang-cpp  conftest.c
./configure: line 2138: clang-cpp: command not found

Do you have clang installed?

mattf4171 commented 7 months ago

You do not seem to have the specified C preprocessor clang-cpp in your PATH:

configure:10007: clang-cpp  conftest.c
./configure: line 2138: clang-cpp: command not found

Do you have clang installed?

@grondo Indeed I do have clang installed

clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
grondo commented 7 months ago

What does command -v clang-cpp return? configure is not finding it at runtime.

mattf4171 commented 7 months ago

What does command -v clang-cpp return? configure is not finding it at runtime.

@grondo It returns nothing meaning clang-cpp is not installed. This is very odd.

What version of clang and clang-cpp is expected to be installed?

grondo commented 7 months ago

What version of clang and clang-cpp is expected to be installed?

Most recent versions should work. On Ubuntu 22.04 I see the following packages provide clang-cpp:

libclang-cpp13 - C++ interface to the Clang library
libclang-cpp-dev - C++ interface to the clang library
libclang-cpp11 - C++ interface to the Clang library
libclang-cpp11-dev - C++ interface to the Clang library
libclang-cpp12 - C++ interface to the Clang library
libclang-cpp12-dev - C++ interface to the Clang library
libclang-cpp13-dev - C++ interface to the Clang library
libclang-cpp14 - C++ interface to the Clang library
libclang-cpp14-dev - C++ interface to the Clang library
libclang-cpp15 - C++ interface to the Clang library
libclang-cpp15-dev - C++ interface to the Clang library

So perhaps try sudo apt install libclang-cpp15. Although it looks like the clang-15 package does require that:

Package: clang-15
Version: 1:15.0.7-0ubuntu0.22.04.3
Priority: optional
Section: devel
Source: llvm-toolchain-15
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 386 kB
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp15 (>= 1:15.0.7), libgcc-s1 (>= 3.0), libllvm15, libstdc++6 (>= 11), libstdc++-11-dev, libgcc-11-dev, libobjc-11-dev, libclang-common-15-dev (= 1:15.0.7-0ubuntu0.22.04.3), llvm-15-linker-tools (= 1:15.0.7-0ubuntu0.22.04.3), libclang1-15 (= 1:15.0.7-0ubuntu0.22.04.3), libc6-dev, binutils
Recommends: llvm-15-dev, python3

I wonder if something went wrong when you installed clang?

If that fails you could also try building with GCC.

mattf4171 commented 7 months ago

What version of clang and clang-cpp is expected to be installed?

Most recent versions should work. On Ubuntu 22.04 I see the following packages provide clang-cpp:

libclang-cpp13 - C++ interface to the Clang library
libclang-cpp-dev - C++ interface to the clang library
libclang-cpp11 - C++ interface to the Clang library
libclang-cpp11-dev - C++ interface to the Clang library
libclang-cpp12 - C++ interface to the Clang library
libclang-cpp12-dev - C++ interface to the Clang library
libclang-cpp13-dev - C++ interface to the Clang library
libclang-cpp14 - C++ interface to the Clang library
libclang-cpp14-dev - C++ interface to the Clang library
libclang-cpp15 - C++ interface to the Clang library
libclang-cpp15-dev - C++ interface to the Clang library

So perhaps try sudo apt install libclang-cpp15. Although it looks like the clang-15 package does require that:

Package: clang-15
Version: 1:15.0.7-0ubuntu0.22.04.3
Priority: optional
Section: devel
Source: llvm-toolchain-15
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: LLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 386 kB
Provides: c++-compiler, c-compiler, objc-compiler
Depends: libc6 (>= 2.34), libclang-cpp15 (>= 1:15.0.7), libgcc-s1 (>= 3.0), libllvm15, libstdc++6 (>= 11), libstdc++-11-dev, libgcc-11-dev, libobjc-11-dev, libclang-common-15-dev (= 1:15.0.7-0ubuntu0.22.04.3), llvm-15-linker-tools (= 1:15.0.7-0ubuntu0.22.04.3), libclang1-15 (= 1:15.0.7-0ubuntu0.22.04.3), libc6-dev, binutils
Recommends: llvm-15-dev, python3

I wonder if something went wrong when you installed clang?

If that fails you could also try building with GCC.

@grondo Thank you for the assistance. I found that with the most recent version clang-cpp is installed as clang++. To fix this issue I created a symbolic link from clang++ to clang-cpp.

Many thanks Mark Grondona, I've successfully built flux-core.