problems with cstring and string
Hi I have tried to implement the newest CLN version (cln-1.3.4) and ginac version (ginac-1.7.2). i am using gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6) (but also had the same problem with newer compilers) uname -a renders Linux 2.6.32-642.11.1.el6.x86_64 #1 SMP Tue Nov 15 14:13:21 CST 2016 x86_64 x86_64 x86_64 GNU/Linux CLN works, but for ginac i get checking readline/readline.h usability... no checking readline/readline.h presence... yes configure: WARNING: readline/readline.h: present but cannot be compiled configure: WARNING: readline/readline.h: check for missing prerequisite headers? configure: WARNING: readline/readline.h: see the Autoconf documentation configure: WARNING: readline/readline.h: section "Present But Cannot Be Compiled" configure: WARNING: readline/readline.h: proceeding with the compiler's result configure: WARNING: ## ---------------------------------- ## configure: WARNING: ## Report this to ginac-list@ginac.de ## configure: WARNING: ## ---------------------------------- ## checking for readline/readline.h... no checking readline/history.h usability... no checking readline/history.h presence... yes configure: WARNING: readline/history.h: present but cannot be compiled configure: WARNING: readline/history.h: check for missing prerequisite headers? configure: WARNING: readline/history.h: see the Autoconf documentation configure: WARNING: readline/history.h: section "Present But Cannot Be Compiled" configure: WARNING: readline/history.h: proceeding with the compiler's result configure: WARNING: ## ---------------------------------- ## configure: WARNING: ## Report this to ginac-list@ginac.de ## configure: WARNING: ## ---------------------------------- ## checking for readline/history.h... no and, when i ignore this and do make anyways, i have In file included from /home/trobens/programs/cln/install/include/cln/string.h:9:0, from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:42, from class_info.h:27, from registrar.h:26, from basic.h:29, from ex.h:26, from expair.h:26, from expairseq.h:26, from add.h:26, from add.cpp:23: /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:75:11: error: ‘::memchr’ has not been declared using ::memchr; ^ /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:76:11: error: ‘::memcmp’ has not been declared using ::memcmp; ...etc ... which then leads to a stop in the compilation. i have tried various ways around this, if someone has a quick solution please let me know the same mistake occurs with earlier ginac versions and, as stated, with newer gccs (up to 6.1) ?? Thanks Best Tania Robens ------------------------------------------------------------------------- Dr. habil. Tania Robens Michigan State University Department of Physics and Astronomy 567 Wilson Road East Lansing, MI 48824 USA
On 02/09/2017 03:51 AM, Tania Robens wrote:
checking readline/readline.h usability... no checking readline/readline.h presence... yes configure: WARNING: readline/readline.h: present but cannot be compiled [...] checking readline/history.h usability... no checking readline/history.h presence... yes configure: WARNING: readline/history.h: present but cannot be compiled
Check config.log to learn why those two header files cannot be compiled.
and, when i ignore this and do make anyways, i have
In file included from /home/trobens/programs/cln/install/include/cln/string.h:9:0, from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:42, from class_info.h:27, from registrar.h:26, from basic.h:29, from ex.h:26, from expair.h:26, from expairseq.h:26, from add.h:26, from add.cpp:23: /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:75:11: error: ‘::memchr’ has not been declared using ::memchr; ^
I've no idea why CLN files including <cstring> would compile while GiNaC files #including the same file don't. It seems like you're experiencing some weird header mix-up. Can't you find some expert to inspect your problem locally? Alternatively, you may try to install a pre-built RPM file. Check out <https://www.rpmfind.net/linux/rpm2html/search.php?query=GiNaC-devel> for a start. Luck! -richy. -- Richard B. Kreckel <http://in.terlu.de/~kreckel/>
On Thu, 9 Feb 2017, Richard B. Kreckel wrote:
On 02/09/2017 03:51 AM, Tania Robens wrote:
checking readline/readline.h usability... no checking readline/readline.h presence... yes configure: WARNING: readline/readline.h: present but cannot be compiled [...] checking readline/history.h usability... no checking readline/history.h presence... yes configure: WARNING: readline/history.h: present but cannot be compiled
Check config.log to learn why those two header files cannot be compiled.
hi i played around w this but wo any luck... but as the INSTALL told me to ignore this i did the real problem is with the library/ cstring etc below well i dont think there are local experts around (only people who experienced similar problems, so far) what compiler would you recommend ? i tried several
and, when i ignore this and do make anyways, i have
In file included from /home/trobens/programs/cln/install/include/cln/string.h:9:0, from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:42, from class_info.h:27, from registrar.h:26, from basic.h:29, from ex.h:26, from expair.h:26, from expairseq.h:26, from add.h:26, from add.cpp:23: /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:75:11: error: ‘::memchr’ has not been declared using ::memchr; ^
I've no idea why CLN files including <cstring> would compile while GiNaC files #including the same file don't. It seems like you're experiencing some weird header mix-up. Can't you find some expert to inspect your problem locally? Alternatively, you may try to install a pre-built RPM file. Check out <https://www.rpmfind.net/linux/rpm2html/search.php?query=GiNaC-devel> for a start.
Luck! -richy. -- Richard B. Kreckel <http://in.terlu.de/~kreckel/> _______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
------------------------------------------------------------------------- Dr. habil. Tania Robens Michigan State University Department of Physics and Astronomy 567 Wilson Road East Lansing, MI 48824 USA
On 09.02.2017 03:51, Tania Robens wrote:
In file included from /home/trobens/programs/cln/install/include/cln/string.h:9:0, from /opt/rh/devtoolset-3/root/usr/include/c++/4.9.2/cstring:42, from class_info.h:27, from registrar.h:26, from basic.h:29, from ex.h:26, from expair.h:26, from expairseq.h:26, from add.h:26, from add.cpp:23:
This looks suspicious. The ginac file "class_info.h" includes the standard C++ library file "cstring" which includes the CLN file "string.h". In the standard C libray there is also a file by the name "string.h" which is what "cstring" wants to include. I think the problem is the order of your include pathes. The pathes to the standard libraries should go before any other libraries (in that case CLN). Mario
participants (3)
-
Mario Prausa
-
Richard B. Kreckel
-
Tania Robens