Bug 1113429 - linking of openmp program fails
Summary: linking of openmp program fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: gcc
Version: DTS 3.0 RHEL 7
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 3.0
Assignee: Marek Polacek
QA Contact: Miroslav Franc
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-26 07:51 UTC by Miroslav Franc
Modified: 2016-02-01 02:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-30 09:38:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:1752 0 normal SHIPPED_LIVE new packages: devtoolset-3-gcc 2014-10-30 13:36:40 UTC

Description Miroslav Franc 2014-06-26 07:51:39 UTC
Description of problem:
Linking of openmp program fails on RHEL7 with dts3.


Version-Release number of selected component (if applicable):
devtoolset-3-gcc-4.9.0-6.2.el7.x86_64
libgomp-4.8.2-16.el7.x86_64


Steps to Reproduce:
--- omphello.c ---
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>

int
main (void)
{
  int th_id;
  int nthreads;

  #pragma omp parallel private(th_id)
  {
    th_id = omp_get_thread_num ();
    printf ("Hello World from thread %d\n", th_id);

    #pragma omp barrier
    if (th_id == 0)
      {
        nthreads = omp_get_num_threads ();
        printf ("There are %d threads\n", nthreads);
      }
  }
  return EXIT_SUCCESS;
}
--- omphello.c ---

1. gcc omphello.c -O2 -std=gnu99 -fopenmp -o omp


Actual results:
/tmp/ccUkKVz5.o: In function `main':
omphello.c:(.text.startup+0x18): undefined reference to `GOMP_parallel'
collect2: error: ld returned 1 exit status


Expected results:
success

Comment 2 Jakub Jelinek 2014-06-26 13:17:27 UTC
See #1099547.

Comment 11 errata-xmlrpc 2014-10-30 09:38:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2014-1752.html


Note You need to log in before you can comment on or make changes to this bug.