Description of problem: I want to run the program gp2c-run from the GP/Pari suite. gp2c translates gp scripts into c programs. gp2c-run does the same as gp2c but also compiles the c program But gcc complains ... [cewijk@localhost Tests]$ gp2c-run zeta.gp gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory Version-Release number of selected component (if applicable): [cewijk@localhost ~]$ gcc --version gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: gc2c-run does not produce an object file zeta.o Expected results: zeta.gp zeta.gp.c zeta.o zeta.gp.run zeta.gp.so Additional info: for GP Pari see https://pari.math.u-bordeaux.fr/
Hi Chrit, The redhat-hardened-cc1 file is part of the redhat-rpm-macros package. Please can you check to see if it is installed in your build environment. If not, then please install it, and see if this solves the build problem. If it does, then it would appear that the gp2c-run program needs to have a dependency upon redhat-rpm-macros. Cheers Nick
Indeed, this is not a GCC bug.
I cannot install redhat-rpm-macros . Maybe it's not in the default repo's? [cewijk@localhost ~]$ su - Password: [root@localhost ~]# rpm -q redhat-rpm-macros package redhat-rpm-macros is not installed [root@localhost ~]# dnf install redhat-rpm-macros Last metadata expiration check: 0:04:26 ago on Tue 16 Oct 2018 08:40:11 PM CEST. No match for argument: redhat-rpm-macros Error: Unable to find a match
Sorry, the correct name of the package is actually "redhat-rpm-config": $ rpm -ql redhat-rpm-config | grep hardened /usr/lib/rpm/redhat/redhat-hardened-cc1 /usr/lib/rpm/redhat/redhat-hardened-ld
I have installed redhat-rpm-config. And indeed gcc does not complain any more. Nick, thanks for your help. -Chrit