GNU bug report logs - #25401
tcc fails to build (test failure)

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Sun, 8 Jan 2017 22:00:02 UTC

Severity: normal

Done: Andreas Enge <andreas <at> enge.fr>

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 25401 in the body.
You can then email your comments to 25401 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#25401; Package guix. (Sun, 08 Jan 2017 22:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 08 Jan 2017 22:00:03 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: tcc fails to build (test failure)
Date: Sun, 08 Jan 2017 22:59:29 +0100
The package “tcc” fails to build.  The check phase fails:

--8<---------------cut here---------------start------------->8---
starting phase `check'
make -C tests test
make[1]: Entering directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
------------ hello-exe ------------
../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello
------------ hello-run ------------
../tcc -B.. -run ../examples/ex1.c
Hello World
gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/include:/gnu/store/jc898psn5yc9s328nn8fya3sc2daf037-linux-libre-headers-4.4.18/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -lm -ldl  
make[1]: *** [Makefile:63: hello-exe] Segmentation fault
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
make: *** [Makefile:316: test] Error 2
phase `check' failed after 0.2 seconds
builder for `/gnu/store/fdy7vhwj4x7639446xai7aqh2q980xpb-tcc-0.9.26.drv' failed with exit code 1
@ build-failed /gnu/store/fdy7vhwj4x7639446xai7aqh2q980xpb-tcc-0.9.26.drv - 1 builder for `/gnu/store/fdy7vhwj4x7639446xai7aqh2q980xpb-tcc-0.9.26.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/fdy7vhwj4x7639446xai7aqh2q980xpb-tcc-0.9.26.drv' failed
--8<---------------cut here---------------end--------------->8---

tcc can be used as an interpreter just fine, but the binaries it
produces segfault immediately.

--8<---------------cut here---------------start------------->8---
(gdb) bt full
#0  0x00000000080482a4 in _start ()
No symbol table info available.
(gdb) disassemble
Dump of assembler code for function _start:
   0x0000000008048280 <+0>:	xor    %ebp,%ebp
   0x0000000008048282 <+2>:	mov    %rdx,%r9
   0x0000000008048285 <+5>:	pop    %rsi
   0x0000000008048286 <+6>:	mov    %rsp,%rdx
   0x0000000008048289 <+9>:	and    $0xfffffffffffffff0,%rsp
   0x000000000804828d <+13>:	push   %rax
   0x000000000804828e <+14>:	push   %rsp
   0x000000000804828f <+15>:	mov    $0x8048350,%r8
   0x0000000008048296 <+22>:	mov    $0x80482e0,%rcx
   0x000000000804829d <+29>:	mov    $0x80482ab,%rdi
=> 0x00000000080482a4 <+36>:	callq  *0x0(%rip)        # 0x80482aa <_start+42>
   0x00000000080482aa <+42>:	hlt    
End of assembler dump.
--8<---------------cut here---------------end--------------->8---


-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net





Information forwarded to bug-guix <at> gnu.org:
bug#25401; Package guix. (Mon, 09 Jan 2017 09:07:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 25401 <at> debbugs.gnu.org
Subject: Re: bug#25401: tcc fails to build (test failure)
Date: Mon, 09 Jan 2017 10:05:53 +0100
Ricardo Wurmus <rekado <at> elephly.net> skribis:

> The package “tcc” fails to build.  The check phase fails:
>
> starting phase `check'
> make -C tests test
> make[1]: Entering directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
> ------------ hello-exe ------------
> ../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello
> ------------ hello-run ------------
> ../tcc -B.. -run ../examples/ex1.c
> Hello World
> gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/include:/gnu/store/jc898psn5yc9s328nn8fya3sc2daf037-linux-libre-headers-4.4.18/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -lm -ldl  
> make[1]: *** [Makefile:63: hello-exe] Segmentation fault

FWIW it started failing after the last ‘core-updates’ merge, which
updated Binutils and glibc, among other things.

We should check whether tinycc Git master has this problem.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25401; Package guix. (Mon, 09 Jan 2017 20:45:01 GMT) Full text and rfc822 format available.

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

From: ng0 <ng0 <at> libertad.pw>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 25401 <at> debbugs.gnu.org
Subject: Re: bug#25401: tcc fails to build (test failure)
Date: Mon, 09 Jan 2017 20:44:38 +0000
Ludovic Courtès <ludo <at> gnu.org> writes:

> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>
>> The package “tcc” fails to build.  The check phase fails:
>>
>> starting phase `check'
>> make -C tests test
>> make[1]: Entering directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
>> ------------ hello-exe ------------
>> ../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello
>> ------------ hello-run ------------
>> ../tcc -B.. -run ../examples/ex1.c
>> Hello World
>> gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/include:/gnu/store/jc898psn5yc9s328nn8fya3sc2daf037-linux-libre-headers-4.4.18/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -lm -ldl  
>> make[1]: *** [Makefile:63: hello-exe] Segmentation fault
>
> FWIW it started failing after the last ‘core-updates’ merge, which
> updated Binutils and glibc, among other things.
>
> We should check whether tinycc Git master has this problem.
>
> Ludo’.

I have tcc-next (git checkout) in a branch since forever, I'm
testing this now again.
I think I never made it to build completely, but this is
something which can be fixed, I try to see how much can be fixed
from my side.
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/




Information forwarded to bug-guix <at> gnu.org:
bug#25401; Package guix. (Tue, 10 Jan 2017 08:22:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: ng0 <ng0 <at> libertad.pw>
Cc: 25401 <at> debbugs.gnu.org
Subject: Re: bug#25401: tcc fails to build (test failure)
Date: Tue, 10 Jan 2017 09:21:18 +0100
ng0 <ng0 <at> libertad.pw> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>>
>>> The package “tcc” fails to build.  The check phase fails:
>>>
>>> starting phase `check'
>>> make -C tests test
>>> make[1]: Entering directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
>>> ------------ hello-exe ------------
>>> ../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello
>>> ------------ hello-run ------------
>>> ../tcc -B.. -run ../examples/ex1.c
>>> Hello World
>>> gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/include:/gnu/store/jc898psn5yc9s328nn8fya3sc2daf037-linux-libre-headers-4.4.18/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -lm -ldl  
>>> make[1]: *** [Makefile:63: hello-exe] Segmentation fault
>>
>> FWIW it started failing after the last ‘core-updates’ merge, which
>> updated Binutils and glibc, among other things.
>>
>> We should check whether tinycc Git master has this problem.
>>
>> Ludo’.
>
> I have tcc-next (git checkout) in a branch since forever, I'm
> testing this now again.

Neat, and it doesn’t have this problem I guess?

Could you give the URL of your repo again?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#25401; Package guix. (Tue, 10 Jan 2017 09:18:02 GMT) Full text and rfc822 format available.

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

From: ng0 <ng0 <at> libertad.pw>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 25401 <at> debbugs.gnu.org
Subject: Re: bug#25401: tcc fails to build (test failure)
Date: Tue, 10 Jan 2017 09:17:12 +0000
Ludovic Courtès <ludo <at> gnu.org> writes:

> ng0 <ng0 <at> libertad.pw> skribis:
>
>> Ludovic Courtès <ludo <at> gnu.org> writes:
>>
>>> Ricardo Wurmus <rekado <at> elephly.net> skribis:
>>>
>>>> The package “tcc” fails to build.  The check phase fails:
>>>>
>>>> starting phase `check'
>>>> make -C tests test
>>>> make[1]: Entering directory '/tmp/guix-build-tcc-0.9.26.drv-0/tcc-0.9.26/tests'
>>>> ------------ hello-exe ------------
>>>> ../tcc -B.. ../examples/ex1.c -o hello || (../tcc -vv; exit 1) && ./hello
>>>> ------------ hello-run ------------
>>>> ../tcc -B.. -run ../examples/ex1.c
>>>> Hello World
>>>> gcc -o libtcc_test libtcc_test.c ../libtcc.a -I..  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -DCONFIG_TCC_SYSINCLUDEPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/include:/gnu/store/jc898psn5yc9s328nn8fya3sc2daf037-linux-libre-headers-4.4.18/include:{B}/include\"" -DCONFIG_TCC_LIBPATHS="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_CRTPREFIX="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib\"" -DCONFIG_TCC_ELFINTERP="\"/gnu/store/iwgi9001dmmihrjg4rqhd6pa6788prjw-glibc-2.24/lib/ld-linux-x86-64.so.2\"" -DTCC_TARGET_X86_64 -lm -ldl  
>>>> make[1]: *** [Makefile:63: hello-exe] Segmentation fault
>>>
>>> FWIW it started failing after the last ‘core-updates’ merge, which
>>> updated Binutils and glibc, among other things.
>>>
>>> We should check whether tinycc Git master has this problem.
>>>
>>> Ludo’.
>>
>> I have tcc-next (git checkout) in a branch since forever, I'm
>> testing this now again.
>
> Neat, and it doesn’t have this problem I guess?

I can neither confirm nor deny this, as I wasn't able to make it
build so far, but logical some bugs are fixed in this upstream.

> Could you give the URL of your repo again?

https://pagure.io/guix-dev/c/756043f48e685aac1259b205193b374ee589bd91

git clone https://pagure.io/guix-dev.git 
and then the branch "tinycc".

> Thanks,
> Ludo’.
>

-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/




Reply sent to Andreas Enge <andreas <at> enge.fr>:
You have taken responsibility. (Mon, 05 Feb 2018 22:11:01 GMT) Full text and rfc822 format available.

Notification sent to Ricardo Wurmus <rekado <at> elephly.net>:
bug acknowledged by developer. (Mon, 05 Feb 2018 22:11:02 GMT) Full text and rfc822 format available.

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

From: Andreas Enge <andreas <at> enge.fr>
To: 25401-done <at> debbugs.gnu.org
Subject: Re: tcc fails to build (test failure)
Date: Mon, 5 Feb 2018 23:10:36 +0100
The new version 0.9.27 has been built on hydra, closing this bug.

Andreas





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Mar 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 157 days ago.

Previous Next


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