-fpermissive error while trying to compile a package with make
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
-fpermissive error while trying to compile a package with make
Hi!
I let this speak for itself:
Code:
make
make all-recursive
make[1]: Entering directory `/opt/hpc-clust-1.1.1'
Making all in eutils
make[2]: Entering directory `/opt/hpc-clust-1.1.1/eutils'
make all-am
make[3]: Entering directory `/opt/hpc-clust-1.1.1/eutils'
g++ -DHAVE_CONFIG_H -I. -O3 -pthread -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -MT logger.o -MD -MP -MF .deps/logger.Tpo -c -o logger.o logger.cpp
In file included from evar.h:8:0,
from logger.cpp:5:
ebasicarray_dec.h: In instantiation of ‘T& ebasicarray<T>::add(const T&) [with T = estr*]’:
earrayof.h:147:3: required from ‘T& earrayof<T, K>::add(const K&, const T&) [with T = int; K = estr]’
earrayof.h:260:21: required from ‘T& earrayof<T, K>::operator[](const K&) [with T = int; K = estr]’
logger.cpp:130:85: required from here
ebasicarray_dec.h:46:51: error: ‘push_back’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
inline T& add(const T& value) { push_back(value); return(vector<T>::back()); }
^
ebasicarray_dec.h:46:51: note: declarations in dependent base ‘std::vector<estr*, std::allocator<estr*> >’ are not found by unqualified lookup
ebasicarray_dec.h:46:51: note: use ‘this->push_back’ instead
ebasicarray_dec.h: In instantiation of ‘T& ebasicarray<T>::add(const T&) [with T = int*]’:
earrayof.h:148:3: required from ‘T& earrayof<T, K>::add(const K&, const T&) [with T = int; K = estr]’
earrayof.h:260:21: required from ‘T& earrayof<T, K>::operator[](const K&) [with T = int; K = estr]’
logger.cpp:130:85: required from here
ebasicarray_dec.h:46:51: error: ‘push_back’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ebasicarray_dec.h:46:51: note: declarations in dependent base ‘std::vector<int*, std::allocator<int*> >’ are not found by unqualified lookup
ebasicarray_dec.h:46:51: note: use ‘this->push_back’ instead
ebasicarray_dec.h: In instantiation of ‘T& ebasicarray<T>::add(const T&) [with T = CDebugLine]’:
ebasicarray.h:97:12: required from ‘size_t ebasicarray<T>::unserial(const estr&, size_t) [with T = CDebugLine; size_t = long unsigned int]’
logger.cpp:170:1: required from here
ebasicarray_dec.h:46:51: error: ‘push_back’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ebasicarray_dec.h:46:51: note: declarations in dependent base ‘std::vector<CDebugLine, std::allocator<CDebugLine> >’ are not found by unqualified lookup
ebasicarray_dec.h:46:51: note: use ‘this->push_back’ instead
ebasicarray_dec.h: In instantiation of ‘T& ebasicarray<T>::add(const T&) [with T = evar*]’:
ebasicarray.h:97:12: required from ‘size_t ebasicarray<T>::unserial(const estr&, size_t) [with T = evar*; size_t = long unsigned int]’
logger.cpp:170:1: required from here
ebasicarray_dec.h:46:51: error: ‘push_back’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
ebasicarray_dec.h:46:51: note: declarations in dependent base ‘std::vector<evar*, std::allocator<evar*> >’ are not found by unqualified lookup
ebasicarray_dec.h:46:51: note: use ‘this->push_back’ instead
make[3]: *** [logger.o] Error 1
make[3]: Leaving directory `/opt/hpc-clust-1.1.1/eutils'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/hpc-clust-1.1.1/eutils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/hpc-clust-1.1.1'
make: *** [all] Error 2
I have no idea what is wrong here, but i hope someone else has. Thank you!
checking whether the C++ compiler works... no
configure: error: in `/media/4tb/trichter/hpc-clust-1.1.1':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← #5 .
Though all the files in hpc-clust-1.1.1 have a time stamp : 2014,
some of the code may be a bit older, not usable with g++-4.7 or later.
( `g++-4.6´ may be usable, that I haven't tested.)
Not easy to specify a compiler in a manual,
may vary from one OS to another.
And: Could be the author used 'Scientific Linux SL6' for the code.
→ The SL6 default compiler is gcc/g++ version 4.4.7 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.