Bug 1542941 - Fails to detect g++ 7.3
Summary: Fails to detect g++ 7.3
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glm
Version: 27
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Joonas Sarajärvi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-07 12:20 UTC by alan
Modified: 2018-04-10 14:32 UTC (History)
4 users (show)

Fixed In Version: glm-0.9.8.4-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-13 17:37:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1565650 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1565650

Description alan 2018-02-07 12:20:07 UTC
Description of problem:

g++5.3.1 has just been pushed to Fedora 27.

However, /usr/include/glm/simd/platform.h which fails to detect g++ 7.3 vis:

#define GLM_COMPILER_GCC71			0x02000B00
#define GLM_COMPILER_GCC72			0x02000C00
#define GLM_COMPILER_GCC80			0x02000D00
...
#	elif (__GNUC__ == 7) && (__GNUC_MINOR__ == 2)
#		define GLM_COMPILER (GLM_COMPILER_GCC72)
#	elif (__GNUC__ >= 8)
#		define GLM_COMPILER (GLM_COMPILER_GCC80)
#	else
#		define GLM_COMPILER (GLM_COMPILER_GCC)
#	endif


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

0.9.8.4

How reproducible:

Compile anything that uses glm

Actual results:

/usr/include/glm/detail/setup.hpp:456:100: note: #pragma message: GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components
 # pragma message("GLM: GCC older than 4.6 has a bug presenting the use of rgba and stpq components")
                                                                                                    ^

Expected results:

Successful compilation

Comment 1 Neal Gompa 2018-02-07 12:25:07 UTC
(In reply to alan from comment #0)
> Description of problem:
> 
> g++5.3.1 has just been pushed to Fedora 27.
> 

I think you mean g++7.3.1, but yes, I confirm this is a problem too.

Comment 2 alan 2018-02-07 12:26:31 UTC
True, I do mean 7.3.1

Comment 3 Joonas Sarajärvi 2018-02-07 17:21:24 UTC
I find it a bit surprising to get this kind of GCC update in the update stream. But well, now it seems like an obvious fix to pull in the patch that was in Rawhide.

Comment 4 Fedora Update System 2018-02-07 18:50:36 UTC
glm-0.9.8.4-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c7f888e819

Comment 5 Fedora Update System 2018-02-08 09:18:31 UTC
glm-0.9.8.4-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c7f888e819

Comment 6 Caolan McNamara 2018-02-09 17:19:13 UTC
The same is also true on Fedora 26 now as well

Comment 7 Joonas Sarajärvi 2018-02-09 18:06:22 UTC
Silly me, not even thinking about the possibility that F26 might get the same update. Traditionally the GCC versions have tended to be quite different on differing stable Fedora branches. But of course this fix is now needed also in F26.

Comment 8 Fedora Update System 2018-02-09 18:46:24 UTC
glm-0.9.8.4-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b0b5d4d439

Comment 9 Fedora Update System 2018-02-12 18:15:46 UTC
glm-0.9.8.4-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2018-02-12 19:10:02 UTC
glm-0.9.8.4-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b0b5d4d439

Comment 11 Fedora Update System 2018-02-13 17:37:45 UTC
glm-0.9.8.4-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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