This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem with GCC in-tree plugin build (autoconf, libtool).
- From: Oleg Ogurtsov <o dot ogurtsov at samsung dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: Vyacheslav Barinov <v dot barinov at samsung dot com>
- Date: Thu, 12 Jul 2018 16:47:49 +0300
- Subject: Problem with GCC in-tree plugin build (autoconf, libtool).
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180712134803euoutp02eb86b32603fb2e5c937e00e4396773aa~Aoywnn_r80659506595euoutp02W
- References: <CGME20180712134801eucas1p1839ddb06805abb7a23b843b5a199fd84@eucas1p1.samsung.com>
Hello.
I try to build a plug-in written in C++ inside GCC tree, but the build is
interrupted with an error:
'libtool: error: unrecognised option: '-DHAVE_CONFIG_H''.
The launch string begins with
'/bin/sh ../libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I.'.
Apparently libtool doesn't add compiler name to line (xg++).
The libtool file has a line with language specific compiler for CXX has xgcc,
instead of xg++:
'CC="/home/abuild/rpmbuild/BUILD/gcc-6.2.1/obj/./gcc/xgcc -shared-libgcc -B/home/abuild/rpmbuild/BUILD/gcc-6.2.1/obj/./gcc -nostdinc++
-L/home/abuild/rpmbuild/BUILD/gcc-6.2.1/obj/x86_64-tizen-linux-gnu/libstdc++-v3/src
-L/home/abuild/rpmbuild/BUILD/gcc-6.2.1/obj/x86_64-tizen-linux-gnu/libstdc++-v3/src/.libs -L/home/abuild/rpmbuild/BUILD/gcc-6.2.1/obj/x86_64-tizen-linux-gnu/libstdc++-v3/libsupc++/.libs -B/usr/x86_64-tizen-linux-gnu/bin/ -B/usr/x86_64-tizen-linux-gnu/lib/ -isystem /usr/x86_64-tizen-linux-gnu/include -isystem /usr/x86_64-tizen-linux-gnu/sys-include "'
The configure.ac has AC_PROG_CXX, and building the plugin separately is successful.
Can anybody tell what am I missing?
--
Best regards,
Oleg Ogurtsov.