RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1668328 - libomp test case ompt/misc/control_tool.c fails on aarch64 with "clang" config prefix
Summary: libomp test case ompt/misc/control_tool.c fails on aarch64 with "clang" confi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: llvm-toolset
Version: 8.0
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: serge_sans_paille
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On: 1683267
Blocks: 1683831
TreeView+ depends on / blocked
 
Reported: 2019-01-22 13:05 UTC by Miloš Prchlík
Modified: 2021-09-17 08:35 UTC (History)
0 users

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 20:56:03 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:3370 0 None None None 2019-11-05 20:56:22 UTC

Description Miloš Prchlík 2019-01-22 13:05:57 UTC
Description of problem:

lit --threads 1 -v --config-prefix clang /usr/share/libomp/src/runtime/test
...

FAIL: libomp :: ompt/misc/control_tool.c (37 of 171)
******************** TEST 'libomp :: ompt/misc/control_tool.c' FAILED ********************
Script:
--
: 'RUN: at line 1';   /usr/bin/clang -fopenmp  -I /usr/share/libomp/src//runtime/test -I /usr/include -L /usr/lib64  -I /usr/share/libomp/src//runtime/test/ompt /usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c -o /tmp/tmp.OO0JFpemH0/t/ompt/misc/Output/control_tool.c.tmp -lm -latomic && /tmp/tmp.OO0JFpemH0/t/ompt/misc/Output/control_tool.c.tmp | /usr/lib64/llvm/FileCheck /usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c
--
Exit Code: 1

Command Output (stdout):
--
$ ":" "RUN: at line 1"
$ "/usr/bin/clang" "-fopenmp" "-I" "/usr/share/libomp/src//runtime/test" "-I" "/usr/include" "-L" "/usr/lib64" "-I" "/usr/share/libomp/src//runtime/test/ompt" "/usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c" "-o" "/tmp/tmp.OO0JFpemH0/t/ompt/misc/Output/control_tool.c.tmp" "-lm" "-latomic"
# command stderr:
In file included from /usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c:5:
/usr/share/libomp/src//runtime/test/ompt/callback.h:114:6: warning: "Clang 5.0 and later add an additional wrapper for outlined functions when compiling with debug information." [-W#warnings]
    #warning "Clang 5.0 and later add an additional wrapper for outlined functions when compiling with debug information."
     ^
/usr/share/libomp/src//runtime/test/ompt/callback.h:115:6: warning: "Please define -DDEBUG iff you manually pass in -g to make the tests succeed!" [-W#warnings]
    #warning "Please define -DDEBUG iff you manually pass in -g to make the tests succeed!"
     ^
2 warnings generated.

$ "/tmp/tmp.OO0JFpemH0/t/ompt/misc/Output/control_tool.c.tmp"
$ "/usr/lib64/llvm/FileCheck" "/usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c"
# command stderr:
/usr/share/libomp/src/runtime/test/ompt/misc/control_tool.c:26:17: error: CHECK-NEXT: expected string not found in input
 // CHECK-NEXT: {{^}}[[MASTER_ID]]: current_address={{.*}}[[RETURN_ADDRESS]]
                ^
<stdin>:9:1: note: scanning from here
281474976710657: current_address=0x4034e4 or 0x4034e0
^
<stdin>:9:1: note: with variable "MASTER_ID" equal to "281474976710657"
281474976710657: current_address=0x4034e4 or 0x4034e0
^
<stdin>:9:1: note: with variable "RETURN_ADDRESS" equal to "0x4034dc"
281474976710657: current_address=0x4034e4 or 0x4034e0
^
<stdin>:9:13: note: possible intended match here
281474976710657: current_address=0x4034e4 or 0x4034e0
            ^

error: command failed with exit status: 1

--

********************


However, under `lit --threads 1 -v --config-prefix gcc /usr/share/libomp/src/runtime/test` the test case passed. It also worked well on x86_64 and ppc64le.




Version-Release number of selected component (if applicable):

libomp-7.0.1-1.module+el8+2560+c32c7af1.aarch64


How reproducible:


Steps to Reproduce:
1. /usr/share/libomp/runtest.sh --threads 1
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 serge_sans_paille 2019-05-17 15:30:57 UTC
According to https://dashboard.osci.redhat.com/#/artifact/redhat-module/aid/3190, esp. http://artifacts.osci.redhat.com/baseos-ci/redhat-module/31/90/3190/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-openstack-mbs/378/tmpbtKad8.01/recipes/1/tasks/1/logs/libomp-test.log this should be ok.

*Should* because the lit parameters are sligntly different, but the actual test uses `--config-prefix x86_64 -Dlibomp_compiler=clang` which looks ok to me.

Milos, any thought on this?

Comment 4 Miloš Prchlík 2019-05-20 10:24:24 UTC
Looks good to me. The params are indeed slightly different, but yes, `--config-prefix x86_64 -Dlibomp_compiler=clang` sounds like the most important part, and that looks sane to me.

Comment 6 Miloš Prchlík 2019-08-29 08:45:17 UTC
Verified with llvm-toolset-rhel8-8010020190802085723.cdc1202b.

Comment 8 errata-xmlrpc 2019-11-05 20:56:03 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://access.redhat.com/errata/RHEA-2019:3370


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