Ticket #4247 (closed support: fixed)

Opened 6 years ago

Last modified 6 years ago

Error when building DAKOTA_stable using cygwin 1.7.17

Reported by: giffordc@… Owned by: wjbohnh
Priority: normal Milestone:
Component: Code Errors/Issues Version: 5.2
Severity: normal Keywords: Cygwin compile error windows
Cc: briadam, wjbohnh Due Date:
Parent Tickets: Blocked By:
Blocking: Requestor:
Sensitive: no

Description

I have been struggling to compile the latest 'Dakota stable' source code and wanted to ask for assistance in fixing my error.

My current build attempt utilizes the following:
Cygwin 1.7.17
Dakota latest stable source - from (12/20/2012)
boost 1.48
Windows 7

When I use the recommended CMAKE command:

cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON /cygdrive/c/Dakota

The CMAKE configuration goes well until the Teuchos_DIR tests initiate; then I receive some failed tests.
e.g.:

-- Performing Test HAVE_TEUCHOS_BLASFLOAT
-- Performing Test HAVE_TEUCHOS_BLASFLOAT - Failed
-- Performing Test CXX_COMPLEX_BLAS_WORKS
-- Performing Test CXX_COMPLEX_BLAS_WORKS - Failed
-- Performing Test HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM
-- Performing Test HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM - Failed

Do I need to compile Teuchos separately? Or should I be compiling all the necessary libraries (e.g. Boost and BLAS) prior to using CMake? Any assistance on my question would be greatly appreciated. Attached is my CMakeError.log files documenting missing (.h) files as well as the above errors that occured. If there are any other files that would provide better insight, I will attach them as soon as possible.

Thank you,

Chris

Subtickets

Attachments

CMakeError.log Download (14.3 KB) - added by giffordc@… 6 years ago.
cmake error log

Change History

Changed 6 years ago by giffordc@…

cmake error log

comment:1 Changed 6 years ago by briadam

  • Cc briadam, wjbohnh added
  • Owner changed from briadam to wjbohnh
  • Status changed from new to assigned

Despite the indication, those are not errors. Teuchos is probing the system setup to see if it needs to enable/disable various workaround. I think your build will proceed okay, at least until you hit the next error...

comment:2 Changed 6 years ago by anonymous

Thank you for your quick response,

The cmake configuration has now completed, despite not being able to find all of the (.h) files that it searched for. I don't know if it is relevant, but the last few lines of the cmake process returned the following:

BROKEN!  Will NOT create a custom, Cygwin SOURCE archive
-- Configuring done
-- Generating done
-- Build files have been written to: /dakota_test

Once the build files were created, I attempted the compile the source code and was met with the following errors and exit:

giffordc@OWEN231-01 /dakota_test
$ make -j 4 dakota
packages/acro/tpl/3po/CMakeFiles/3po.dir/build.make:56: *** target pattern conta
ins no `%'.  Stop.
CMakeFiles/Makefile2:2928: recipe for target `packages/acro/tpl/3po/CMakeFiles/3
po.dir/all' failed
make[2]: *** [packages/acro/tpl/3po/CMakeFiles/3po.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
packages/acro/tpl/tinyxml/CMakeFiles/tinyxml.dir/build.make:56: *** target patte
rn contains no `%'.  Stop.
CMakeFiles/Makefile2:2978: recipe for target `packages/acro/tpl/tinyxml/CMakeFil
es/tinyxml.dir/all' failed
make[2]: *** [packages/acro/tpl/tinyxml/CMakeFiles/tinyxml.dir/all] Error 2
packages/ampl/CMakeFiles/genarith.dir/build.make:56: *** target pattern contains
 no `%'.  Stop.
CMakeFiles/Makefile2:1218: recipe for target `packages/ampl/CMakeFiles/genarith.
dir/all' failed
make[2]: *** [packages/ampl/CMakeFiles/genarith.dir/all] Error 2
CMakeFiles/Makefile2:5704: recipe for target `src/CMakeFiles/dakota.dir/rule' fa
iled
make[1]: *** [src/CMakeFiles/dakota.dir/rule] Error 2
Makefile:1714: recipe for target `dakota' failed
make: *** [dakota] Error 2

Sorry to present you with such menial difficulties, but any help to correct the above errors would be greatly appreciated.

Thank you,

Chris

comment:3 Changed 6 years ago by wjbohnh

giffordc@… wrote:


 packages/acro/tpl/3po/CMakeFiles/3po.dir/build.make:56: *** target pattern  contains no `%'.  Stop.

This is a common problem with many cygwin/make installations. Please consider patching or upgrading the make utility on your cygwin installation, e.g. via google:

 http://stackoverflow.com/questions/601516/cygwin-make-error-target-pattern-contains-no

The tips presented there helped me overcome that issue. Good luck,
--Bill

comment:4 follow-up: ↓ 5 Changed 6 years ago by Christopher <giffordc@…>

Bill,

Rolling back the 'make.exe' from version 3.81 to 3.80 did the trick! Now I am able to successfully compile from both the 'Dakota latest stable' and SVN repository source distributions. My error was apparently due to a windows path incompatibility...

Many thanks to both you and briadam,

-Chris

comment:5 in reply to: ↑ 4 Changed 6 years ago by wjbohnh

  • Status changed from assigned to closed
  • Resolution set to fixed

Replying to Christopher <giffordc@…>:

Bill,

Rolling back the 'make.exe' from version 3.81 to 3.80 did the trick! Now I am able to successfully compile from both the 'Dakota latest stable' and SVN repository source distributions. My error was apparently due to a windows path incompatibility...

Many thanks to both you and briadam,

-Chris

You're welcome. And a big thank you for your patience and diligence. Good luck with Dakota.
--Bill

Note: See TracTickets for help on using tickets.