From owner-freebsd-ports@FreeBSD.ORG Fri Dec 26 20:38:56 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23D3720F for ; Fri, 26 Dec 2014 20:38:56 +0000 (UTC) Received: from spectrum.skysmurf.nl (spectrum.skysmurf.nl [82.95.125.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82B9766CF0 for ; Fri, 26 Dec 2014 20:38:55 +0000 (UTC) Received: from spectrum.skysmurf.nl (spectrum.skysmurf.nl [82.95.125.145]) by spectrum.skysmurf.nl (8.14.9/8.14.9) with SMTP id sBQKcqX6006699 for ; Fri, 26 Dec 2014 21:38:52 +0100 (CET) (envelope-from freebsd@skysmurf.nl) Received: by spectrum.skysmurf.nl (sSMTP sendmail emulation); Fri, 26 Dec 2014 21:38:52 +0100 Date: Fri, 26 Dec 2014 21:38:52 +0100 From: "A.J. 'Fonz' van Werven" To: FreeBSD ports mailing list Subject: [x11-wm/fvwm2] Build failure with Clang Message-ID: <20141226203851.GA833@spectrum.skysmurf.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline X-PGP-Key: http://www.skysmurf.nl/~fonz/fonz_pubkey.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 20:38:56 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi everybody, Before asking the maintainer and/or submitting a PR, perhaps someone here knows what's up with the following. Since I rebuilt several ports due to graphics/imlib having been deleted and graphics/png having been updated, now building x11-wm/fvwm2 with Clang fails with a linking error at FvwmGtk. But with lang/gcc48 it rather strangely builds just fine. Any thoughts? Thanks in advance. Relevant snippet: [start of output] clang -Wall -Wno-implicit-int -O2 -pipe -fno-color-diagnostics -fstack-pro= tector -fstack-protector -fno-strict-aliasing -I/usr/local/include -I/usr/l= ocal/include/libpng15 -I/usr/local/include/freetype2 -I/usr/local/include/l= ibpng16 -fstack-protector -o FvwmGtk FvwmGtk.o gtkpixmapmenuitem.o dialog.o= expand.o windowlist.o menu.o -L../../libs -L/usr/local/lib -lfvwm -lSM -lI= CE -lXext -lX11 -lm -L/usr/local/lib -L/usr/local/lib -lgtk -lgdk -lgmodul= e -lglib -lintl -lXi -lXext -lX11 -lm -lfontconfig -L/usr/local/lib -lfr= eetype =20 gtkpixmapmenuitem.o: In function `g_bit_nth_lsf': gtkpixmapmenuitem.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here gtkpixmapmenuitem.o: In function `g_bit_nth_msf': gtkpixmapmenuitem.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here gtkpixmapmenuitem.o: In function `g_bit_storage': gtkpixmapmenuitem.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here dialog.o: In function `g_bit_nth_lsf': dialog.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here dialog.o: In function `g_bit_nth_msf': dialog.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here dialog.o: In function `g_bit_storage': dialog.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here expand.o: In function `g_bit_nth_lsf': expand.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here expand.o: In function `g_bit_nth_msf': expand.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here expand.o: In function `g_bit_storage': expand.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here windowlist.o: In function `g_bit_nth_lsf': windowlist.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here windowlist.o: In function `g_bit_nth_msf': windowlist.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here windowlist.o: In function `g_bit_storage': windowlist.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here menu.o: In function `g_bit_nth_lsf': menu.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' FvwmGtk.o:FvwmGtk.c:(.text+0x0): first defined here menu.o: In function `g_bit_nth_msf': menu.c:(.text+0x30): multiple definition of `g_bit_nth_msf' FvwmGtk.o:FvwmGtk.c:(.text+0x30): first defined here menu.o: In function `g_bit_storage': menu.c:(.text+0x60): multiple definition of `g_bit_storage' FvwmGtk.o:FvwmGtk.c:(.text+0x60): first defined here clang: error: linker command failed with exit code 1 (use -v to see invocat= ion) Makefile:421: recipe for target 'FvwmGtk' failed gmake[3]: *** [FvwmGtk] Error 1 gmake[3]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5/modules/FvwmGtk' Makefile:369: recipe for target 'all-recursive' failed gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5/modules' Makefile:430: recipe for target 'all-recursive' failed gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory '/usr/ports/x11-wm/fvwm2/work/fvwm-2.6.5' Makefile:368: recipe for target 'all' failed gmake: *** [all] Error 2 =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** [do-build] Error code 1 Stop in /usr/ports/x11-wm/fvwm2. *** [build] Error code 1 Stop in /usr/ports/x11-wm/fvwm2. [end of output] Other information: # uname -a FreeBSD gargamel.skysmurf.nl 9.3-RELEASE-p6 FreeBSD 9.3-RELEASE-p6 #4 r2691= 63M: Sun Dec 21 13:31:52 CET 2014 root@gargamel.skysmurf.nl:/usr/obj/usr/sr= c/sys/SPECTRUM amd64 Ports tree revision: 375649 Relevant entries in /etc/make.conf: [start of file content] WITH_PKGNG=3Dyes WITHOUT_HAL=3Dyes CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp =2Eif ${.CURDIR:M/usr/ports*} CFLAGS+=3D-fstack-protector CXXFLAGS+=3D-fstack-protector =2Eendif [end of file content] Full build logs: http://www.skysmurf.nl/~fonz/tmp/fvwm2_default.txt (Clang from base) http://www.skysmurf.nl/~fonz/tmp/fvwm2_unsafe.txt (MAKE_JOBS_UNSAFE=3Dyes) http://www.skysmurf.nl/~fonz/tmp/fvwm2_gcc48.txt (successful gcc48 run) --=20 Imbibo, ergo sum. --jI8keyz6grp/JLjh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUncdbAAoJEAfP7gJTaCe8tBQP/0SdbN2qxyZmtWimdnVFQRiP VF43EigoFPeUiLMes1Cm1kpgOb8o4Ulngu5JUXjOyuH9y+i7BJYzYGBTUK3pnc0S Mz+a/NjEY3yRXPm++G9aHCHiWKDuumnBxVA9uFxDz1UvB+ULdX6dKXMryTXoutIi 0vq2PyNKfdpQwJtiopuc5faX6pP9nzkXnr+9jpCEz1WoWAJv2UJJTJXgqBX52qlf HLxko5/9H/d0hB0m9S083ncdWcLcbHAEQv3HliMZ/6P47YiIlfkZ6cfSwOy16H6+ IPwHx9tH3CvJinmZKAFeN6WqLPAltXSPHhgcG1fveQCNTfwxAoqkAceSajJoAqu+ u+MgJBGto2Rrv1zW5kUEBX5kNO19Qoh3Jf5hZpNoyvgPIjyGxmKNXD6IHvVYq5H8 ZfExRDmYgTqostSuf35ZIQ6Votf2awGmakZ1cgWQhqd8f368IU21uxeD8FTcra7k d2ACASnOqT96h4JmIcgRTr6o6opQEZUQwz7ovCD7UHx4q0eYsEnFcSf+O2Cfs9rq XDUT6GRpUA2e2NZx/3p2/4j0biJSzJbkMojKNk5YompC98zMdcRe04IfMLY+NSB7 X3WEBS6e5DpmOEjjZMVGHi3QM7h5ldY3q2S4EGXMsSq6ue04oobeFxh3tefudwTP 8/orgcc2gJyEQX5h8HQL =qvHi -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--