Trying to install or update the port devel/anjuta fails on several boxes running FreeBSD with CLANG compiled OS. Even change to the legacy gcc 4.2 doesn't resilve the problem, since compilation still fails. It seems that the python 2.7 installed (and also compiled with CLANG) has problems. The belown shown errors are gathered on FreeBSD 9.0-BETA3/amd64 since it is well known that 10.0 has problems compiling ports correctly. USING gcc4.2 (legacy system compiler): -------------------------------------- Making all in language-support-python gmake[3]: Entering directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/language-support-python' CC plugin.lo plugin.c: In function 'register_stock_icons': plugin.c:1198: warning: unused variable 'icon_set' plugin.c:1198: warning: unused variable 'icon_factory' plugin.c: In function 'get_line_auto_indentation': plugin.c:669: warning: 'point_ch' may be used uninitialized in this function plugin.c:669: note: 'point_ch' was declared here CC python-assist.lo CC python-utils.lo CCLD libpython_plugin.la GEN python-plugin-properties.schemas /usr/local/bin/intltool-merge ../../po python-plugin.plugin.in python-plugin.plugin -d -u -c ../../po/.intltool-merge-cache Found cached translation database Merging translations into python-plugin.plugin. gmake[3]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/language-support-python' Making all in python-loader gmake[3]: Entering directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/python-loader' CC plugin.lo cc1: error: invalid option argument '-OPT:Olimit=0' gmake[3]: *** [plugin.lo] Error 1 gmake[3]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/python-loader' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/devel/anjuta. *** Error code 1 Stop in /usr/ports/devel/anjuta. USING CLANG: ------------- gmake[6]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/anjuta-tags' gmake[5]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/anjuta-tags' Making all in images gmake[5]: Entering directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/images' gmake[5]: Nothing to be done for `all'. gmake[5]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/images' Making all in benchmark gmake[5]: Entering directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/benchmark' Making all in symbol-db gmake[6]: Entering directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/benchmark/symbol-db' CC benchmark.o CCLD benchmark *** Warning: Linking the executable benchmark against the loadable module *** libanjuta-symbol-db.so is not portable! ./../.libs/libanjuta-symbol-db.so: undefined reference to `sdb_engine_get_statement_by_query_id' ./../.libs/libanjuta-symbol-db.so: undefined reference to `sdb_engine_get_tuple_id_by_unique_name' clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[6]: *** [benchmark] Error 1 gmake[6]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/benchmark/symbol-db' gmake[5]: *** [all-recursive] Error 1 gmake[5]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db/benchmark' gmake[4]: *** [all-recursive] Error 1 gmake[4]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins/symbol-db' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1/plugins' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/anjuta/work/anjuta-2.32.1.1' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/devel/anjuta. *** Error code 1 Stop in /usr/ports/devel/anjuta.
Responsible Changed From-To: freebsd-ports-bugs->gnome Over to maintainer (via the GNATS Auto Assign Tool)
On both FreebSD 9.0-RELEASE/amd64 and FreeBSD 10.0-CURRENT/amd64 -r229219 the problem persists. Trying to recompile every pyhton module and python itself doesn't help. Bot systems in question has been compiled with CLANG.
Is there any chance to get a working ANJUTA on FBSD 9/10 in due time? Regards, oh
(Note I'm not a member of the gnome@ team.) While I can reproduce the build failure with clang (possibly related to the "not portable" warnings your're seeing), building anjuta with gcc works fine for me. Can you post the command lines and relevant configuration files (like make.conf) that you've used to attempt a build with GCC? Chances are you haven't thoroughly switched to GCC. For me, using portmaster's -m option wouldn't work. Note that you can pass V=1 as make argument to get the full compiler command lines, rather than the short "CC" "CCLD" lines, to see what's actually happening.
Today I faced the same issue when was trying to install seamonkey from ports using clang as compiler . seamonkey depends on textproc/py-libxml2 which emits the same error during the configure stage. Please try attached patch for land/python27 ( just place this patch into files subdirectory ) and reinstall python27 It fixes the issue with 'cc1: error: invalid option argument '-OPT:Olimit=0' for me. It is rather hack of course.
Responsible Changed From-To: gnome->python It looks like it's python issue?
Responsible Changed From-To: python->freebsd-python Canonicalize assignment.
Responsible Changed From-To: freebsd-python->mva I'll take it.
Author: mva Date: Mon Jan 14 17:56:47 2013 New Revision: 310398 URL: http://svnweb.freebsd.org/changeset/ports/310398 Log: - Fix the -OPT:Olimit=X detection for clang, which could pollute the output of python27-config --cflags PR: ports/172859 ports/161494 ports/174525 Submitted by: Oleg Nauman <oleg.nauman@gmail.com> Added: head/lang/python27/files/patch-configure (contents, props changed) Modified: head/lang/python27/Makefile Modified: head/lang/python27/Makefile ============================================================================== --- head/lang/python27/Makefile Mon Jan 14 17:55:58 2013 (r310397) +++ head/lang/python27/Makefile Mon Jan 14 17:56:47 2013 (r310398) @@ -3,7 +3,7 @@ PORTNAME= python27 PORTVERSION= 2.7.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Added: head/lang/python27/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/python27/files/patch-configure Mon Jan 14 17:56:47 2013 (r310398) @@ -0,0 +1,13 @@ +--- configure.orig 2013-01-14 13:38:53.000000000 +0000 ++++ configure 2013-01-14 13:39:14.000000000 +0000 +@@ -5642,8 +5642,8 @@ + BASECFLAGS="$BASECFLAGS $ac_arch_flags" + fi + +-# disable check for icc since it seems to pass, but generates a warning +-if test "$CC" = icc ++# disable check for icc and clang since it seems to pass, but generates a warning ++if test "$CC" = icc -o "$CC" = clang + then + ac_cv_opt_olimit_ok=no + fi _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed The fix from Oleg Nauman has been committed. Please check, if this solves the issue for you. If there are still issues, I will reopen the PR. Thanks!