gcc 8.1.1 on ascent fails to build jgi_summarize_bam_contig_depths

Issue #65 resolved
Rob Egan created an issue

[ 72%] Building CXX object src/CMakeFiles/jgi_summarize_bam_contig_depths.dir/jgi_summarize_bam_contig_depths.cpp.o
cd /ccsopen/home/robegan/metabat/build-gcc-8.1.1/src && /sw/ascent/gcc/8.1.1/bin/g++ -D_XOPEN_SOURCE=700 -I/ccsopen/home/robegan/metabat/build-gcc-8.1.1/contrib/zlib-install/include -I/ccsopen/home/robegan/metabat/build-gcc-8.1.1/contrib/htslib-install/include -I/ccsopen/home/robegan/metabat -I/autofs/nccsopen-svm1_sw/ascent/.swci/1-compute/opt/spack/20180914/linux-rhel7-ppc64le/gcc-8.1.1/boost-1.66.0-gmvihx3xse5pxic66o3tmwf47ykariw4/include -fopenmp -O3 -DNDEBUG -mtune=native -std=c++11 -o CMakeFiles/jgi_summarize_bam_contig_depths.dir/jgi_summarize_bam_contig_depths.cpp.o -c /ccsopen/home/robegan/metabat/src/jgi_summarize_bam_contig_depths.cpp
during GIMPLE pass: omplower
/ccsopen/home/robegan/metabat/src/jgi_summarize_bam_contig_depths.cpp: In function 'int main(int, char**)':
/ccsopen/home/robegan/metabat/src/jgi_summarize_bam_contig_depths.cpp:410:45: internal compiler error: in create_tmp_var, at gimple-expr.c:479
pairedContigs.resize( header->n_targets, PairedCountType() );
^~~~~
0x1061778f create_tmp_var(tree_node*, char const*)
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimple-expr.c:479
0x1065585b create_tmp_from_val
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimplify.c:524
0x1065585b lookup_tmp_var
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimplify.c:559
0x1065585b internal_get_tmp_var
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimplify.c:598
0x1064f627 gimplify_expr(tree_node**, gimple**, gimple**, bool ()(tree_node), int)
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimplify.c:12708
0x1065dfc3 gimple_regimplify_operands(gimple*, gimple_stmt_iterator*)
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/gimplify-me.c:244
0x107d0117 lower_omp_regimplify_operands
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:9629
0x107da7f7 lower_omp_1
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:9876
0x107da7f7 lower_omp
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:9888
0x107db8b7 lower_omp_1
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:9690
0x107db8b7 lower_omp
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:9888
0x107ea84f lower_omp_for
/sw/ascent/gcc/8.1.1/src/gcc-8.1.1/gcc/omp-low.c:7237

Comments (1)

  1. Rob Egan reporter

    This was fixed in the jgi_gpu_hackathon branch... I believe it was due to some standard OMP calls that were not well implemented. Fixing a vector.resize() to use a new instance instead of a temporary one was the fix

  2. Log in to comment