From abaca6 at sandia.gov Tue Aug 16 18:54:39 2022 From: abaca6 at sandia.gov (Baca, Antony M) Date: Tue Aug 16 18:49:44 2022 Subject: [xsde-users] macOS x86_64 build help Message-ID: I'm trying to get xsde installed on my macbook since there is only an i686 package for download. Does anyone have any reliable steps to follow? What I did is below. ---- system macOS Monterey 12.5 Darwin Kernel Version 21.6.0 x86_64 bash 3.2.57 make 3.81 g++ Apple clang 13.1.6 ---- xerces-c ls -la /usr/local/lib/ | grep -e "xerces" libxerces-c-3.2.dylib -> ../Cellar/xerces-c/3.2.3/lib/libxerces-c-3.2.dylib libxerces-c.a libxerces-c.dylib -> ../Cellar/xerces-c/3.2.3/lib/libxerces-c.dylib libxerces-c.la ---- xsde make -w make[1]: Entering directory `/Users/me/source/xsde-3.3.0.a12+dep' c++ /Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx In file included from /Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:4: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:437: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__debug:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37: /Users/me/source/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ In file included from /Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:4: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:438: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/is_transparent.h:14: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:421: /Users/me/source/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 . . . In file included from /Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:5: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/map:505: /Users/me/source/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ In file included from /Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:6: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:292: /Users/me/source/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [/Users/me/source/xsde-3.3.0.a12+dep/xsde/xsde/xsde.o] Error 1 make[1]: Leaving directory `/Users/me/source/xsde-3.3.0.a12+dep' From boris at codesynthesis.com Wed Aug 17 07:55:14 2022 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed Aug 17 07:50:09 2022 Subject: [xsde-users] macOS x86_64 build help In-Reply-To: References: Message-ID: Baca, Antony M writes: > ---- xsde > > make -w Can you try this command: make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" Taken from this thread: https://codesynthesis.com/pipermail/xsde-users/2020-February/thread.html From abaca6 at sandia.gov Wed Aug 17 19:31:00 2022 From: abaca6 at sandia.gov (Baca, Antony M) Date: Wed Aug 17 19:26:10 2022 Subject: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help In-Reply-To: References: Message-ID: Hmm... Still not working. Any other thoughts? Here's what I've done: # xerces-c tar -xf xerces-c-3.2.3.tar.bz2 cd xerces-c-3.2.3 ./configure --disable-threads --disable-network --disable-shared CXXFLAGS=-O2 CFLAGS=-O2 cd src make -j 8 # xsde tar -xf xsde-3.3.0.a12+dep.tar.bz2 cd xsde-3.3.0.a12+dep make CXX="clang++ -std=c++03" CPPFLAGS=-I../xerces-c-3.2.3/src LDFLAGS=-L../xerces-c-3.2.3/src/.libs LIBS="-framework CoreServices" make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" Here's my output: abaca6$ make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" c++ /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx In file included from /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:4: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:437: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__debug:21: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37: /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ ... ^ In file included from /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:6: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:292: /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id 2.0.0 ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. -----Original Message----- From: Boris Kolpackov Sent: Wednesday, August 17, 2022 5:55 AM To: Baca, Antony M Cc: xsde-users@codesynthesis.com Subject: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help Baca, Antony M writes: > ---- xsde > > make -w Can you try this command: make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" Taken from this thread: https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcodesynthesis.com%2Fpipermail%2Fxsde-users%2F2020-February%2Fthread.html&data=05%7C01%7Cabaca6%40sandia.gov%7Ca1067ba8c8a04dc9507d08da80475faa%7C7ccb5a20a303498cb0c129007381b574%7C1%7C0%7C637963341550900465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HMtfsuZ2fl5qvfbXWLZib%2FA5glzvCgWwGDMr2Siki1E%3D&reserved=0 From boris at codesynthesis.com Thu Aug 18 01:57:11 2022 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Aug 18 01:52:05 2022 Subject: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help In-Reply-To: References: Message-ID: Baca, Antony M writes: > abaca6$ make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" > c++ /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx > In file included from /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:4: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:437: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__debug:21: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37: > /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: expected unqualified-id Looks like the cstddef header now includes that gets resolved as /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version, which is just a text file that contains the version. Can you try to remove libxsd-frontend/version (or rename it to version.txt) and see if that helps? From abaca6 at sandia.gov Thu Aug 18 11:40:46 2022 From: abaca6 at sandia.gov (Baca, Antony M) Date: Thu Aug 18 11:35:40 2022 Subject: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help In-Reply-To: References: Message-ID: Thanks. I definitely made some progress with the following: mv libxsd-frontend/version libxsd-frontend/version.txt mv libcutl/version libcutl/version.txt But it's still having trouble building. Not sure what I'm missing here. Any thoughts on this error? /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:24: error: redefinition of 'hash_value' as different kind of symbol inline std::size_t hash_value(std::tuple<> const& v) ^ /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:131:17: note: previous definition is here std::size_t hash_value(std::array const& v) ^ /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:40: error: no member named 'tuple' in namespace 'std' inline std::size_t hash_value(std::tuple<> const& v) ~~~~~^ /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:46: error: expected expression inline std::size_t hash_value(std::tuple<> const& v) ^ /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:48: error: expected expression inline std::size_t hash_value(std::tuple<> const& v) ^ /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:57: error: expected ';' after top level declarator inline std::size_t hash_value(std::tuple<> const& v) ^ ; 1 warning and 5 errors generated. make: *** [/Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/re/re.o] Error 1 -----Original Message----- From: Boris Kolpackov Sent: Wednesday, August 17, 2022 11:57 PM To: Baca, Antony M Cc: xsde-users@codesynthesis.com Subject: Re: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help Baca, Antony M writes: > abaca6$ make CXX="clang++ -std=c++03" LIBS="-framework CoreServices" > c++ /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx > In file included from /Users/abaca6/xsde-3.3.0.a12+dep/xsde/xsde/xsde.cxx:4: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/set:437: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__debug:21: > In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:37: > /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version:1:1: error: > expected unqualified-id Looks like the cstddef header now includes that gets resolved as /Users/abaca6/xsde-3.3.0.a12+dep/libxsd-frontend/version, which is just a text file that contains the version. Can you try to remove libxsd-frontend/version (or rename it to version.txt) and see if that helps? From boris at codesynthesis.com Fri Aug 19 02:40:00 2022 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Aug 19 02:34:55 2022 Subject: [EXTERNAL] Re: [xsde-users] macOS x86_64 build help In-Reply-To: References: Message-ID: Baca, Antony M writes: > /Users/abaca6/xsde-3.3.0.a12+dep/libcutl/cutl/details/boost/functional/hash/extensions.hpp:172:40: error: no member named 'tuple' in namespace 'std' Turned out Boost was trying to include C++11 in C++03 mode for some reason. I've fixed this (and the version rename) and published 3.3.0.a13: https://codesynthesis.com/~boris/tmp/xsde/xsde-3.3.0.a13+dep.tar.bz2 It now builds fine for me with the same version of Apple Clang but on M1. With this version you also get Expat security fixes as a bonus for your troubles.