Project

General

Profile

Bug #1559

cpuaffinity.c build errors on Linux and Win64 with --enable-tracing

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

Status:
Merged
Priority:
Urgent
Assignee:
Category:
Machine Layers
Target version:
Start date:
05/12/2017
Due date:
% Done:

0%


Description

Building charm --no-build-shared --enable-tracing --enable-tracing-commthread -optimize

On multicore-linux64-iccstatic:

../../../bin/charmc -gcc-name=gcc44 -gxx-name=g++44 -o pgm blkinhand.o megacon.o ringsimple.o ring.o fibobj.o fibthr.o broadc.o priotest.o deadlock.o vars.o nodenum.o specmsg.o bigmsg.o vecsend.o posixth.o future.o multicast.o multisend.o handler.o reduction.o -language converse++
icpc: warning #10237: -lcilkrts linked in dynamically, static library not available
../../../bin/../lib/libconv-cplus-y.a(machine.o): In function `handleOneRecvedMsg':
machine.c:(.text+0xaa): undefined reference to `TraceTimerCommon'
../../../bin/../lib/libconv-core.a(cpuaffinity.o): In function `CmiCheckAffinity':
cpuaffinity.c:(.text+0x1629): undefined reference to `CPU_OR'
cpuaffinity.c:(.text+0x1659): undefined reference to `CPU_COUNT'
../../../bin/../lib/libconv-core.a(cpuaffinity.o): In function `cpuPhyNodeAffinityRecvHandler':
cpuaffinity.c:(.text+0x16d4): undefined reference to `CPU_OR'
Fatal Error by charmc in directory /Projects/namd2/Programmers/jim/charm-6.8.0-proj-build-2017-May-12-124358/charm-6.8.0-beta2/multicore-linux64-iccstatic/tests/converse/megacon
   Command icpc -static-intel -gcc-name=gcc44 -gxx-name=g++44 -o pgm -L../../../bin/../lib -I../../../bin/../include blkinhand.o megacon.o ringsimple.o ring.o fibobj.o fibthr.o broadc.o priotest.o deadlock.o vars.o nodenum.o specmsg.o bigmsg.o vecsend.o posixth.o future.o multicast.o multisend.o handler.o reduction.o moduleinit1077.o -lmemory-default -lthreads-default -lconv-cplus-y -lconv-core -ltmgr -lconv-util -lconv-partition -ltrace-converse -lmemory-default -lthreads-default -lldb-rand -lconv-ldb -lpthread -lckqt -ldl -lmoduleNDMeshStreamer -lmodulecompletion -lm returned error code 1

On verbs-linux-x86_64-iccstatic:

../../../bin/../lib/libconv-core.a(cpuaffinity.o): In function `cpuPhyNodeAffinityRecvHandler':
cpuaffinity.c:(.text+0x1334): undefined reference to `CPU_OR'
Fatal Error by charmc in directory /Projects/namd2/Programmers/jim/charm-6.8.0-proj-build-2017-May-12-124358/charm-6.8.0-beta2/verbs-linux-x86_64-iccstatic/tests/charm++/megatest
   Command icpc -static-intel -gcc-name=gcc44 -gxx-name=g++44 -o pgm -L../../../bin/../lib -I../../../bin/../include megatest.o groupring.o nodering.o varsizetest.o varsizetest2.o varraystest.o groupcast.o groupmulti.o groupsectiontest.o multisectiontest.o nodecast.o synctest.o fib.o arrayring.o packtest.o queens.o migration.o marshall.o priomsg.o priotest.o rotest.o statistics.o templates.o inherit.o reduction.o bitvector.o immediatering.o callback.o inlineem.o completion_test.o moduleinit6060.o -lmodulecompletion -lckmain -lck -lmemory-default -lthreads-default -lconv-cplus-y -lconv-core -ltmgr -lconv-util -lconv-partition -lmemory-default -lthreads-default -lldb-rand -lconv-ldb -lckqt -libverbs -ldl -lmodulecompletion -lmoduleNDMeshStreamer -lmodulecompletion -lm returned error code 1

On multicore-win64:

../bin/charmc  -optimize  -I.   -c -o cpuaffinity.o cpuaffinity.c
cpuaffinity.c
cpuaffinity.c(254) : warning C4133: 'function' : incompatible types - from 'unsigned long *' to 'PDWORD_PTR'
cpuaffinity.c(721) : error C2065: 'aff_is_set' : undeclared identifier
cpuaffinity.c(722) : error C2065: 'core_usage' : undeclared identifier
unix2nt_cc Fatal Error in directory /usr/tmp/charm-6.8.0-proj-build-2017-May-12-124358-multicore-win64/charm-6.8.0-beta2/multicore-win64/tmp

History

#1 Updated by Sam White about 2 years ago

  • Assignee set to Juan Galvez

Somewhat arbitrarily assigning to Juan only because he's touched cpuaffinity before and doesn't appear to have any other 6.8.0 bugs currently

#2 Updated by Juan Galvez about 2 years ago

  • Status changed from New to In Progress

This should fix some of the machine layers but possibly not all of them:
https://charm.cs.illinois.edu/gerrit/#/c/2523/

I'll look at the other cases too.

#3 Updated by Juan Galvez about 2 years ago

This https://charm.cs.illinois.edu/gerrit/#/c/2524/ should take care of all cpuaffinity errors, although I didn't explicitly test with icc.

Don't know about the "undefined reference to `TraceTimerCommon'" error. That shouldn't have anything to do with cpuaffinity.

#4 Updated by Juan Galvez about 2 years ago

  • Assignee changed from Juan Galvez to Ronak Buch

#5 Updated by Phil Miller about 2 years ago

  • Status changed from In Progress to Merged

The patches intended to fix the first two errors have been merged, so I'm closing this. If the TraceTimerCommon failure on multicore-linux-iccstatic is still an issue, and wasn't spurious, please duplicate this, and update it with the exact build command that reproduces it.

Also available in: Atom PDF