GNU bug report logs - #49161
kicad-5.1.6 fails to build

Previous Next

Package: guix;

Reported by: "bdju" <bdju <at> tilde.team>

Date: Mon, 21 Jun 2021 20:15:02 UTC

Severity: normal

Done: Guillaume Le Vaillant <glv <at> posteo.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49161 in the body.
You can then email your comments to 49161 AT debbugs.gnu.org in the normal way.

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#49161; Package guix. (Mon, 21 Jun 2021 20:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "bdju" <bdju <at> tilde.team>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 21 Jun 2021 20:15:03 GMT) Full text and rfc822 format available.

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

From: "bdju" <bdju <at> tilde.team>
To: <bug-guix <at> gnu.org>
Subject: kicad-5.1.6 fails to build
Date: Mon, 21 Jun 2021 11:23:36 -0500
[Message part 1 (text/plain, inline)]
I'm using Guix System
guix (GNU Guix) a7495b04b5c606c900ceb76202fdeb5785dea0f7
Log attached. (too large for paste site, ~3.9MB)
[kicad-5.1.6-build-log.txt (text/plain, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 06:38:01 GMT) Full text and rfc822 format available.

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

From: Brice Waegeneire <brice <at> waegenei.re>
To: "bdju" <bdju <at> tilde.team>
Cc: 49161 <at> debbugs.gnu.org, monego <at> posteo.net
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 08:36:58 +0200
Hello bdju,

Cuirass can't manage to build kicad¹ also.  Comparing to the previous
build², libngspice has been updated from version 28 to 34³ and the
content of thoses 2 version are drasticly different, so I guess it's the
issue.  In particular the /gnu/store/...-libngspice-34/include/config.h
seems suspicious.

I tried bumping kicad to the latest 5.10, but it didn't make a
difference.

¹ https://ci.guix.gnu.org/build/608393/details
² https://ci.guix.gnu.org/build/608201/details
³ https://issues.guix.gnu.org/48979

Cheers,
- Brice




Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 09:43:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Brice Waegeneire <brice <at> waegenei.re>, bdju <bdju <at> tilde.team>
Cc: 49161 <at> debbugs.gnu.org
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 09:42:07 +0000
Hi,

I found suggestions that disabling --with-readline in libngspice should
work around the issue, though I couldn't test it yet. This seems to be
a problem in version 34 specifically. Downgrading to 33 could also
work.

Em ter, 2021-06-22 às 08:36 +0200, Brice Waegeneire escreveu:
> Hello bdju,
> 
> Cuirass can't manage to build kicad¹ also.  Comparing to the previous
> build², libngspice has been updated from version 28 to 34³ and the
> content of thoses 2 version are drasticly different, so I guess it's
> the
> issue.  In particular the /gnu/store/...-libngspice-
> 34/include/config.h
> seems suspicious.
> 
> I tried bumping kicad to the latest 5.10, but it didn't make a
> difference.
> 
> ¹ https://ci.guix.gnu.org/build/608393/details
> ² https://ci.guix.gnu.org/build/608201/details
> ³ https://issues.guix.gnu.org/48979
> 
> Cheers,
> - Brice






Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 09:43:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Brice Waegeneire <brice <at> waegenei.re>, bdju <bdju <at> tilde.team>
Cc: 49161 <at> debbugs.gnu.org
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 09:42:30 +0000
Hi,

I found suggestions that disabling --with-readline in libngspice should
work around the issue, though I couldn't test it yet. This seems to be
a problem in version 34 specifically. Downgrading to 33 could also
work.

Em ter, 2021-06-22 às 08:36 +0200, Brice Waegeneire escreveu:
> Hello bdju,
> 
> Cuirass can't manage to build kicad¹ also.  Comparing to the previous
> build², libngspice has been updated from version 28 to 34³ and the
> content of thoses 2 version are drasticly different, so I guess it's
> the
> issue.  In particular the /gnu/store/...-libngspice-
> 34/include/config.h
> seems suspicious.
> 
> I tried bumping kicad to the latest 5.10, but it didn't make a
> difference.
> 
> ¹ https://ci.guix.gnu.org/build/608393/details
> ² https://ci.guix.gnu.org/build/608201/details
> ³ https://issues.guix.gnu.org/48979
> 
> Cheers,
> - Brice






Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 11:05:01 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Brice Waegeneire <brice <at> waegenei.re>, bdju <bdju <at> tilde.team>
Cc: 49161 <at> debbugs.gnu.org
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 11:04:08 +0000
[Message part 1 (text/plain, inline)]
> In particular the /gnu/store/...-libngspice-34/include/config.h
> seems suspicious.

Good catch. Indeed, that file should be removed.

Kicad takes a long time to build on my machine. I am attaching a diff
that removes config.h and should fix the compilation if anyone can
confirm.
[libngspice.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 12:03:02 GMT) Full text and rfc822 format available.

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

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 49161 <at> debbugs.gnu.org, Brice Waegeneire <brice <at> waegenei.re>,
 bdju <bdju <at> tilde.team>
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 12:01:51 +0000
[Message part 1 (text/plain, inline)]
Vinicius Monego <monego <at> posteo.net> skribis:

>> In particular the /gnu/store/...-libngspice-34/include/config.h
>> seems suspicious.
>
> Good catch. Indeed, that file should be removed.
>
> Kicad takes a long time to build on my machine. I am attaching a diff
> that removes config.h and should fix the compilation if anyone can
> confirm.

I tried applying your diff and with it kicad compiles fine and works.
Could you send a formatted patch?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 13:30:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 49161 <at> debbugs.gnu.org, Brice Waegeneire <brice <at> waegenei.re>,
 bdju <bdju <at> tilde.team>
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 13:29:21 +0000
[Message part 1 (text/plain, inline)]
Em ter, 2021-06-22 às 12:01 +0000, Guillaume Le Vaillant escreveu:
> Vinicius Monego <monego <at> posteo.net> skribis:
> 
> > > In particular the /gnu/store/...-libngspice-34/include/config.h
> > > seems suspicious.
> > 
> > Good catch. Indeed, that file should be removed.
> > 
> > Kicad takes a long time to build on my machine. I am attaching a
> > diff
> > that removes config.h and should fix the compilation if anyone can
> > confirm.
> 
> I tried applying your diff and with it kicad compiles fine and works.
> Could you send a formatted patch?

Done.

I am sending the two changes in different patches because I read in [1]
that KiCad uses config.h to extract version information about ngspice.
If simulations are working without config.h, then both patches can be
pushed. The history_file problem in the KiCad compilation is related to
readline only.

[1] https://bugs.archlinux.org/task/70569
[0001-gnu-libngspice-Fix-KiCad-compilation.patch (text/x-patch, attachment)]
[0002-gnu-libngspice-Delete-autogenerated-config.h.patch (text/x-patch, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#49161; Package guix. (Tue, 22 Jun 2021 13:40:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Guillaume Le Vaillant <glv <at> posteo.net>
Cc: 49161 <at> debbugs.gnu.org, Brice Waegeneire <brice <at> waegenei.re>,
 bdju <bdju <at> tilde.team>
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 13:39:26 +0000
[Message part 1 (text/plain, inline)]
Sending a v2 removing readline from inputs because it's unused now.
[v2-0001-gnu-libngspice-Fix-KiCad-compilation.patch (text/x-patch, attachment)]
[v2-0002-gnu-libngspice-Delete-autogenerated-config.h.patch (text/x-patch, attachment)]

Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Tue, 22 Jun 2021 14:56:01 GMT) Full text and rfc822 format available.

Notification sent to "bdju" <bdju <at> tilde.team>:
bug acknowledged by developer. (Tue, 22 Jun 2021 14:56:02 GMT) Full text and rfc822 format available.

Message #31 received at 49161-done <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 49161-done <at> debbugs.gnu.org, Brice Waegeneire <brice <at> waegenei.re>,
 bdju <bdju <at> tilde.team>
Subject: Re: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 14:54:50 +0000
[Message part 1 (text/plain, inline)]
Patches pushed as e22a711c97e0501b398467733164da4ee140036e and
following.
Thanks.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 21 Jul 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 273 days ago.

Previous Next


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