Opened 5 years ago

Closed 4 years ago

#13249 closed Bugs (fixed)

cygwin build on appveyor fails attempting to use linux calls?

Reported by: James E. King, III Owned by: Gennadiy Rozental
Milestone: To Be Determined Component: test
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description (last modified by James E. King, III)

While attempting to build Boost.Random on Appveyor using a cygwin job, this happens:

https://ci.appveyor.com/project/jeking3/random/build/1.0.10-develop/job/h9m6ca7nho5hd7w7

The pull request is: https://github.com/jeking3/random/pull/1

The error is:

In file included from libs\test\src\debug.cpp:16:0:
./boost/test/impl/debug.ipp: In function 'const char* boost::debug::{anonymous}::prepare_gdb_cmnd_file(const boost::debug::dbg_startup_info&)':
./boost/test/impl/debug.ipp:424:23: error: '::mkstemp' has not been declared
     fd_holder cmd_fd( ::mkstemp( cmd_file_name ) );
                       ^
In file included from libs\test\src\debug.cpp:16:0:
./boost/test/impl/debug.ipp: In function 'bool boost::debug::attach_debugger(bool)':
./boost/test/impl/debug.ipp:892:34: error: '::mkstemp' has not been declared
     fd_holder init_done_lock_fd( ::mkstemp( init_done_lock_fn ) );
                                  ^
./boost/test/impl/debug.ipp:929:9: error: '::select' has not been declared
         ::select( 0, 0, 0, 0, &to );

Change History (6)

comment:1 by James E. King, III, 5 years ago

Component: randomtest
Description: modified (diff)
Owner: changed from No-Maintainer to Gennadiy Rozental

comment:2 by James E. King, III, 5 years ago

Milestone: To Be DeterminedBoost 1.66.0
Resolution: worksforme
Status: newclosed

I can no longer reproduce this as of 1.66.0 so I am resolving it as "worksforme".

comment:3 by James E. King, III, 5 years ago

Milestone: Boost 1.66.0To Be Determined
Resolution: worksforme
Status: closedreopened

It doesn't happen for me locally, but it does when building on Appveyor:

https://ci.appveyor.com/project/jeking3/random/build/1.0.42-develop/job/wkkuianyjamcwgs4#L780

Reopening.

comment:4 by Raffi Enficiaud, 5 years ago

Do you think your problem related to this: https://stackoverflow.com/questions/21689124/mkstemp-and-fdopen-in-cygwin-1-7-28 ?

What is the version of cygwin you use locally and on AppVeyor?

comment:5 by Raffi Enficiaud, 4 years ago

Hi,

Would you please try the branch topic/PR-145-cygwin-fixes and tell me if that solves your issues? A quick feedback would be good in order to merge this into the coming release.

Thanks

comment:6 by Raffi Enficiaud, 4 years ago

Resolution: fixed
Status: reopenedclosed

Fixed via PR-145. Please create a new ticket if you still experience issues with this.

Note: See TracTickets for help on using tickets.