Project

General

Profile

Bug #1403

*-win64 build fails on undefined struct sigaction

Added by Jim Phillips over 2 years ago. Updated over 2 years ago.

Status:
Merged
Priority:
High
Category:
Machine Layers
Target version:
Start date:
02/08/2017
Due date:
% Done:

0%


Description

../bin/charmc  -optimize -production   -I. -o machine.o  -DFOR_CPLUS=1 machine.c
machine.c
machine.c(285) : error C2079: 'signal_int' uses undefined struct 'sigaction'
unix2nt_cc Fatal Error in directory /usr/tmp/charm-6.8.0-build-2017-Feb-08-233716-mpi-win64/charm-6.8.0-pre/mpi-win64/tmp
   Error executing CL.EXE /nologo /W1 /EHsc /D_WINDOWS /DNOMINMAX /IC:\PROGRA~2\WI3CF2~1\8.1\Include /IC:\PROGRA~2\MICROS~2.0\VC\Include /DNDEBUG /MT /Ox /Fomachine.o /D_CRT_SECURE_NO_DEPRECATE /IC:\PROGRA~1\MI564C~1\Inc /IC:\PROGRA~1\MI564C~1\Include /IC:\cygwin64\usr\tmp\charm-6.8.0-build-2017-Feb-08-233716-mpi-win64\charm-6.8.0-pre\mpi-win64\include /D__CHARMC__=1 /I. /DFOR_CPLUS=1 /U_FORTIFY_SOURCE /c /Tcmachine.c
unix2nt_cc exiting...

History

#1 Updated by Jim Phillips over 2 years ago

This actually affects all win64 builds, not just MPI.

../bin/charmc  -optimize -production   -I. -o machine.o  -DFOR_CPLUS=1 machine.c
machine.c
c:\cygwin64\usr\tmp\charm-6.8.0-build-2017-feb-08-233716-multicore-win64\charm-6.8.0-pre\multicore-win64\tmp\machine-dgram.c(326) : warning C4090: '=' : different 'volatile' qualifiers
c:\cygwin64\usr\tmp\charm-6.8.0-build-2017-feb-08-233716-multicore-win64\charm-6.8.0-pre\multicore-win64\tmp\machine-eth.c(262) : warning C4090: '=' : different 'volatile' qualifiers
c:\cygwin64\usr\tmp\charm-6.8.0-build-2017-feb-08-233716-multicore-win64\charm-6.8.0-pre\multicore-win64\tmp\machine-eth.c(312) : warning C4090: '=' : different 'volatile' qualifiers
c:\cygwin64\usr\tmp\charm-6.8.0-build-2017-feb-08-233716-multicore-win64\charm-6.8.0-pre\multicore-win64\tmp\machine-eth.c(638) : warning C4090: '=' : different 'volatile' qualifiers
machine.c(2043) : error C2079: 'sa' uses undefined struct 'sigaction'
machine.c(2044) : error C2224: left of '.sa_handler' must have struct/union type
machine.c(2045) : error C2224: left of '.sa_mask' must have struct/union type
machine.c(2046) : error C2224: left of '.sa_flags' must have struct/union type
machine.c(2046) : error C2065: 'SA_RESTART' : undeclared identifier
unix2nt_cc Fatal Error in directory /usr/tmp/charm-6.8.0-build-2017-Feb-08-233716-multicore-win64/charm-6.8.0-pre/multicore-win64/tmp
   Error executing CL.EXE /nologo /W1 /EHsc /D_WINDOWS /DNOMINMAX /IC:\PROGRA~2\WI3CF2~1\8.1\Include /IC:\PROGRA~2\MICROS~2.0\VC\Include /DNDEBUG /MT /Ox /Fomachine.o /D_CRT_SECURE_NO_DEPRECATE /IC:\cygwin64\usr\tmp\charm-6.8.0-build-2017-Feb-08-233716-multicore-win64\charm-6.8.0-pre\multicore-win64\include /D__CHARMC__=1 /I. /DFOR_CPLUS=1 /U_FORTIFY_SOURCE /c /Tcmachine.c
unix2nt_cc exiting...
Fatal Error by charmc in directory /usr/tmp/charm-6.8.0-build-2017-Feb-08-233716-multicore-win64/charm-6.8.0-pre/multicore-win64/tmp
   Command ../bin/unix2nt_cc -D_CRT_SECURE_NO_DEPRECATE -I../bin/../include -D__CHARMC__=1 -I. -DFOR_CPLUS=1 -O2 -U_FORTIFY_SOURCE -c machine.c -o machine.o returned error code 1

#2 Updated by Sam White over 2 years ago

  • Assignee set to Seonmyeong Bak

#3 Updated by Seonmyeong Bak over 2 years ago

This is because sigaction is POSIX API. So windows doesn't support this.
For windows, I'll reapply the previous usage of signals and will add a compiler flag to choose between sigaction and signal depending on the target environment.

#4 Updated by Sam White over 2 years ago

  • Status changed from New to In Progress

#5 Updated by Phil Miller over 2 years ago

  • Subject changed from mpi-win64 build fails on undefined struct sigaction to *-win64 build fails on undefined struct sigaction

Today, please. This is a small fix, and the brokenness shouldn't be left lingering.

#6 Updated by Phil Miller over 2 years ago

  • translation missing: en.field_closed_date set to 2017-02-11 20:03:00.089660
  • Status changed from In Progress to Merged

Also available in: Atom PDF