From nobody Thu Sep 30 16:47:13 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 44CFA17D7B7D for ; Thu, 30 Sep 2021 16:47:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HKzg51Pjtz4Vdt for ; Thu, 30 Sep 2021 16:47:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0F6507279 for ; Thu, 30 Sep 2021 16:47:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 18UGlDVl026422 for ; Thu, 30 Sep 2021 16:47:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 18UGlDVX026421 for ports-bugs@FreeBSD.org; Thu, 30 Sep 2021 16:47:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 258811] print/texinfo: respect CC Date: Thu, 30 Sep 2021 16:47:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: evgeniy@khramtsov.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258811 Bug ID: 258811 Summary: print/texinfo: respect CC Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: evgeniy@khramtsov.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org Created attachment 228290 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D228290&action= =3Dedit v1 (use "git am") print/texinfo uses both CC values by default: 1. For itself, taken from $CC: https://git.savannah.gnu.org/cgit/texinfo.git/tree/configure.ac?h=3Dtexinfo= -6.8#n194 2. For Perl extension (XS) modules, taken from Perl, unless PERL_EXT_CC is passed: https://git.savannah.gnu.org/cgit/texinfo.git/tree/configure.ac?h=3Dtexinfo= -6.8#n55 https://git.savannah.gnu.org/cgit/texinfo.git/tree/tp/Texinfo/XS/configure.= ac?h=3Dtexinfo-6.8#n77 If one wants to build a compiler (e.g. devel/llvm13) from ports while not having base compiler (cc) (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257622#c2), and using Perl built using older compiler which no longer exists (or, while having no base cc when using devel/llvm12 and Perl bootstrapped from pkg.FreeBSD.org), then a mismatch will happen, e.g.: 1: [...] checking whether the compiler supports GNU C... yes checking whether /usr/local/llvm13/bin/clang accepts -g... yes checking for /usr/local/llvm13/bin/clang option to enable C11 features... n= one needed checking whether /usr/local/llvm13/bin/clang understands -c and -o together= ... yes checking whether the compiler is clang... yes [...] 2: [...] checking for perl... (cached) /usr/local/bin/perl checking Perl configuration value cc... /usr/local/llvm12/bin/clang checking Perl configuration value ccflags... -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include checking Perl configuration value cccdlflags... -DPIC -fPIC checking Perl configuration value optimize... -O2 -pipe -O3 -mtune=3Dskylake -mbranches-within-32B-boundaries -fstack-protector-all -fPIE -fPIC -fno-strict-aliasing checking Perl configuration value ccdlflags...=20 -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE checking Perl configuration value libperl... libperl.so.5.32.1 checking Perl configuration value archlibexp... /usr/local/lib/perl5/5.32/m= ach checking Perl configuration value privlibexp... /usr/local/lib/perl5/5.32 checking for gcc... /usr/local/llvm12/bin/clang checking whether the C compiler works... no configure: error: in `/wrkdirs/usr/ports/print/texinfo/work/texinfo-6.8/tp/Texinfo/XS': configure: error: C compiler cannot create executables See `config.log' for more details configure: error: ./configure failed for tp/Texinfo/XS configure: building Perl extension (XS) modules will be disabled [...] Respect CC using PERL_EXT_CC environment variable to avoid chicken and egg problem. Sorry for not leaving a short reproducer, I'll get back to submitting a reproducer later after finishing some of my other tasks. I leave this PR he= re so the community can find this. --=20 You are receiving this mail because: You are the assignee for the bug.=