Closed buddha314 closed 4 years ago
Could you please tell us which Chapel version you are currently using to compile? CHGL currently only supports Chapel 1.20. Beyond v1.20, we know that Chapel has made fundamental changes in terms of visibility of modules. I suspect this may be causing the error you are seeing.
For sure! Also, I just re-built in response to this ticket: https://github.com/chapel-lang/chapel/issues/16285
chpl --version
chpl version 1.23.0 pre-release (1201483366)
Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)
Hi Brian. Unfortunately CHGL only supports Chapel 1.20 at this moment. Would it be possible to compile CHGL with Chapel 1.20? Apologies for any inconvenience.
Can you let us know the output of chpl -version on your system? We are working with Cray on understanding better how to upgrade CHGL to 1.22 but it currently supports 1.20.
On Mon, Aug 24, 2020 at 16:08 Brian Dolan notifications@github.com wrote:
I am using this Makefile to attempt to include CHGL. This approach has worked with other Chapel modules but I can't find the right entrypoint for CHGL.
CC=chpl
SRCDIR=src
BINDIR=target
CHGL_HOME=/mnt/c/Users/b/src/chgl/src
CHGL_HOME=/mnt/c/Users/b/src/chgl/src/CHGL.chpl
CHGL_HOME=/mnt/c/Users/b/src/chgl/
MODULES=-M$(CHGL_HOME)
EXEC=firsthgl
default=all
all: $(SRCDIR)/firstHgraph.chpl
$(CC) $(MODULES) -o $(BINDIR)/$(EXEC) $<
I get the error
chpl -M/mnt/c/Users/b/src/chgl/src -o target/firsthgl src/firstHgraph.chpl
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:16: In function 'binToHypergraph':
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:32: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:73: In function 'binToGraph':
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:89: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:113: In function 'getVertexComponentMappings':
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:116: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:117: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:191: In function 'getEdgeComponentMappings':
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:194: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Metrics.chpl:195: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Generation.chpl:268: In function 'generateChungLu':
/mnt/c/Users/b/src/chgl/src/Generation.chpl:306: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Generation.chpl:464: In function 'generateBTER':
/mnt/c/Users/b/src/chgl/src/Generation.chpl:494: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:10: In iterator 'vertexBFS':
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:12: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:25: In iterator 'vertexBFS':
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:27: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:28: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:28: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:45: In iterator 'edgeBFS':
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:47: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:60: In iterator 'edgeBFS':
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:62: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:63: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Traversal.chpl:63: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:152: In function 'main':
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:153: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:28: In iterator 'doWorkLoop':
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:29: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:244: In initializer:
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:247: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:249: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:251: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:187: In function 'readWriteThis':
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:188: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:190: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:192: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:194: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:196: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AggregationBuffer.chpl:198: error: Attempt to 'new' a function or undefined symbol
/mnt/c/Users/b/src/chgl/src/AdjListHyperGraph.chpl:441: In initializer:
/mnt/c/Users/b/src/chgl/src/AdjListHyperGraph.chpl:432: error: 'Lock' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/AdjListHyperGraph.chpl:478: In function 'equals':
/mnt/c/Users/b/src/chgl/src/AdjListHyperGraph.chpl:491: error: 'Utilities' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:16: In function 'binToHypergraph':
/mnt/c/Users/b/src/chgl/src/BinReader.chpl:62: error: 'ssize_t' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Utilities.chpl:374: error: 'size_t' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Utilities.chpl:375: error: 'c_int' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Utilities.chpl:507: In iterator 'getLines':
/mnt/c/Users/b/src/chgl/src/Utilities.chpl:508: error: 'iomode' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:4: In function 'visualize':
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:4: error: 'Graph' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:6: error: 'iomode' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:43: In function 'visualize':
/mnt/c/Users/b/src/chgl/src/Visualize.chpl:43: error: 'AdjListHyperGraph' undeclared (first use this function)
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:16: In iterator 'doWorkLoop':
/mnt/c/Users/b/src/chgl/src/WorkQueue.chpl:16: error: 'TerminationDetector' undeclared (first use this function)
make: *** [Makefile:13: all] Error 1
I'm assuming this means CHGL isn't including the dependencies. Do you know how to fix this or is the approach fundamentally wrong? Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pnnl/chgl/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5T6HFMIRL3USWSKTSMVLTSCLXHDANCNFSM4QKAGUFQ .
@mark-raugas: Brian is currently compiling with Chapel v 1.23
For sure! Also, I just re-built in response to this ticket: chapel-lang/chapel#16285
chpl --version chpl version 1.23.0 pre-release (1201483366) Copyright 2020 Hewlett Packard Enterprise Development LP Copyright 2004-2019 Cray Inc. (See LICENSE file for more details)
This issue is stale and should either be closed or eventually resolved.
I am using this Makefile to attempt to include CHGL. This approach has worked with other Chapel modules but I can't find the right entrypoint for CHGL.
I get the error
I'm assuming this means CHGL isn't including the dependencies. Do you know how to fix this or is the approach fundamentally wrong? Thanks!