-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMAKE Shortestpath error for shared declaration #32
Comments
add_executable( add_executable( add_executable( add_executable( if(${OPENMP_FOUND}) install( add_custom_target(TN93SP install( add_custom_target(NF |
my cmakelist.txt with shortestpath references only |
i dont see a shared error conflict if you can see it help me fix this! Please! |
Dear @piyuveng1, Which compiler and platform are you using? Best, |
REDhat |
Dear @piyuveng1, Can you please provide the output of Best, |
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) |
Dear @piyuveng1, That gcc is really old ( Best, |
[pv197@ip-172-22-160-154 tn93]$ gcc --version /home/pv197/tn93/src/ShortestPathTN93.cpp: In function ‘void relaxDistanceEstimates(long unsigned int, long int, char, long int, double)’: Dear @ stevenweaver, Thank u for taking the time i updated my gcc but still getting the same error. |
did you do a make clean first? |
yes i did and now it's working thank you all!
…On Mon, Apr 10, 2023 at 5:07 PM Art Poon ***@***.***> wrote:
did you do a make clean first?
—
Reply to this email directly, view it on GitHub
<#32 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFUJDA3CR24DRKUGQR5YJDXARZCZANCNFSM6AAAAAAWUZYBXQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm getting this error using GCC 8.5 on Oracle Linux 8:
|
The issue I'm running into seems to be in more recent versions of GCC and/or OpenMP. Specifically, it seems like https://github.com/niemasd/tn93/blob/a00a7c830f71c31b35043d53cddc3e9e0ccf9878/Dockerfile#L7-L8 |
I was able to fix the issue by making the following edits to the tn93 source: sed -i 's/shared(currently_defined_clusters, try_cluster, sequence_lengths, current_sequence, current_clusters, firstSequenceLength, min_overlap)/shared(currently_defined_clusters, try_cluster, sequence_lengths, current_sequence, current_clusters)/g' src/read_reducer.cpp
sed -i 's/shared(my_distance_estimate,nodeParents,workingNodes,distanceEstimates, step_penalty, min_overlap, resolutionOption, firstSequenceLength, theSequence, left_to_do)/shared(my_distance_estimate,nodeParents,workingNodes,distanceEstimates)/g' src/ShortestPathTN93.cpp |
My process d getting stuck here don't know how to fix this. Please this help would be greatly appreciated!
$ make install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pv197/tn93/tn93
[ 10%] Built target tn93
[ 21%] Built target tn93-cluster
[ 31%] Built target seqcoverage
[ 34%] Building CXX object CMakeFiles/ShortestPathTN93.dir/src/ShortestPathTN93.cpp.o
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp: In function ‘void relaxDistanceEstimates(long unsigned int, long int, char, long int, double)’:
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘left_to_do’ is predetermined ‘shared’ for ‘shared’
#pragma omp parallel for default(none) shared(my_distance_estimate,nodeParents,workingNodes,distanceEstimates, step_penalty, min_overlap, resolutionOption, firstSequenceLength, theSequence, left_to_do)
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘theSequence’ is predetermined ‘shared’ for ‘shared’
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘firstSequenceLength’ is predetermined ‘shared’ for ‘shared’
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘resolutionOption’ is predetermined ‘shared’ for ‘shared’
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘min_overlap’ is predetermined ‘shared’ for ‘shared’
/home/pv197/tn93/tn93/src/ShortestPathTN93.cpp:92:208: error: ‘step_penalty’ is predetermined ‘shared’ for ‘shared’
make[2]: *** [CMakeFiles/ShortestPathTN93.dir/src/ShortestPathTN93.cpp.o] Error 1
make[1]: *** [CMakeFiles/ShortestPathTN93.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: