Opened 6 months ago

Last modified 6 months ago

#69957 new defect

vcvrack is broken due to using broken bundled libs instead of MacPorts-provided ones

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: powerpc, arm64 Cc: herbygillot (Herby Gillot)
Port: vcvrack

Description

Bundles glew uses insane flag for optimization which breaks the build:

sha256check() { echo "$2  $1" | shasum -a 256 -c; }; sha256check glew-2.1.0.tgz 04de91e7e6763039bc11940095cd9c7f880baba82196a7765f727ac05a993c95
glew-2.1.0.tgz: OK
tar xf glew-2.1.0.tgz
rm glew-2.1.0.tgz
cd glew-2.1.0 && mkdir -p build
cd glew-2.1.0/build && cmake -DCMAKE_INSTALL_PREFIX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep" -DCMAKE_INSTALL_LIBDIR=lib ./cmake
CMake Warning (dev) at CMakeLists.txt:5 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /opt/local/bin/gcc-mp-13
-- Check for working C compiler: /opt/local/bin/gcc-mp-13 - broken
CMake Error at /opt/local/share/cmake-3.29/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/opt/local/bin/gcc-mp-13"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV'
    
    Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1 /opt/local/bin/gmake -f Makefile cmTC_61792/fast
    gmake[2]: Entering directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV'
    /opt/local/bin/gmake  -f CMakeFiles/cmTC_61792.dir/build.make CMakeFiles/cmTC_61792.dir/build
    gmake[3]: Entering directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV'
    Building C object CMakeFiles/cmTC_61792.dir/testCCompiler.c.o
    /opt/local/bin/gcc-mp-13   -g -O3 -march=nocona -mmacosx-version-min=10.7 -stdlib=libc++  -o CMakeFiles/cmTC_61792.dir/testCCompiler.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV/testCCompiler.c
    gcc-mp-13: error: unrecognized command-line option '-march=nocona'
    gmake[3]: *** [CMakeFiles/cmTC_61792.dir/build.make:78: CMakeFiles/cmTC_61792.dir/testCCompiler.c.o] Error 1
    gmake[3]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV'
    gmake[2]: *** [Makefile:127: cmTC_61792/fast] Error 2
    gmake[2]: Leaving directory '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_vcvrack/vcvrack/work/Rack-1.1.6/dep/glew-2.1.0/build/CMakeFiles/CMakeScratch/TryCompile-WNqDVV'
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:5 (project)


-- Configuring incomplete, errors occurred!
make[1]: *** [lib/libGLEW.a] Error 1

Change History (2)

comment:1 Changed 6 months ago by barracuda156

  1. S. It is also very outdated now, current version is 2.5.2.

comment:2 Changed 6 months ago by barracuda156

Notice what nonsense the bundled glew does:

 -mmacosx-version-min=10.7 -stdlib=libc++

This is on 10.6 with libstdc++, so it simply ignored MacPorts settings and forces some random values.

Note: See TracTickets for help on using tickets.