On Sun, Jan 08 2023, Jeremie Courreges-Anglas <j...@wxcvbn.org> wrote: > On Sun, Jan 08 2023, Jérémie Courrèges-Anglas <j...@wxcvbn.org> wrote: >> Bulk build on pbuild-amd64.wxcvbn.org >> >> Started : Tue Jan 3 02:26:11 CET 2023 >> Finished: Sat Jan 7 01:45:02 CET 2023 >> Duration: 3 Days 23 hours 19 minutes >> >> Built using OpenBSD 7.2-current (GENERIC.MP) #2: Fri Dec 30 02:11:28 CET 2022 >> >> Built 10508 packages >> >> Number of packages built each day: >> Jan 3: 3984 >> Jan 4: 1693 >> Jan 5: 1731 >> Jan 6: 3094 >> Jan 7: 6 >> >> >> Critical path missing pkgs: >> https://wxcvbn.org/~jca/build-failures/amd64-clang/2023-01-03/summary.txt >> >> Build failures: 132 > > Summary of the warnings involved in the failures: > > -Wint-conversion: 98 > -Werror,-Wstrict-prototypes: 8 > -Werror,-Wunused-but-set-variable: 1 > -Werror,-Wbitwise-instead-of-logical: 1 > -Werror,-Winvalid-utf8: 1 > -Werror,-Wgnu-null-pointer-arithmetic: 1 > -Werror,-Wdocumentation: 1 > -Werror,-Wdeprecated-non-prototype: 1 > > Errors excerpt: > >> https://wxcvbn.org/~jca/build-failures/amd64-clang/2023-01-03/cad/magic.txt > [patch] > DBpaint.c:1542:37: error: incompatible pointer to integer conversion passing > 'DiagInfo *' (aka 'struct diag_info *') to parameter of type 'ClientData' > (aka 'unsigned long') [-Wint-conversion] > newType = DBDiagonalProc(oldType, &dinfo); > ^~~~~~ >
Fix fatal errors with clang 15. ok? llvm 15 test material: git branch: https://github.com/jcourreges/openbsd-src/tree/llvm15-6 amd64 snaps: https://pbuild-amd64.wxcvbn.org/pub/OpenBSD/snapshots/amd64/ Index: Makefile =================================================================== RCS file: /home/cvs/ports/cad/magic/Makefile,v retrieving revision 1.9 diff -u -p -r1.9 Makefile --- Makefile 6 Dec 2022 19:39:23 -0000 1.9 +++ Makefile 10 Jan 2023 13:16:42 -0000 @@ -1,5 +1,6 @@ COMMENT = interactive system for VLSI circuit layouts DISTNAME = magic-8.3.340 +REVISION = 0 EXTRACT_SUFX = .tgz CATEGORIES = cad Index: patches/patch-database_DBpaint_c =================================================================== RCS file: patches/patch-database_DBpaint_c diff -N patches/patch-database_DBpaint_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-database_DBpaint_c 10 Jan 2023 13:16:20 -0000 @@ -0,0 +1,14 @@ +Fix with clang 15: use a cast to allow invalid pointer to integer conversion. + +Index: database/DBpaint.c +--- database/DBpaint.c.orig ++++ database/DBpaint.c +@@ -1539,7 +1539,7 @@ DBNMPaintPlane0(plane, exacttype, area, resultTbl, und + } + + oldType = TiGetTypeExact(tile); +- newType = DBDiagonalProc(oldType, &dinfo); ++ newType = DBDiagonalProc(oldType, (uintptr_t)&dinfo); + + /* Ignore tiles that don't change type. */ + Index: patches/patch-drc_DRCtech_c =================================================================== RCS file: patches/patch-drc_DRCtech_c diff -N patches/patch-drc_DRCtech_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-drc_DRCtech_c 10 Jan 2023 13:16:20 -0000 @@ -0,0 +1,15 @@ +Fix with clang 15: fix invalid pointer to integer conversion. + +Index: drc/DRCtech.c +--- drc/DRCtech.c.orig ++++ drc/DRCtech.c +@@ -1968,7 +1968,8 @@ drcMaskSpacing(set1, set2, pmask1, pmask2, wwidth, dis + TileTypeBitMask *set1, *set2; + PlaneMask pmask1, pmask2; + int wwidth, distance; +- char *adjacency, *why; ++ char *adjacency; ++ int why; + bool widerule; + int runlength; + bool multiplane; -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
signature.asc
Description: PGP signature