GNU bug report logs - #52140
[core-updates-frozen] tcc fails to build

Previous Next

Package: guix;

Reported by: Guillaume Le Vaillant <glv <at> posteo.net>

Date: Sat, 27 Nov 2021 11:02:01 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 52140 in the body.
You can then email your comments to 52140 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#52140; Package guix. (Sat, 27 Nov 2021 11:02:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillaume Le Vaillant <glv <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 27 Nov 2021 11:02:01 GMT) Full text and rfc822 format available.

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

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: [core-updates-frozen] tcc fails to build
Date: Sat, 27 Nov 2021 10:56:32 +0000
[Message part 1 (text/plain, inline)]
The 'check' phase fails with:

--8<---------------cut here---------------start------------->8---
------------ test3 ------------
../tcc -B.. -I../include -I.. -I.. -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/include:/gnu/store/99a2njzz22dkzd8pz75fsi5nbgv9ww0x-linux-libre-headers-5.10.35/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -run ../tcc.c -B.. -I../include -I.. -I.. -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/include:/gnu/store/99a2njzz22dkzd8pz75fsi5nbgv9ww0x-linux-libre-headers-5.10.35/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -run ../tcc.c -B.. -I../include -I.. -I.. -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/include:/gnu/store/99a2njzz22dkzd8pz75fsi5nbgv9ww0x-linux-libre-headers-5.10.35/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/2fk1gz2s7ppdicynscra9b19byrrr866-glibc-2.33/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -run ../tcc.c -B.. -I../include -I.. -I.. -run tcctest.c > test.out3
make[1]: *** [Makefile:103: test3] Error 139
make[1]: Leaving directory '/tmp/guix-build-tcc-0.9.27.drv-0/tcc-0.9.27/tests'
make: *** [Makefile:347: test] Error 2
--8<---------------cut here---------------end--------------->8---
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#52140; Package guix. (Fri, 17 Dec 2021 04:27:02 GMT) Full text and rfc822 format available.

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

From: Robby Zambito <contact <at> robbyzambito.me>
To: 52140 <at> debbugs.gnu.org
Cc: glv <at> posteo.net
Subject: RE: [core-updates-frozen] tcc fails to build
Date: Thu, 16 Dec 2021 23:26:37 -0500
Hi,

I've noticed tcc seems to be failing for me on the current master branch
of guix (commit b2ae164b211f4da6a3cc5dcb97eeeff3c6c7ebed according to
guix describe).

I tried to see if I could debug the issue, but I've reached the limit of
my knowledge.

The issue occurs on line 168 of tcc_run.c. That function call that is
executed seems to overwrite the memory of s1, which is a struct that
includes a FILE*. Because that FILE* is changed, the later call to
fclose(ppfp) on line 369 of tcc.c causes a segfault, because it no
longer points to a valid FILE.

I have no idea how to start debugging the function call at line 168 of
tcc_run.c, since that is code that has actually been compiled by tcc,
rather than tcc itself (though obviously code that is a part of the test
suite).

I hope we can get this working again.

Thanks,
Robby




Reply sent to Guillaume Le Vaillant <glv <at> posteo.net>:
You have taken responsibility. (Mon, 05 Sep 2022 12:36:02 GMT) Full text and rfc822 format available.

Notification sent to Guillaume Le Vaillant <glv <at> posteo.net>:
bug acknowledged by developer. (Mon, 05 Sep 2022 12:36:02 GMT) Full text and rfc822 format available.

Message #13 received at 52140-close <at> debbugs.gnu.org (full text, mbox):

From: Guillaume Le Vaillant <glv <at> posteo.net>
To: 52140-close <at> debbugs.gnu.org
Subject: Re: bug#52140: [core-updates-frozen] tcc fails to build
Date: Mon, 05 Sep 2022 12:33:16 +0000
[Message part 1 (text/plain, inline)]
tcc currently builds successfully.
Closing.
[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. (Tue, 04 Oct 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 204 days ago.

Previous Next


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