Created attachment 203210 [details] patch Add -Wno-error=narrowing to CXXFLAGS when using GCC to work around error. Remove -march=native from cmake files. Include sys/syslimits.h in src/chrono_thirdparty/filesystem/path.h, GCC doesn't include that by default. In src/chrono/core/ChMatrix.h, include immintrin.h only if SSE or AVX is present. Tested on powerpc64 and amd64.
(In reply to Piotr Kubaj from comment #0) "In src/chrono/core/ChMatrix.h, include immintrin.h only if SSE or AVX is present." This is already upstream. "Include sys/syslimits.h in src/chrono_thirdparty/filesystem/path.h, GCC doesn't include that by default." PR at https://github.com/projectchrono/chrono/pull/146
Committed, thanks!
A commit references this bug: Author: yuri Date: Wed Apr 24 22:11:06 UTC 2019 New revision: 499916 URL: https://svnweb.freebsd.org/changeset/ports/499916 Log: science/chrono: fix build with GCC-based architectures PR: 236847 Submitted by: pkubaj Changes: head/science/chrono/Makefile