GNU bug report logs -
#47676
[PATCH] Add 'compiler-for-target' checker
Previous Next
To reply to this bug, email your comments to 47676 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#47676
; Package
guix-patches
.
(Fri, 09 Apr 2021 17:23:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Maxime Devos <maximedevos <at> telenet.be>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 09 Apr 2021 17:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Guix,
This patch series adds a linter that detects "CC=gcc" and "CXX=g++"
in #:make-flags in the arguments field of a package. This is incorrect
when cross-compiling; ,(string-append "CC=" (cc-for-target)) or similar
should be used instead.
Patch #1: detect "CC=gcc".
Patch #2: detect "CXX=g++".
Some complaints from the checker:
$ ./pre-inst-env guix lint -c "compiler-for-target"
> gnu/packages/admin.scm:3138:5: sunxi-tools <at> 1.4.2: should use 'cc-for-target'
> gnu/packages/admin.scm:2969:5: cbatticon <at> 1.6.10: should use 'cc-for-target'
> gnu/packages/assembly.scm:230:5: dev86 <at> 0.16.21: should use 'cc-for-target'
> gnu/packages/audio.scm:4870:4: lv2toweb <at> 0.4: should use 'cc-for-target'
> gnu/packages/audio.scm:1134:5: swh-plugins-lv2 <at> 1.0.16: should use 'cc-for-target'
> gnu/packages/base.scm:1290:5: tzdata <at> 2021a: should use 'cc-for-target'
> gnu/packages/bioinformatics.scm:10977:5: paml <at> 4.9e: should use 'cc-for-target'
> gnu/packages/bioinformatics.scm:1677:5: bowtie1 <at> 1.3.0: should use 'cc-for-target'
> gnu/packages/bioinformatics.scm:4885:5: mash <at> 2.1: should use 'cc-for-target'
> [...]
"make && make check TESTS=tests/lint.scm" succeeds.
Greetings,
Maxime.
[0001-lint-Add-compiler-for-target-checker.patch (text/x-patch, attachment)]
[0002-lint-Extend-compiler-for-target-to-detect-CXX-g.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.