head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.10 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.8 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.6 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.4 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.2 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.3.0.6 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.4 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.2 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.2.0.8 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.6 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.4 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.2 pkgsrc-2023Q2-base:1.2; locks; strict; comment @# @; 1.4 date 2025.01.07.19.55.52; author riastradh; state Exp; branches; next 1.3; commitid eZtTmYN8MbjVGAEF; 1.3 date 2024.06.07.10.28.55; author adam; state Exp; branches 1.3.6.1; next 1.2; commitid K8jVVOY6eizDq2dF; 1.2 date 2023.06.03.13.22.04; author riastradh; state Exp; branches; next 1.1; commitid TCNHBncnFZ6GhvrE; 1.1 date 2023.05.03.20.03.09; author wiz; state Exp; branches; next ; commitid VbxB6cf1aDN3vynE; 1.3.6.1 date 2025.01.10.17.08.36; author maya; state Exp; branches; next ; commitid gh1YwmcfvXkyFXEF; desc @@ 1.4 log @lang/gcc13*: Fix LINK_LIBGCC_SPEC. PR pkg/58963: gcc: LINK_LIBGCC_SPEC snafu PR pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace @ text @# $NetBSD: Makefile,v 1.3 2024/06/07 10:28:55 adam Exp $ PKGNAME= ${GCC_PKGNAME}-${GCC13_DIST_VERSION} ## When bumping the PKGREVISION of this package the PKGREVISION of ## lang/gcc13-libs needs to be bumped to be at least 1 more than the ## PKGREVISION of this package! PKGREVISION= 1 COMMENT= The GNU Compiler Collection (GCC) - 13.0 Release Series LANGS= c .include "Makefile.common" # In some cases LINKER_RPATH_FLAG needs a trailing space. LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} ## The Library rpath to use in end programs. LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*} # The "-static-libstdc++ -static-libgcc" flags are normally added to the # boot-ldflags by configure but because we are supply the boot-ldflags # we mash supply them. BOOT_LDFLAGS= -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET} # Needed on Darwin when LDFLAGS point to a SDK BOOT_LDFLAGS+= ${LDFLAGS:M-Wl,-syslibroot*} # GCC does not understand this option; remove it, or stage build will fail BUILDLINK_TRANSFORM+= rm:-stdlib=libc++ # Disable fixincludes on SmartOS, header changes result in broken includes # being generated, see https://github.com/joyent/pkgsrc-legacy/issues/270 .if ${OS_VARIANT} == "SmartOS" SUBST_CLASSES+= fixinc SUBST_STAGE.fixinc= pre-configure SUBST_FILES.fixinc= gcc/Makefile.in SUBST_SED.fixinc= -e "s,\./fixinc.sh,-c true," .endif .if !empty(MACHINE_PLATFORM:MNetBSD-*-*) # on NetBSD, use the native SSP code in libc CONFIGURE_ARGS+= --disable-libssp # Match base libstdc++ major SUBST_CLASSES+= libstdc SUBST_STAGE.libstdc= pre-configure SUBST_FILES.libstdc= libstdc++-v3/configure SUBST_MESSAGE.libstdc= Bumping libstdc++ major to 7 SUBST_SED.libstdc= -e 's,libtool_VERSION=6:,libtool_VERSION=7:,g' .else CONFIGURE_ARGS+= --enable-libssp .endif ## For target librarys and libjava programs. CONFIGURE_ENV+= LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q} .if ${USE_CROSS_COMPILE:U:tl} == "yes" CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CONFIGURE_ENV+= CXX_FOR_BUILD=${NATIVE_CXX:Q} .endif CONFIGURE_ARGS+= --enable-languages=${LANGS:Q} CONFIGURE_ARGS+= --enable-shared CTF_FILES_SKIP+= */gengtype # CPU limit exceeded TEST_TARGET= -j ${MAKE_JOBS} -k check || ${TRUE} TEST_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu post-test: ${RUN} cd ${WRKSRC} && cd ${OBJDIR} && \ ${SHELL} ${WRKSRC}/contrib/test_summary >${WRKDIR}/test_summary.log ${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log" post-install: ${TEST} -f ${DESTDIR}${GCC_PREFIX}/bin/cc || \ ( cd ${DESTDIR}${GCC_PREFIX}/bin ; ${LN} -f gcc cc ) .if !empty(MACHINE_PLATFORM:MSunOS-*-*86*) && ${OS_VERSION} != "5.11" ${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m32 || ${TRUE} ${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m64 || ${TRUE} .endif GENERATE_PLIST+= \ cd ${DESTDIR}${PREFIX} && \ ${FIND} ${GCC_SUBPREFIX} \( -type f -o -type l \) -print | ${SORT}; .include "../../mk/bsd.pkg.mk" @ 1.3 log @gcc13: updated to 13.3.0 GCC 13 Caveats OpenMP offloading to Intel MIC has been removed. The support for the cr16-elf, tilegx*-linux, tilepro*-linux, hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11* and m32c-rtems configurations has been removed. Support for Solaris 11.3 (*-*-solaris2.11.3) has been declared obsolete. The next release of GCC will have corresponding code permanently removed. Details can be found in the announcement. Support for emitting the STABS debugging format (including the -gstabs and -gxcoff options) has been removed. (This means the dbx debugger is no longer supported, either.) Legacy debug info compression option -gz=zlib-gnu was removed and the option is ignored right now. -Warray-bounds=2 will no longer issue warnings for out of bounds accesses to trailing struct members of one-element array type anymore. Instead it diagnoses accesses to trailing arrays according to -fstrict-flex-arrays. -fanalyzer is still only suitable for analyzing C code. In particular, using it on C++ is unlikely to give meaningful output. In the arm port, support for the iWMMXt extensions, enabled through -mcpu=iwmmxt, has been deprecated and will be removed in a future release. This includes support for the iWMMXt built-in functions. For C++, construction of the global iostream objects std::cout, std::cin, etc. is now done inside the standard library, instead of in every source file that includes the header. This change improves the start-up performance of C++ programs, but it means that code compiled with GCC 13.1 will crash if the correct version of libstdc++.so is not used at run time. See the documentation about using the right libstdc++.so at run time. Future GCC releases will mitigate the problem so that the program cannot be run at all with an older libstdc++.so. Read more: https://gcc.gnu.org/gcc-13/changes.html @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2023/06/03 13:22:04 riastradh Exp $ d7 1 @ 1.3.6.1 log @Pullup ticket #6928 - requested by riastradh lang/gcc10-aux: install fix lang/gcc10-libs: install fix lang/gcc10: install fix lang/gcc12: install fix lang/gcc13-gnat: install fix lang/gcc13-libs: install fix lang/gcc13: install fix lang/gcc14-libs: install fix lang/gcc14: install fix lang/gcc6: install fix lang/gcc7-libs: install fix lang/gcc8-libs: install fix lang/gcc9-libs: install fix Revisions pulled up: - lang/gcc10-aux/Makefile 1.8 - lang/gcc10-aux/distinfo 1.2 - lang/gcc10-aux/patches/patch-gcc_Makefile.in 1.2 - lang/gcc10-libs/Makefile 1.10-1.11 - lang/gcc10/Makefile 1.26 - lang/gcc10/Makefile.common 1.11 - lang/gcc10/distinfo 1.19 - lang/gcc10/patches/patch-gcc_Makefile.in 1.3 - lang/gcc12-libs/Makefile 1.7-1.8 - lang/gcc12/Makefile 1.11 - lang/gcc12/Makefile.common 1.10 - lang/gcc12/distinfo 1.11 - lang/gcc12/patches/patch-gcc_Makefile.in 1.2 - lang/gcc13-gnat/Makefile 1.3 - lang/gcc13-gnat/distinfo 1.4 - lang/gcc13-gnat/patches/patch-gcc_Makefile.in 1.2 - lang/gcc13-libs/Makefile 1.3-1.4 - lang/gcc13/Makefile 1.4 - lang/gcc13/Makefile.common 1.9 - lang/gcc13/distinfo 1.5 - lang/gcc13/patches/patch-gcc_Makefile.in 1.2 - lang/gcc14-libs/Makefile 1.2-1.3 - lang/gcc14/Makefile 1.2 - lang/gcc14/Makefile.common 1.5 - lang/gcc14/distinfo 1.6 - lang/gcc14/patches/patch-gcc_Makefile.in 1.2 - lang/gcc6-libs/Makefile 1.21 - lang/gcc6/Makefile 1.48 - lang/gcc7-libs/Makefile 1.17 - lang/gcc8-libs/Makefile 1.19 - lang/gcc9-libs/Makefile 1.12 --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:54:31 UTC 2025 Modified Files: pkgsrc/lang/gcc10: Makefile Makefile.common distinfo pkgsrc/lang/gcc10-aux: Makefile distinfo pkgsrc/lang/gcc10-aux/patches: patch-gcc_Makefile.in pkgsrc/lang/gcc10-libs: Makefile pkgsrc/lang/gcc10/patches: patch-gcc_Makefile.in Log Message: lang/gcc10*: Fix LINK_LIBGCC_SPEC. PR pkg/58963: gcc: LINK_LIBGCC_SPEC snafu PR pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:55:38 UTC 2025 Modified Files: pkgsrc/lang/gcc12: Makefile Makefile.common distinfo pkgsrc/lang/gcc12-libs: Makefile pkgsrc/lang/gcc12/patches: patch-gcc_Makefile.in Log Message: lang/gcc12*: Fix LINK_LIBGCC_SPEC. PR pkg/58963: gcc: LINK_LIBGCC_SPEC snafu PR pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:55:52 UTC 2025 Modified Files: pkgsrc/lang/gcc13: Makefile Makefile.common distinfo pkgsrc/lang/gcc13-gnat: Makefile distinfo pkgsrc/lang/gcc13-gnat/patches: patch-gcc_Makefile.in pkgsrc/lang/gcc13-libs: Makefile pkgsrc/lang/gcc13/patches: patch-gcc_Makefile.in Log Message: lang/gcc13*: Fix LINK_LIBGCC_SPEC. PR pkg/58963: gcc: LINK_LIBGCC_SPEC snafu PR pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:56:07 UTC 2025 Modified Files: pkgsrc/lang/gcc14: Makefile Makefile.common distinfo pkgsrc/lang/gcc14-libs: Makefile pkgsrc/lang/gcc14/patches: patch-gcc_Makefile.in Log Message: lang/gcc14*: Fix LINK_LIBGCC_SPEC. PR pkg/58963: gcc: LINK_LIBGCC_SPEC snafu PR pkg/48740: lang/gcc44 to gcc46 linker fails because of whitespace --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:56:15 UTC 2025 Modified Files: pkgsrc/lang/gcc6: Makefile Log Message: lang/gcc6: Add scary comment over GCC_TARGET_MACHINE substitution. Same one as in later lang/gcc* versions, for consistency. No functional change intended. --- Module Name: pkgsrc Committed By: riastradh Date: Tue Jan 7 19:56:45 UTC 2025 Modified Files: pkgsrc/lang/gcc10-libs: Makefile pkgsrc/lang/gcc12-libs: Makefile pkgsrc/lang/gcc13-libs: Makefile pkgsrc/lang/gcc14-libs: Makefile pkgsrc/lang/gcc6-libs: Makefile pkgsrc/lang/gcc7-libs: Makefile pkgsrc/lang/gcc8-libs: Makefile pkgsrc/lang/gcc9-libs: Makefile Log Message: lang/gccN-libs: Disable REQUIRES/PROVIDES analysis. This is a stop-gap measure to work around: PR pkg/58966: mk: REQUIRES/PROVIDES analysis is wrong for self-libraries It should be removed once the REQUIRES/PROVIDES analysis is fixed. Since the REQUIRES/PROVIDES analysis is already done for the underlying lang/gccN package, and the transformation from lang/gccN to lang/gccN-libs is straightforward, disabling this check should be reasonably low-risk -- currently the lang/gccN-libs packages are outright broken and unusable with pkgtools/pkg_install. This doesn't change the content of the package, only the metadata, so no need for recursive revbump of dependent packages. @ text @d1 1 a1 1 # $NetBSD$ a6 1 PKGREVISION= 1 @ 1.2 log @lang/gcc*: Set CC_FOR_BUILD and CXX_FOR_BUILD if cross-compiling. Verified gcc6 and gcc7 cross-compile on NetBSD, at least if the gcc-fortran option is disabled. gcc8 and gcc9 have trouble because of python (why do these have a full dependency on python?); gcc10 and gcc12 are missing gcc/config/mips/netbsd64.h; gcc12 and gcc13 have a cross-compile bug with missing __LIBGCC_*__ macros -- but in any case, setting CC_FOR_BUILD and CXX_FOR_BUILD is obviously necessary for cross-compilation. Conditional on USE_CROSS_COMPILE, so no harm to native builds. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2023/05/03 20:03:09 wiz Exp $ d9 1 a9 1 LANGS= c @ 1.1 log @lang/gcc13: import gcc13-13.1.0 The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C, Fortran, and Go. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2023/04/07 06:48:27 wiz Exp $ d53 5 @