SWIG is compiled without optimizations

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ludovic Courtès
Severity
normal
L
L
Ludovic Courtès wrote on 27 Apr 2021 09:52
(address . bug-guix@gnu.org)
87eeew6u5m.fsf@inria.fr
From:

Toggle snippet (10 lines)
$ guix describe
Generacio 181 Apr 26 2021 08:47:48 (nuna)
guix d904abe
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: d904abe0768293b2322dbf355b6e41d94e769d78
$ guix build swig --log-file
https://ci.guix.gnu.org/log/2l8f4sjw0jbfll4ilp7pzwimrh5kjdgf-swig-4.0.1

… we can see lots of warnings like this one:

Toggle snippet (9 lines)
checking perl5 testcase abstract_inherit_ok
In file included from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/bits/libc-header-start.h:33:0,
from /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/string.h:26,
from li_cstring_wrap.cxx:342:
/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^~~~~~~

Compiling without optimizations sounds like a bad idea. We should add
-O2 somewhere to the CFLAGS.

Ludo’.
L
L
Ludovic Courtès wrote on 28 Apr 2021 22:48
control message for bug #48056
(address . control@debbugs.gnu.org)
87lf92qgou.fsf@gnu.org
tags 48056 + easy
quit
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 48056@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 48056
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch