Project

General

Profile

Bug #1402

MPI builds fail due to sigaction parameter type mismatch

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

On Stampede 2:

../bin/charmc  -optimize -production  -xMIC-AVX512   -o ../lib/libconv-core.a convcore.o conv-conds.o queueing.o msgmgr.o cpm.o cpthreads.o futures.o cldb.o random.o debug-conv.o debug-conv++.o conv-ccs.o ccs-builtins.o middle-ccs.o traceCore.o traceCoreCommon.o converseProjections.o machineProjections.o quiescence.o isomalloc.o mem-arena.o conv-counter.o global-nop.o cmipool.o cpuaffinity.o cputopology.o cmitls.o memoryaffinity.o commitid.o sdag.o conv-interoperate.o 
ar: creating ../lib/libconv-core.a
../bin/charmc  -optimize -production  -xMIC-AVX512  -I. -o machine.o  -DFOR_CPLUS=1 machine.c
machine.c(1165): error: argument of type "struct sigaction" is incompatible with parameter of type "const struct sigaction *__restrict__" 
        sigaction(SIGINT, signal_int, NULL);
                          ^

compilation aborted for machine.c (code 2)
Fatal Error by charmc in directory /tmp/charm-6.8.0-build-2017-Feb-08-233716-mpi-linux-x86_64-smp-iccstatic-knl/charm-6.8.0-pre/mpi-linux-x86_64-smp-iccstatic/tmp
   Command icc -D_REENTRANT -I../bin/../include -D__CHARMC__=1 -I. -DFOR_CPLUS=1 -xMIC-AVX512 -O2 -U_FORTIFY_SOURCE -I/opt/intel/impi/5.1.3.223/intel64/include -c machine.c -o machine.o returned error code 2
charmc exiting...

on JYC:
../bin/charmc  -optimize -production    -o ../lib/libconv-core.a convcore.o conv-conds.o queueing.o msgmgr.o cpm.o cpthreads.o futures.o cldb.o random.o debug-conv.o debug-conv++.o conv-ccs.o ccs-builtins.o middle-ccs.o traceCore.o traceCoreCommon.o converseProjections.o machineProjections.o quiescence.o isomalloc.o mem-arena.o conv-counter.o global-nop.o cmipool.o cpuaffinity.o cputopology.o cmitls.o memoryaffinity.o commitid.o sdag.o conv-interoperate.o 
ar: creating ../lib/libconv-core.a
../bin/charmc  -optimize -production   -I. -o machine.o  -DFOR_CPLUS=1 machine.c
machine.c: In function 'LrtsExit':
machine.c:1165:7: error: incompatible type for argument 2 of 'sigaction'
       sigaction(SIGINT, signal_int, NULL);
       ^
In file included from machine.c:284:0:
/usr/include/signal.h:266:12: note: expected 'const struct sigaction * __restrict__' but argument is of type 'struct sigaction'
 extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
            ^
Fatal Error by charmc in directory /usr/tmp/charm-6.8.0-build-2017-Feb-08-233716-mpi-crayxe/charm-6.8.0-pre/mpi-crayxe/tmp
   Command cc -I../bin/../include -D__CHARMC__=1 -I. -DFOR_CPLUS=1 -O2 -U_FORTIFY_SOURCE -c machine.c -o machine.o returned error code 1

History

#1 Updated by Sam White over 2 years ago

  • Assignee set to Seonmyeong Bak

#3 Updated by Sam White over 2 years ago

  • Status changed from New to Implemented

#4 Updated by Sam White over 2 years ago

  • Status changed from Implemented to Merged
  • translation missing: en.field_closed_date set to 2017-02-09 08:22:53.719871

Also available in: Atom PDF