Skip to content

make not working on Mac Monterey #832

@scfleming

Description

@scfleming

Describe the bug
I downloaded pa_stable_v190700_20210406.tgz and untarred the file. I then ran ./configure and got the following summary:

Configuration summary:
Target ...................... arm-apple-darwin21.6.0
C++ bindings ................ no
Debug output ................ no
Mac debug flags ............. no

I then ran make clean and then make and get the following errors:

/bin/sh ./libtool --mode=compile gcc -c -std=c99 -O2 -Wall -pedantic -pipe -fPIC -DNDEBUG -DPA_LITTLE_ENDIAN -I./include -I./src/common -I./src/os/unix -Wno-deprecated -Werror -arch x86_64 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.6 -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_CLOCK_GETTIME=1 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_converters.c -o src/common/pa_converters.lo
libtool: compile: gcc -c -std=c99 -O2 -Wall -pedantic -pipe -fPIC -DNDEBUG -DPA_LITTLE_ENDIAN -I./include -I./src/common -I./src/os/unix -Wno-deprecated -Werror -arch x86_64 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.6 -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION="" -DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=8 -DHAVE_CLOCK_GETTIME=1 -DHAVE_NANOSLEEP=1 -DPA_USE_COREAUDIO=1 src/common/pa_converters.c -fno-common -DPIC -o src/common/.libs/pa_converters.o
src/common/pa_converters.c:1058:14: error: variable 'src' set but not used [-Werror,-Wunused-but-set-variable]
PaInt32 src = (PaInt32)sourceBuffer;
^
src/common/pa_converters.c:1059:20: error: variable 'dest' set but not used [-Werror,-Wunused-but-set-variable]
unsigned char dest = (unsigned char)destinationBuffer;
^
src/common/pa_converters.c:1420:18: error: variable 'dest' set but not used [-Werror,-Wunused-but-set-variable]
signed char dest = (signed char)destinationBuffer;
^
src/common/pa_converters.c:1419:14: error: variable 'src' set but not used [-Werror,-Wunused-but-set-variable]
PaInt16 src = (PaInt16)sourceBuffer;
^
src/common/pa_converters.c:1460:20: error: variable 'dest' set but not used [-Werror,-Wunused-but-set-variable]
unsigned char dest = (unsigned char)destinationBuffer;
^
src/common/pa_converters.c:1459:14: error: variable 'src' set but not used [-Werror,-Wunused-but-set-variable]
PaInt16 src = (PaInt16)sourceBuffer;
^
6 errors generated.
make: *** [src/common/pa_converters.lo] Error 1

To Reproduce
Steps to reproduce the behavior. Include code if applicable.

  1. Download the latest, stable .tar.gz build file.
  2. Run ./configure and then try to make

Expected behavior
Expect to install without errors.

Actual behavior
Installation fails.

Desktop (please complete the following information):

  • OS: Mac OS
  • OS 12.6.5
  • PortAudio version: stable, nightly snapshot (which?), current (please give date and/or Git hash): v190700_20210406

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions