GNU bug report logs - #48056
SWIG is compiled without optimizations

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludovic.courtes <at> inria.fr>

Date: Tue, 27 Apr 2021 07:54:02 UTC

Severity: normal

Tags: easy

To reply to this bug, email your comments to 48056 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#48056; Package guix. (Tue, 27 Apr 2021 07:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludovic.courtes <at> inria.fr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 27 Apr 2021 07:54:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
To: <bug-guix <at> gnu.org>
Subject: SWIG is compiled without optimizations
Date: Tue, 27 Apr 2021 09:52:53 +0200
From:

--8<---------------cut here---------------start------------->8---
$ 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
--8<---------------cut here---------------end--------------->8---

… we can see lots of warnings like this one:

--8<---------------cut here---------------start------------->8---
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)
    ^~~~~~~
--8<---------------cut here---------------end--------------->8---

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

Ludo’.




Added tag(s) easy. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 28 Apr 2021 20:49:01 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.