[Bug 1895358] Re: [Bug] A simple code including tgmath.h cannot be compiled with icc with Ubuntu 20.04 OS
Launchpad Bug Tracker
1895358 at bugs.launchpad.net
Tue Dec 1 10:01:23 UTC 2020
This bug was fixed in the package glibc - 2.32-0ubuntu5
---------------
glibc (2.32-0ubuntu5) hirsute; urgency=medium
* debian/gbp.conf: Set debian-tag and debian-tag-msg to follow Ubuntu format
* Don't build libc6-prof in stage1 and stage2
* Ship libc6-prof on riscv64, too.
This fixes FTBFS on riscv64 due to the the flavour being built but not
shipped in a package.
* Detect debconf consistently in libc6.preinst and do not crash if it is not used
(LP: #1902955)
* Prevent rare deadlock in pthread_cond_signal (LP: #1899800)
* debian/patches/git-updates.diff: update from upstream stable branch
glibc (2.32-0ubuntu4) hirsute; urgency=medium
* tests: XFAIL time/tst-cpuclock1 on armel, too. (LP: #1895687)
The armhf build builds for armel, too, thus this fixes the armhf
autopkgtest.
* debian/control: Only recommend libnss-nis and libnss-nisplus.
They pull in a sizable amount of extra dependencies while they are rarely
needed.
* Make libc6 provide libc6-lse on arm64.
Libc6 is now compiled with -moutline-atomics thus the separate binary
package is dropped.
* Ship libc variant compiled for profiling in libc6-prof
* debian/patches/git-updates.diff: update from upstream stable branch
* Drop obsoleted local-cudacc-float128.diff which breaks new icc
(LP: #1895358)
* XFAIL tst-sysvshm-linux on i386 and x32
* Merge 2.31-4 from Debian unstable
-- Balint Reczey <rbalint at ubuntu.com> Fri, 13 Nov 2020 18:54:38 +0100
** Changed in: glibc (Ubuntu)
Status: Incomplete => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1895358
Title:
[Bug] A simple code including tgmath.h cannot be compiled with icc
with Ubuntu 20.04 OS
Status in intel:
Incomplete
Status in glibc package in Ubuntu:
Fix Released
Status in glibc source package in Focal:
New
Status in glibc source package in Groovy:
New
Bug description:
[Summary]: A simple code including tgmath.h cannot be compiled with
icc with Ubuntu 20.04 OS
[Ubuntu OS version]: 20.04
[Reproduce Steps]: Compile the following code with Intel compiler
(icc) by running “icc -c test.c”
$ cat test.c
#include <tgmath.h>
[Results]
Expected: There should not be any compilation error
Actual: The following error is produced:
$ icc -c test.c
In file included from /localdisk2/mkl/aakkas/20200721_rls/lnx/compiler/latest/linux/bin/intel64/../../compiler/include/icc/tgmath.h(25),
from test.c(1):
/usr/include/tgmath.h(54): error: #error directive: "Unsupported combination of types for <tgmath.h>."
# error "Unsupported combination of types for <tgmath.h>."
^
compilation aborted for test.c (code 2)
[Additional Information on Test setup]:
ICC compiler supports the __float128 type if the reference compiler is more recent than GNU version 4.4. Therefore, __HAVE_FLOAT128 should be set to 1 when ICC compiler is used with GNU version higher than 4.4. Based on this, I believe that the red part below in floatn.h, which comes with Ubuntu OS, should be updated/removed.
#if (defined __x86_64__ \
? __GNUC_PREREQ (4, 3) \
: (defined __GNU__ ? __GNUC_PREREQ (4, 5) : __GNUC_PREREQ (4, 4))) \
&& !defined(__CUDACC__) && !defined(__ICC)
# define __HAVE_FLOAT128 1
#else
# define __HAVE_FLOAT128 0
#endif
Currently, when the tgmath.h system header file is included on Ubuntu
20.04 OS system, __HAVE_FLOAT128 is set to zero and __HAVE_FLOAT64X
set to 1 for ICC. And this is not a supported combination as checked
in the new tgmath.h system header file:
# if ((__HAVE_FLOAT64X && !__HAVE_FLOAT128) \
|| (__HAVE_FLOAT128 && !__HAVE_FLOAT64X))
# error "Unsupported combination of types for <tgmath.h>."
# endif
Upstream bug: Not known
=========================================
To manage notifications about this bug go to:
https://bugs.launchpad.net/intel/+bug/1895358/+subscriptions
More information about the foundations-bugs
mailing list