Re: clang/amd64 fallout
On Fri Jul 28, 2017 at 07:09:57PM -, Christian Weisgerber wrote: > Here's the corresponding list of bulk build failures on amd64. > I've uploaded the logs to > http://build-failures.rhaalovely.net/amd64/2017-07-27/ > > audio/festival/core > devel/arm-none-eabi/gcc-linaro > devel/glog > devel/mico > devel/mono-addins > devel/p5-Alien-wxWidgets > devel/stp > devel/ti-msp430gcc > devel/xulrunner/24 > editors/TeXmacs > emulators/emulationstation Should be fixed with following diff on amd64 and i386: https://marc.info/?l=openbsd-ports=150326477516663=2
clang/amd64 fallout (2017-08-10)
Here's the list of ports still broken on amd64 due to the clang switch: audio/festival/core devel/glog devel/mico devel/stp devel/ti-msp430gcc editors/TeXmacs emulators/emulationstation games/frozen-bubble games/vacuum graphics/simgear multimedia/avidemux security/encfs sysutils/memtest86+ Build logs at http://build-failures.rhaalovely.net/amd64/2017-08-10/ (There are also logs for a few additional build failures there, unrelated to clang.) -- Christian "naddy" Weisgerber na...@mips.inka.de
Re: clang/amd64 fallout (2017-08-03)
On 08/06/17 12:21, Stuart Henderson wrote: > On 2017/08/04 16:09, Christian Weisgerber wrote: >> Here's the list of ports still broken on amd64 due to the clang switch: >> ... >> telephony/asterisk > (fixed) telephony/asterisk-g729 fails amd64 /usr/bin/make all-am /usr/bin/libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include -DG72X_ASTERISK=130 -I"/usr/local/include" -DG72X_BCG729-Wall -D_GNU_SOURCE -DG72X_9 -O2 -pipe -MT codec_g729_la-codec_g72x.lo -MD -MP -MF .deps/codec_g729_la-codec _g72x.Tpo -c -o codec_g729_la-codec_g72x.lo `test -f 'codec_g72x.c' || echo './'`codec_g72x.c cc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/local/include -DG72X_ASTERISK=130 -I/usr/local/include -DG72X_BCG729 -Wall -D_GNU_SOURCE -DG72X_9 -O2 -pipe -MT codec_g729_la-codec_g72x.lo -MD -MP -MF .deps/codec_g729_la-codec_g72x.Tpo -c codec_g72x.c -fPIC -DPIC -o .libs/codec _g729_la-codec_g72x.o In file included from codec_g72x.c:25: In file included from /usr/local/include/asterisk/module.h:39: /usr/local/include/asterisk/utils.h:1049:15: error: blocks support disabled - compile with -fblocks or pick a deployment target that supports them typedef void (^_raii_cleanup_block_t)(void); ^ codec_g72x.c:694:133: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, G72X_DESC, .load = load_module, .unload = unload_module, .buildopt_sum = ""); ^~ /usr/local/include/asterisk/module.h:445:3: note: expanded from macro 'AST_MODULE_INFO' fields \ ^~ codec_g72x.c:694:5: note: previous initialization is here AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, G72X_DESC, .load = load_module, .unload = unload_module, .buildopt_sum = ""); ^~~ /usr/local/include/asterisk/module.h:444:19: note: expanded from macro 'AST_MODULE_INFO' .buildopt_sum = AST_BUILDOPT_SUM, \ ^~~~ /usr/local/include/asterisk/buildopts.h:7:26: note: expanded from macro 'AST_BUILDOPT_SUM' #define AST_BUILDOPT_SUM "da6642af068ee5e6490c5b1d2cc1d238" Looks to be same problem hit on telephony/asterisk as using the include files from asterisk.
Re: clang/amd64 fallout (2017-08-03)
On 2017/08/04 16:09, Christian Weisgerber wrote: > Here's the list of ports still broken on amd64 due to the clang switch: > > audio/festival/core > devel/glog > devel/mico > devel/stp > devel/ti-msp430gcc > editors/TeXmacs > emulators/emulationstation > games/frozen-bubble > games/vacuum > graphics/simgear > multimedia/avidemux > net/isc-dhcp (isc-dhcp builds on i386) > security/encfs > sysutils/memtest86+ > telephony/asterisk (fixed) > > Build logs at > http://build-failures.rhaalovely.net/amd64/2017-08-03/ > > -- > Christian "naddy" Weisgerber na...@mips.inka.de > And to keep things in one place, here are the additional failures on i386: devel/mono-addins editors/libreoffice emulators/advancemame emulators/advancemess emulators/dgen-sdl games/allegro games/openarena games/prboom graphics/DevIL lang/STk lang/jamvm lang/oo2c lang/smlnj multimedia/transcode net/openafs security/dsniff security/scanlogd shells/ksh93 sysutils/grub www/mongrel2 x11/e17/elementary x11/kde4/cantor x11/ogre and net/wireshark (both i386/amd64).
clang/amd64 fallout (2017-08-03)
Here's the list of ports still broken on amd64 due to the clang switch: audio/festival/core devel/glog devel/mico devel/stp devel/ti-msp430gcc editors/TeXmacs emulators/emulationstation games/frozen-bubble games/vacuum graphics/simgear multimedia/avidemux net/isc-dhcp security/encfs sysutils/memtest86+ telephony/asterisk Build logs at http://build-failures.rhaalovely.net/amd64/2017-08-03/ -- Christian "naddy" Weisgerber na...@mips.inka.de
clang/amd64 fallout
Here's the corresponding list of bulk build failures on amd64. I've uploaded the logs to http://build-failures.rhaalovely.net/amd64/2017-07-27/ audio/festival/core devel/arm-none-eabi/gcc-linaro devel/glog devel/mico devel/mono-addins devel/p5-Alien-wxWidgets devel/stp devel/ti-msp430gcc devel/xulrunner/24 editors/TeXmacs emulators/emulationstation emulators/mednafen emulators/openmsx games/frozen-bubble games/vacuum graphics/simgear lang/pfe misc/reprepro multimedia/avidemux net/argus net/isc-bind,no_ssl net/isc-dhcp net/openvpn-auth-ldap security/encfs sysutils/memtest86+ telephony/asterisk,imap x11/kde/accessibility3 -- Christian "naddy" Weisgerber na...@mips.inka.de
clang/amd64 fallout: net/argus
net/argus fails to build with clang on amd64: cc -O2 -pipe -I. -I./../include -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc\" -o ../bin/argus argus.o ArgusModeler.o ArgusSource.o ArgusUtil.o ArgusOutput.o ArgusUdp.o ArgusTcp.o ArgusIcmp.o ArgusIgmp.o ArgusEsp.o ArgusArp.o ArgusFrag.o ArgusUdt.o ArgusLcp.o ArgusIsis.o ArgusAuth.o Argus802.11.o ArgusApp.o ArgusEvents.o ArgusNetflow.o ArgusSflow.o -lpcap-lm -lz ../lib/argus_common.a -lm argus.o: In function `ArgusComplete': argus.c:(.text+0x2d1e): warning: warning: sprintf() is often misused, please use snprintf() /usr/bin/ld: ../lib/argus_common.a(argus_filter.o): relocation R_X86_64_PC32 against `blocks' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value cc: error: linker command failed with exit code 1 (use -v to see invocation) argus embeds a copy of pcap code for some purpose, but also links against libpcap. Both code bases use the same global symbols (`blocks', `edges', etc.). Wait, that's the error kettenis@'s fixed in binutils. What's going on here? The problem is the linking order. The shared library needs to come later. Patch below. This builds, but I have no idea if it works. On the other hand, I don't see why it shouldn't. Testers? ok? Index: Makefile === RCS file: /cvs/ports/net/argus/Makefile,v retrieving revision 1.21 diff -u -p -r1.21 Makefile --- Makefile12 Aug 2016 21:38:52 - 1.21 +++ Makefile27 Jul 2017 20:43:40 - @@ -3,6 +3,7 @@ COMMENT = Audit Record Generation and Utilization System DISTNAME = argus-3.0.8.2 +REVISION = 0 CATEGORIES = net HOMEPAGE = http://qosient.com/argus/ Index: patches/patch-argus_Makefile_in === RCS file: /cvs/ports/net/argus/patches/patch-argus_Makefile_in,v retrieving revision 1.2 diff -u -p -r1.2 patch-argus_Makefile_in --- patches/patch-argus_Makefile_in 8 Jul 2012 19:20:58 - 1.2 +++ patches/patch-argus_Makefile_in 27 Jul 2017 20:43:40 - @@ -1,6 +1,7 @@ $OpenBSD: patch-argus_Makefile_in,v 1.2 2012/07/08 19:20:58 steven Exp $ argus/Makefile.in.orig Wed Jan 4 01:15:19 2012 -+++ argus/Makefile.in Wed Jun 27 22:27:06 2012 +Index: argus/Makefile.in +--- argus/Makefile.in.orig argus/Makefile.in @@ -19,6 +19,7 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -18,3 +19,12 @@ $OpenBSD: patch-argus_Makefile_in,v 1.2 #DEFS = -DARGUSPERFMETRICS=1 @DEFS@ +@@ -84,7 +85,7 @@ PROG = @INSTALL_BIN@/argus + + OBJ = $(SRC:.c=.o) + +-LIB = @LIBS@ @V_THREADS@ $(WRAPLIBS) $(SASLLIBS) $(COMPATLIB) ../lib/argus_common.a -lm ++LIB = ../lib/argus_common.a @LIBS@ @V_THREADS@ $(WRAPLIBS) $(SASLLIBS) $(COMPATLIB) -lm + + HDR = pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \ + ethertype.h gencode.h gnuc.h -- Christian "naddy" Weisgerber na...@mips.inka.de
clang/amd64 fallout: sysutils/memtest86+
sysutils/memtest86+ fails to build with clang. That can be hacked around, but the resulting memtest crashes. (For the curious, I'll append the required changes below.) memtest86+ builds with gcc4.9, but again, the resulting executable crashes. We could use CC=/usr/bin/gcc, but that will likely go away. Index: patches/patch-Makefile === RCS file: /cvs/ports/sysutils/memtest86+/patches/patch-Makefile,v retrieving revision 1.6 diff -u -p -r1.6 patch-Makefile --- patches/patch-Makefile 31 Mar 2015 18:29:51 - 1.6 +++ patches/patch-Makefile 27 Jul 2017 18:15:00 - @@ -1,7 +1,8 @@ $OpenBSD: patch-Makefile,v 1.6 2015/03/31 18:29:51 pascal Exp $ $RuOBSD: patch-Makefile,v 1.3 2009/02/07 10:28:03 form Exp $ Makefile.orig Sun Jan 23 19:11:04 2011 -+++ Makefile Tue Mar 31 17:06:38 2015 +Index: Makefile +--- Makefile.orig Makefile @@ -6,33 +6,47 @@ # # Path for the floppy disk device @@ -72,7 +73,7 @@ $RuOBSD: patch-Makefile,v 1.3 2009/02/07 test.o: test.c - $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding test.c -+ $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-pie test.c ++ $(CC) -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fno-stack-protector -fno-pie test.c clean: rm -f *.o *.s *.iso memtest.bin memtest memtest_shared memtest_shared.bin Index: patches/patch-io_h === RCS file: patches/patch-io_h diff -N patches/patch-io_h --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-io_h 27 Jul 2017 18:15:00 - @@ -0,0 +1,32 @@ +$OpenBSD$ + +Index: io.h +--- io.h.orig io.h +@@ -31,7 +31,7 @@ + */ + + #define __OUT1(s,x) \ +-extern inline void __out##s(unsigned x value, unsigned short port) { ++static inline void __out##s(unsigned x value, unsigned short port) { + + #define __OUT2(s,s1,s2) \ + __asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1" +@@ -43,7 +43,7 @@ __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a" (value), "d" + __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; } + + #define __IN1(s) \ +-extern inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; ++static inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v; + + #define __IN2(s,s1,s2) \ + __asm__ __volatile__ ("in" #s " %" s2 "1,%" s1 "0" +@@ -55,7 +55,7 @@ __IN1(s##_p) __IN2(s,s1,"w") : "=a" (_v) : "d" (port) + __IN1(s##c_p) __IN2(s,s1,"") : "=a" (_v) : "id" (port) ,##i ); SLOW_DOWN_IO; return _v; } + + #define __OUTS(s) \ +-extern inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ ++static inline void outs##s(unsigned short port, const void * addr, unsigned long count) \ + { __asm__ __volatile__ ("cld ; rep ; outs" #s \ + : "=S" (addr), "=c" (count) : "d" (port),"0" (addr),"1" (count)); } + Index: patches/patch-main_c === RCS file: patches/patch-main_c diff -N patches/patch-main_c --- /dev/null 1 Jan 1970 00:00:00 - +++ patches/patch-main_c27 Jul 2017 18:15:00 - @@ -0,0 +1,13 @@ +$OpenBSD$ + +Index: main.c +--- main.c.orig main.c +@@ -111,6 +111,7 @@ static void __run_at(unsigned long addr) + /* Copy memtest86+ code */ + memmove((void *)addr, &_start, _end - _start); + /* Jump to the start address */ ++dummy:p = & + p = (ulong *)(addr + startup_32 - _start); + goto *p; + } -- Christian "naddy" Weisgerber na...@mips.inka.de