Cannot build libb2

Dave Horsfall dave at horsfall.org
Wed Dec 8 22:42:22 UTC 2021


MacBook Pro (13-inch, Mid 2010), macOS High Sierra 10.13.6.

I finally got around to installing Xcode 10.1 and matching CLT, then 
started to rebuild MacPorts, dutifully following the instructions in the 
Migration Guide.

It karked it when building "libb2" (config.log attached); here's the 
interesting bit:

    configure:4721: checking whether byte ordering is bigendian
    configure:4737: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local
    /include conftest.c >&5
    configure:4737: $? = 0
    configure:4936: result: universal
    configure:4947: error: universal endianness not supported

I don't where it got "+universal" from; *I* certainly didn't ask for it...

I couldn't find any references when poking around; anyone else seen this
before I report it as a bug?

Thanks.

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

It was created by libb2 configure 0.98.1, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure --prefix=/opt/local --disable-dependency-tracking --enable-native=no --disable-openmp

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

hostname = mackie.kfu
uname -m = x86_64
uname -r = 17.7.0
uname -s = Darwin
uname -v = Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 8.00 gigabytes
Default processor set: 414 tasks, 1868 threads, 2 processors
Load average: 4.07, Mach factor: 0.44
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/local/bin/
PATH: /opt/local/sbin/
PATH: /bin/
PATH: /sbin/
PATH: /usr/bin/
PATH: /usr/sbin/


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

configure:2532: looking for aux files: config.guess config.sub ltmain.sh compile missing install-sh
configure:2545:  trying ./
configure:2574:   ./config.guess found
configure:2574:   ./config.sub found
configure:2574:   ./ltmain.sh found
configure:2574:   ./compile found
configure:2574:   ./missing found
configure:2556:   ./install-sh found
configure:2706: checking for a BSD-compatible install
configure:2779: result: /usr/bin/install -c
configure:2790: checking whether build environment is sane
configure:2845: result: yes
configure:3004: checking for a race-free mkdir -p
configure:3048: result: ./install-sh -c -d
configure:3055: checking for gawk
configure:3090: result: no
configure:3055: checking for mawk
configure:3090: result: no
configure:3055: checking for nawk
configure:3090: result: no
configure:3055: checking for awk
configure:3076: found /usr/bin/awk
configure:3087: result: awk
configure:3098: checking whether make sets $(MAKE)
configure:3121: result: yes
configure:3151: checking whether make supports nested variables
configure:3169: result: yes
configure:3378: checking for gcc
configure:3410: result: /usr/bin/clang
configure:3763: checking for C compiler version
configure:3772: /usr/bin/clang --version >&5
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3783: $? = 0
configure:3772: /usr/bin/clang -v >&5
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
configure:3783: $? = 0
configure:3772: /usr/bin/clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3783: $? = 1
configure:3772: /usr/bin/clang -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3783: $? = 1
configure:3772: /usr/bin/clang -version >&5
clang: error: unknown argument: '-version'
clang: error: no input files
configure:3783: $? = 1
configure:3803: checking whether the C compiler works
configure:3825: /usr/bin/clang -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
configure:3829: $? = 0
configure:3879: result: yes
configure:3882: checking for C compiler default output file name
configure:3884: result: a.out
configure:3890: checking for suffix of executables
configure:3897: /usr/bin/clang -o conftest -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
configure:3901: $? = 0
configure:3924: result: 
configure:3946: checking whether we are cross compiling
configure:3954: /usr/bin/clang -o conftest -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
configure:3958: $? = 0
configure:3965: ./conftest
configure:3969: $? = 0
configure:3984: result: no
configure:3989: checking for suffix of object files
configure:4012: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4016: $? = 0
configure:4038: result: o
configure:4042: checking whether the compiler supports GNU C
configure:4062: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4062: $? = 0
configure:4072: result: yes
configure:4083: checking whether /usr/bin/clang accepts -g
configure:4104: /usr/bin/clang -c -g -I/opt/local/include conftest.c >&5
configure:4104: $? = 0
configure:4148: result: yes
configure:4168: checking for /usr/bin/clang option to enable C11 features
configure:4183: /usr/bin/clang  -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4183: $? = 0
configure:4201: result: none needed
configure:4317: checking whether /usr/bin/clang understands -c and -o together
configure:4340: /usr/bin/clang -c conftest.c -o conftest2.o
configure:4343: $? = 0
configure:4340: /usr/bin/clang -c conftest.c -o conftest2.o
configure:4343: $? = 0
configure:4355: result: yes
configure:4375: checking whether make supports the include directive
configure:4390: make -f confmf.GNU && cat confinc.out
this is the am__doit target
configure:4393: $? = 0
configure:4412: result: yes (GNU style)
configure:4438: checking dependency style of /usr/bin/clang
configure:4550: result: none
configure:4568: checking for explicit_bzero
configure:4568: /usr/bin/clang -o conftest -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
Undefined symbols for architecture x86_64:
  "_explicit_bzero", referenced from:
      _main in conftest-ec5ab5.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4568: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libb2"
| #define PACKAGE_TARNAME "libb2"
| #define PACKAGE_VERSION "0.98.1"
| #define PACKAGE_STRING "libb2 0.98.1"
| #define PACKAGE_BUGREPORT "contact at blake2.net"
| #define PACKAGE_URL "https://blake2.net"
| #define PACKAGE "libb2"
| #define VERSION "0.98.1"
| /* end confdefs.h.  */
| /* Define explicit_bzero to an innocuous variant, in case <limits.h> declares explicit_bzero.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define explicit_bzero innocuous_explicit_bzero
| 
| /* System header to define __stub macros and hopefully few prototypes,
|    which can conflict with char explicit_bzero (); below.  */
| 
| #include <limits.h>
| #undef explicit_bzero
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char explicit_bzero ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_explicit_bzero || defined __stub___explicit_bzero
| choke me
| #endif
| 
| int
| main (void)
| {
| return explicit_bzero ();
|   ;
|   return 0;
| }
configure:4568: result: no
configure:4575: checking for explicit_memset
configure:4575: /usr/bin/clang -o conftest -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
Undefined symbols for architecture x86_64:
  "_explicit_memset", referenced from:
      _main in conftest-1c8a64.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4575: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libb2"
| #define PACKAGE_TARNAME "libb2"
| #define PACKAGE_VERSION "0.98.1"
| #define PACKAGE_STRING "libb2 0.98.1"
| #define PACKAGE_BUGREPORT "contact at blake2.net"
| #define PACKAGE_URL "https://blake2.net"
| #define PACKAGE "libb2"
| #define VERSION "0.98.1"
| /* end confdefs.h.  */
| /* Define explicit_memset to an innocuous variant, in case <limits.h> declares explicit_memset.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define explicit_memset innocuous_explicit_memset
| 
| /* System header to define __stub macros and hopefully few prototypes,
|    which can conflict with char explicit_memset (); below.  */
| 
| #include <limits.h>
| #undef explicit_memset
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char explicit_memset ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_explicit_memset || defined __stub___explicit_memset
| choke me
| #endif
| 
| int
| main (void)
| {
| return explicit_memset ();
|   ;
|   return 0;
| }
configure:4575: result: no
configure:4582: checking for memset_s
configure:4582: /usr/bin/clang -o conftest -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c  >&5
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
configure:4582: $? = 0
configure:4582: result: yes
configure:4593: checking for stdio.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for stdlib.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for string.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for inttypes.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for stdint.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for strings.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for sys/stat.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for sys/types.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4593: checking for unistd.h
configure:4593: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4593: $? = 0
configure:4593: result: yes
configure:4618: checking for stddef.h
configure:4618: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4618: $? = 0
configure:4618: result: yes
configure:4624: checking for stdint.h
configure:4624: result: yes
configure:4630: checking for stdlib.h
configure:4630: result: yes
configure:4636: checking for string.h
configure:4636: result: yes
configure:4721: checking whether byte ordering is bigendian
configure:4737: /usr/bin/clang -c -pipe -O3 -arch x86_64 -arch i386 -I/opt/local/include conftest.c >&5
configure:4737: $? = 0
configure:4936: result: universal
configure:4947: error: universal endianness not supported

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

ac_cv_c_bigendian=universal
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/clang
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-pipe -O3 -arch x86_64 -arch i386'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/opt/local/include
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386'
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_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_func_explicit_bzero=no
ac_cv_func_explicit_memset=no
ac_cv_func_memset_s=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_stddef_h=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_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_objext=o
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=/usr/bin/clang
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes

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

ACLOCAL='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/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=''
AUTOCONF='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/missing'\'' autoconf'
AUTOHEADER='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/missing'\'' autoheader'
AUTOMAKE='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/missing'\'' automake-1.16'
AWK='awk'
B2_LIBRARY_VERSION='1:4:0'
CC='/usr/bin/clang'
CCDEPMODE='depmode=none'
CFLAGS='-pipe -O3 -arch x86_64 -arch i386'
CPPFLAGS='-I/opt/local/include'
CSCOPE='cscope'
CTAGS='ctags'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ETAGS='etags'
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} '\''/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/missing'\'' makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT='o'
OPENMP_CFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libb2'
PACKAGE_BUGREPORT='contact at blake2.net'
PACKAGE_NAME='libb2'
PACKAGE_STRING='libb2 0.98.1'
PACKAGE_TARNAME='libb2'
PACKAGE_URL='https://blake2.net'
PACKAGE_VERSION='0.98.1'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
SIMD_FLAGS=''
STRIP=''
USE_FAT_FALSE=''
USE_FAT_TRUE=''
USE_SSE_FALSE=''
USE_SSE_TRUE=''
VERSION='0.98.1'
ac_ct_AR=''
ac_ct_CC='/usr/bin/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=''
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} /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libb2/libb2/work/libb2-0.98.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgconfigdir=''
prefix='/opt/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 "libb2"
#define PACKAGE_TARNAME "libb2"
#define PACKAGE_VERSION "0.98.1"
#define PACKAGE_STRING "libb2 0.98.1"
#define PACKAGE_BUGREPORT "contact at blake2.net"
#define PACKAGE_URL "https://blake2.net"
#define PACKAGE "libb2"
#define VERSION "0.98.1"
#define HAVE_MEMSET_S 1
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1
#define HAVE_STDDEF_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1

configure: exit 1


More information about the macports-users mailing list