Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#57085 closed defect (fixed)

glm @0.9.9.0: build fails on 10.8 and earlier

Reported by: dbevans (David B. Evans) Owned by: mamoll (Mark Moll)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: glm

Description

Apparently a compiler issue:

[ 66%] Building CXX object glm/CMakeFiles/glm_dummy.dir/detail/glm.cpp.o
cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/build/glm && /usr/bin/clang++   -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/..  -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libstdc++ -mmacosx-version-min=10.8   -Werror -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-c++11-long-long -Wno-padded -Wno-gnu-anonymous-struct -Wno-nested-anon-types -Wno-undefined-reinterpret-cast -Wno-sign-conversion -Wno-unused-variable -Wno-missing-prototypes -Wno-unreachable-code -Wno-missing-variable-declarations -Wno-sign-compare -Wno-global-constructors -Wno-unused-macros -Wno-format-nonliteral -o CMakeFiles/glm_dummy.dir/detail/glm.cpp.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/detail/glm.cpp
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/detail/glm.cpp:5:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/glm.hpp:90:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/detail/setup.hpp:36:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/glm-0.9.9.0/glm/detail/../simd/platform.h:161:5: error: "GLM requires Clang 3.4 / Apple Clang 6.0 or higher"
#                       error "GLM requires Clang 3.4 / Apple Clang 6.0 or higher"
                        ^

Home page says:

GLM is written in C++98 but can take advantage of C++11 when supported by the compiler.

Possibly using the cxx11 1.1 PortGroup would solve the problem.

See build log: https://build.macports.org/builders/ports-10.8_x86_64_legacy-builder/builds/69587/steps/install-port/logs/stdio

Attachments (1)

ld-latest_2019-03-22-152716_localhost.crash (10.7 KB) - added by kencu (Ken) 6 years ago.
this is the crashlog trying to build glm against macports-libstdc++ with clang-5.0 on 10.7.5

Download all attachments as: .zip

Change History (7)

comment:1 Changed 6 years ago by kencu (Ken)

Probably. On my 10.6.8 / libc++ system that builds everything with clang-3.9, it installed without issue:

$ port -v installed glm
The following ports are currently installed:
  glm @0.9.9.0_0 (active) platform='darwin 10' archs='noarch' date='2018-07-13T16:12:25-0700'

comment:2 Changed 6 years ago by kencu (Ken)

the current version of this 0.9.9.4 crashes the linker ld64-latest when building with the cxx11 1.1 PG against macports-libstdc++ (in c++11 mode).

The non-c++11 version builds fine.

Changed 6 years ago by kencu (Ken)

this is the crashlog trying to build glm against macports-libstdc++ with clang-5.0 on 10.7.5

comment:3 Changed 6 years ago by ken-cunningham-webuse

Resolution: fixed
Status: assignedclosed

In f5c5cb94db3fd66a88b13bdf0519bfe78bdee4c5/macports-ports (master):

glm: bump to 0.9.9.4 and fix build on older systems

requires newer compilers, clang-3.4+, clang > 600.
cxx11 1.1 PG cannot fix this right now as linker segfaults
when trying to link this against macports-libstdc++

closes: #57085

comment:4 Changed 6 years ago by kencu (Ken)

Some kind of bizarre error on the 10.7.5 buildbot:

    Change Dir: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_48f3a/fast 
    /usr/bin/make -f CMakeFiles/cmTC_48f3a.dir/build.make CMakeFiles/cmTC_48f3a.dir/build
    Building CXX object CMakeFiles/cmTC_48f3a.dir/testCXXCompiler.cxx.o
    /opt/local/bin/clang++-mp-5.0    -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libstdc++    -o CMakeFiles/cmTC_48f3a.dir/testCXXCompiler.cxx.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_glm/glm/work/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    xcrun: warning: cache file '/var/folders/b3/_c47r31s23q0mgj1jvy64bkw0000gp/T/xcrun_db' appears to be corrupted (21, 2090430, 327680); resetting it
           cache: 0x10ce03000
           .magic: XR1L
           .numEntries: 21
           .strTableSize: 2090430
           .entries: {
    make[1]: *** [CMakeFiles/cmTC_48f3a.dir/testCXXCompiler.cxx.o] Segmentation fault: 11
    make: *** [cmTC_48f3a/fast] Error 2
    

but it builds just fine on 10.7.5 right here with the same compiler, and on other systems:

$ port -v installed glm
The following ports are currently installed:
  glm @0.9.9.3_0 platform='darwin 11' archs='noarch' date='2019-03-22T12:31:58-0600'
  glm @0.9.9.4_0 (active) platform='darwin 11' archs='noarch' date='2019-03-22T17:54:07-0600'
Last edited 6 years ago by kencu (Ken) (previous) (diff)

comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Fixed by rebooting that buildworker.

comment:6 Changed 6 years ago by kencu (Ken)

thanks Ryan.

Note: See TracTickets for help on using tickets.