Okay, the problem is fairly obvious, pkg being declared way outside the 
parallel block.
But rather than sprinkling more OpenMP magic dust to solve it, can you verify 
that this (ie just declare the variable inside the parallel block) solves the 
problem?

```     #pragma omp parallel
     #pragma omp single
     for (int i = 0; i < npkgs; i++) {
-       pkg = tasks[i];
+       Package pkg = tasks[i];
        #pragma omp task untied priority(i)
        {
        pkg->rc = packageBinary(spec, pkg, cookie, cheating, &pkg->filename);

```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1264#issuecomment-643998971
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to