rustc couldn't be rebuilt

Bug #1707915 reported by George Shuklin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rustc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I've tried to rebuild rustc package and found that it fails:

apt-get source -b rustc
....

dfsg1/src/rt/hoedown/src -I /home/amarao/prg/rustc/rustc-1.16.0+dfsg1/src/rt /home/amarao/prg/rustc/rustc-1.16.0+dfsg1/src/rt/hoedown/src/html_blocks.c
/home/amarao/prg/rustc/rustc-1.16.0+dfsg1/src/rt/hoedown/src/html_blocks.c:62:80: error: unknown type name ‘size_t’
 gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n)
                                                                                ^~~~~~
/home/amarao/prg/rustc/rustc-1.16.0+dfsg1/src/rt/hoedown/src/html_blocks.c:87:42: error: unknown type name ‘size_t’
 hash (register const char *str, register size_t len)
                                          ^~~~~~
/home/amarao/prg/rustc/rustc-1.16.0+dfsg1/src/rt/hoedown/src/html_blocks.c:133:60: error: unknown type name ‘size_t’
 hoedown_find_block_tag (register const char *str, register size_t len)
                                                            ^~~~~~
/home/amarao/prg/rustc/rustc-1.16.0+dfsg1/mk/rt.mk:100: recipe for target 'x86_64-unknown-linux-gnu/rt/hoedown/src/html_blocks.o' failed
make[2]: *** [x86_64-unknown-linux-gnu/rt/hoedown/src/html_blocks.o] Error 1
make[2]: *** Waiting for unfinished jobs....

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: rustc 1.16.0+dfsg1-1ubuntu1
ProcVersionSignature: Ubuntu 4.11.0-10.15-generic 4.11.8
Uname: Linux 4.11.0-10-generic x86_64
ApportVersion: 2.20.6-0ubuntu4
Architecture: amd64
CurrentDesktop: X-Cinnamon
Date: Tue Aug 1 16:40:17 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-19 (1473 days ago)
InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release i386 (20130423.1)
SourcePackage: rustc
UpgradeStatus: Upgraded to artful on 2017-06-22 (40 days ago)

Revision history for this message
George Shuklin (george-shuklin) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I've marked this with the "ftbfs" tag used for build failures (fails-to-build-from-source). I notice there's a newer version of this package in artful-proposed (https://launchpad.net/ubuntu/+source/rustc/1.18.0+dfsg1-4) which might resolve this issue, however that is currently failing to build on armhf.

tags: added: ftbfs
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Hm.. I'm not quite sure how to proceed with this bug report.

Now that 1.18.0+dfsg1-4ubuntu1 has landed in artful, the package built succesfully, so it can probably be marked Fix Released. On the other hand, based on the version number, the same issue might affect 17.04 as well, but I'm not sure how easy it would be to resolve there.

Revision history for this message
George Shuklin (george-shuklin) wrote :

I've checked it. It can be rebuild from source without issues. Ironically, it requires ` rustc (>= 1.17.0+dfsg) | rustc:native (>= 1.17.0+dfsg)` to build, but outside of this, there are no issues in artful.

(I have no working zesty anywhere around, and it will die soon, so I there are no complaining people around, I think this bug may be closed, as it was reported against artful).

BTW, I found that my build is different from ubuntu's packages, and very significantly. F.e., ubuntu ships *.so files in libstd-rust-1.18_1.18.0+dfsg1-4ubuntu1_amd64.deb which are different in size and content from binaries I was able to build from the same sources.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for checking.

I'm marking this as Fix Released then, since the package builds successfully on Artful.

>BTW, I found that my build is different from ubuntu's packages, and very significantly.

I must admit I don't know what might cause this. I see that Debian has marked the package as not reproducible (ie. building it twice produce different results), but I don't know if that explains this difference https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/rustc.html.

Changed in rustc (Ubuntu):
status: New → Fix Released
summary: - rustc couldn't be rebuilded
+ rustc couldn't be rebuilt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.