Trilinos 12.12 -- install cygwin, windows 10

133 views
Skip to first unread message

J Jacob Wikner

unread,
Apr 20, 2021, 1:02:47 PM4/20/21
to xyce-users
Hello,

what error do we do if we get the:

"error: ‘gethostname’ was not declared in this scope"

in the Teuchos_XMLPerfTestArchive.cpp ?

Windows 10, Xyce 7.2

xyce-users

unread,
Apr 20, 2021, 2:27:41 PM4/20/21
to xyce-users
You should add "-D_BSD_SOURCE -D_GNU_SOURCE" to your CMAKE_CXX_FLAGS when building Trilinos, and to CXXFLAGS when building Xyce.

We have already updated the building guide to include this requirement in the upcoming release version of the building guide, but that's not published yet.

xyce-users

unread,
Apr 20, 2021, 2:28:55 PM4/20/21
to xyce-users
I should also say that the "-D_BSD_SOURCE -D_GNU_SOURCE" is *only* needed for Cygwin.

J Jacob Wikner

unread,
Apr 20, 2021, 3:27:38 PM4/20/21
to xyce-users

Thanks!

Noticed that bootstrap does not work for the Xyce compilation and that the INSTALL file does not reflect that. Perhaps something for the building guide in next release too.

//

--
You received this message because you are subscribed to a topic in the Google Groups "xyce-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xyce-users/MDZWk2MCzt4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xyce-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xyce-users/ce953bd2-9c9f-4a44-a15a-dbca98fded24n%40googlegroups.com.

xyce-users

unread,
Apr 20, 2021, 3:29:44 PM4/20/21
to xyce-users

"bootstrap does not work for the Xyce compilation"

Could you explain that statement?  Since it's done for every single Xyce build during testing and development, we'll need a little more context to explain why it might not be working for you.

xyce-users

unread,
Apr 20, 2021, 3:33:25 PM4/20/21
to xyce-users
Also, as the INSTALL document says at the top, the definitive documentation for building Xyce is NOT in the INSTALL file, which is a generic product of the autoconf system.  The definitive documentation for building Xyce is our building guide at https://xyce.sandia.gov/documentation/BuildingGuide.html
Reply all
Reply to author
Forward
0 new messages