Opened 3 years ago

Closed 3 years ago

#63493 closed defect (invalid)

encfs @1.9.5: clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

Reported by: astir13 (Stefan Pielmeier) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: bigsur Cc:
Port: encfs

Description

I encountered a failing encfs build on big sur (other ports like e.g. xclock nicely build and install):

sudo port install encfs

--->  Fetching archive for libidn2
--->  Attempting to fetch libidn2-2.3.2_0.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/libidn2
--->  Attempting to fetch libidn2-2.3.2_0.darwin_20.x86_64.tbz2.rmd160 from https://cph.dk.packages.macports.org/libidn2
--->  Installing libidn2 @2.3.2_0
--->  Activating libidn2 @2.3.2_0
--->  Cleaning libidn2
--->  Fetching archive for libpsl
--->  Attempting to fetch libpsl-0.21.1-20210726_2.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/libpsl
--->  Attempting to fetch libpsl-0.21.1-20210726_2.darwin_20.x86_64.tbz2.rmd160 from https://cph.dk.packages.macports.org/libpsl
--->  Installing libpsl @0.21.1-20210726_2
--->  Activating libpsl @0.21.1-20210726_2
--->  Cleaning libpsl
--->  Fetching archive for curl
--->  Attempting to fetch curl-7.78.0_0+ssl.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/curl
--->  Attempting to fetch curl-7.78.0_0+ssl.darwin_20.x86_64.tbz2.rmd160 from https://cph.dk.packages.macports.org/curl
--->  Installing curl @7.78.0_0+ssl
--->  Activating curl @7.78.0_0+ssl
--->  Cleaning curl
--->  Fetching archive for cmake
--->  Attempting to fetch cmake-3.21.2_0.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/cmake
--->  Attempting to fetch cmake-3.21.2_0.darwin_20.x86_64.tbz2.rmd160 from https://cph.dk.packages.macports.org/cmake
--->  Installing cmake @3.21.2_0
--->  Activating cmake @3.21.2_0
--->  Cleaning cmake
--->  Fetching archive for encfs
--->  Attempting to fetch encfs-1.9.5_1.darwin_20.x86_64.tbz2 from https://cph.dk.packages.macports.org/encfs
--->  Attempting to fetch encfs-1.9.5_1.darwin_20.x86_64.tbz2 from https://packages.macports.org/encfs
--->  Attempting to fetch encfs-1.9.5_1.darwin_20.x86_64.tbz2 from https://fra.de.packages.macports.org/encfs
--->  Fetching distfiles for encfs
--->  Verifying checksums for encfs
--->  Extracting encfs
--->  Configuring encfs
Error: Failed to configure encfs: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_encfs/encfs/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure encfs: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_encfs/encfs/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port encfs failed
--->  Some of the ports you installed have notes:
  libpsl has the following notes:
    libpsl API documentation is provided by the port 'libpsl-docs'.

checking the logs provides:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/clang 
Build flags: -pipe;-Os;-I/opt/local/include/fuse;-DNDEBUG;-I/opt/local/include;-I/opt/local/include/fuse;-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Id flags:  

The output was:
1
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

A workaround I found:

  • go into the build directory: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_encfs/encfs/work/build
  • and run command cmake
  • then make
  • then make install
  • worked for me, I have a working encfs now ;-)

Change History (1)

comment:1 in reply to:  description Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: bigsur added
Port: encfs added
Resolution: invalid
Status: newclosed
Summary: encfs not compiling on Big Surencfs @1.9.5: clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

Replying to astir13:

clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'

This means your command line tools are out of date (are for a version of macOS older than macOS 11). There is a bug in macOS that does not update the command line tools automatically so please update them manually. See ProblemHotlist#reinstall-clt.

A workaround I found:

  • go into the build directory: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_fuse_encfs/encfs/work/build
  • and run command cmake
  • then make
  • then make install
  • worked for me, I have a working encfs now ;-)

When you did this, cmake and make and make install did not run with the arguments and environment variables that MacPorts would have set, so what you have now installed is probably different than what would have been installed by MacPorts, so we cannot support such an installation.

Note: See TracTickets for help on using tickets.