[Pkg-rust-maintainers] Bug#869610: rustc FTBFS: error: unknown type name 'size_t'
Helmut Grohne
helmut at subdivi.de
Mon Jul 24 18:53:28 UTC 2017
Source: rustc
Version: 1.18.0+dfsg1-3
Severity: serious
User: helmutg at debian.org
Usertags: rebootstrap
rustc fails to build from source in unstable amd64 (presumably due to
the gperf 3.1 upload):
| CFLAGS_x86_64-unknown-linux-gnu = Some("-ffunction-sections -fdata-sections -fPIC -g -fdebug-prefix-map=/<<BUILDDIR>>/rustc-1.18.0+dfsg1=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-misleading-indentation -m64")
| PROFILE = Some("release")
| running: "cc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fdebug-prefix-map=/<<BUILDDIR>>/rustc-1.18.0+dfsg1=." "-fstack-protector-strong" "-Wformat" "-Werror=format-security" "-Wno-misleading-indentation" "-m64" "-m64" "-I" "../rt/hoedown/src" "-o" "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustdoc-39b44c74f2903706/out/../rt/hoedown/src/html.o" "-c" "../rt/hoedown/src/html.c"
| ExitStatus(ExitStatus(0))
| TARGET = Some("x86_64-unknown-linux-gnu")
| OPT_LEVEL = Some("2")
| TARGET = Some("x86_64-unknown-linux-gnu")
| HOST = Some("x86_64-unknown-linux-gnu")
| TARGET = Some("x86_64-unknown-linux-gnu")
| TARGET = Some("x86_64-unknown-linux-gnu")
| HOST = Some("x86_64-unknown-linux-gnu")
| CC_x86_64-unknown-linux-gnu = Some("cc")
| TARGET = Some("x86_64-unknown-linux-gnu")
| HOST = Some("x86_64-unknown-linux-gnu")
| CFLAGS_x86_64-unknown-linux-gnu = Some("-ffunction-sections -fdata-sections -fPIC -g -fdebug-prefix-map=/<<BUILDDIR>>/rustc-1.18.0+dfsg1=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-misleading-indentation -m64")
| PROFILE = Some("release")
| running: "cc" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fdebug-prefix-map=/<<BUILDDIR>>/rustc-1.18.0+dfsg1=." "-fstack-protector-strong" "-Wformat" "-Werror=format-security" "-Wno-misleading-indentation" "-m64" "-m64" "-I" "../rt/hoedown/src" "-o" "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustdoc-39b44c74f2903706/out/../rt/hoedown/src/html_blocks.o" "-c" "../rt/hoedown/src/html_blocks.c"
| cargo:warning=../rt/hoedown/src/html_blocks.c:62:80: error: unknown type name 'size_t'
| cargo:warning= gperf_case_strncmp (register const char *s1, register const char *s2, register size_t n)
| cargo:warning= ^~~~~~
| cargo:warning=../rt/hoedown/src/html_blocks.c:87:42: error: unknown type name 'size_t'
| cargo:warning= hash (register const char *str, register size_t len)
| cargo:warning= ^~~~~~
| cargo:warning=../rt/hoedown/src/html_blocks.c:133:60: error: unknown type name 'size_t'
| cargo:warning= hoedown_find_block_tag (register const char *str, register size_t len)
| cargo:warning= ^~~~~~
| ExitStatus(ExitStatus(256))
|
|
| command did not execute successfully, got: exit code: 1
|
|
|
| --- stderr
| thread 'main' panicked at 'explicit panic', src/vendor/gcc/src/lib.rs:1152
| note: Run with `RUST_BACKTRACE=1` for a backtrace.
|
| Build failed, waiting for other jobs to finish...
| error: build failed
|
|
| command did not execute successfully: "/usr/bin/cargo" "build" "-j" "8" "--target" "x86_64-unknown-linux-gnu" "-v" "--release" "--frozen" "--features" " jemalloc" "--manifest-path" "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/src/rustc/Cargo.toml"
| expected success, got: exit code: 101
|
|
| Traceback (most recent call last):
| File "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/src/bootstrap/bootstrap.py", line 595, in main
| bootstrap()
| File "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/src/bootstrap/bootstrap.py", line 589, in bootstrap
| rb.run(args, env)
| File "/<<BUILDDIR>>/rustc-1.18.0+dfsg1/src/bootstrap/bootstrap.py", line 384, in run
| sys.exit(ret)
| SystemExit: 1
| Build completed unsuccessfully in 0:04:26
| debian/rules:155: recipe for target 'override_dh_auto_build-arch' failed
| make[1]: *** [override_dh_auto_build-arch] Error 1
| make[1]: Leaving directory '/<<BUILDDIR>>/rustc-1.18.0+dfsg1'
| debian/rules:122: recipe for target 'build-arch' failed
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
Helmut
More information about the Pkg-rust-maintainers
mailing list