Build with 'make all' failed due to 'configure: error: in redox/cookbook/recipes/xz/build'
Completed chapters 'Preparing the Build' and 'Compiling Redox' successfully.
Have already sorted out issue with stale Cargo.lock files, but haven't fount anything (looked through all issues <=2 years old) related to 'xz' build failure.
$ uname -a
Linux dell 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ rustc -V
rustc 1.35.0-nightly (acd8dd6a5 2019-04-05)
$ git rev-parse HEAD
3e847cd43a9091b8e948a29ae9b863a61e1e86cd
$ make pull; make fetch; make clean
<...>
$ make all
<...>
fusermount -u build/filesystem/ || true
rm -rf build/filesystem.bin build/filesystem.bin.partial build/filesystem/
dd if=/dev/zero of=build/filesystem.bin.partial bs=1048576 count="256"
256+0 records in
256+0 records out
268435456 bytes (268 MB, 256 MiB) copied, 0,156078 s, 1,7 GB/s
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs-mkfs build/filesystem.bin.partial
Finished release [optimized] target(s) in 0.03s
Running `redoxfs/target/release/redoxfs-mkfs build/filesystem.bin.partial`
redoxfs-mkfs: created filesystem on build/filesystem.bin.partial, reserved 0 blocks, size 268 MB, uuid 56064e98-d170-407a-9077-a03e5612c433
mkdir -p build/filesystem/
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
Finished release [optimized] target(s) in 0.02s
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- build/filesystem.bin.partial build/filesystem/
Finished release [optimized] target(s) in 0.02s
Running `redoxfs/target/release/redoxfs build/filesystem.bin.partial build/filesystem/`
redoxfs: opening build/filesystem.bin.partial
redoxfs: opened filesystem on build/filesystem.bin.partial with uuid 56064e98-d170-407a-9077-a03e5612c433
redoxfs: mounted filesystem on build/filesystem.bin.partial to build/filesystem/
sleep 2
pgrep redoxfs
17379
cp filesystem.toml build/filesystem/filesystem.toml
cp build/bootloader build/filesystem/bootloader
cp build/kernel build/filesystem/kernel
cp -r /home/work/Learn/redox/prefix/x86_64-unknown-redox/relibc-install/x86_64-unknown-redox/include build/filesystem/include
cp -r /home/work/Learn/redox/prefix/x86_64-unknown-redox/relibc-install/x86_64-unknown-redox/lib build/filesystem/lib
export PATH="/home/work/Learn/redox/prefix/x86_64-unknown-redox/relibc-install/bin:$PATH" && \
cargo run --manifest-path installer/Cargo.toml --release -- --cookbook=cookbook -c filesystem.toml build/filesystem/
Finished release [optimized] target(s) in 0.17s
Running `installer/target/release/redox_installer --cookbook=cookbook -c filesystem.toml build/filesystem/`
Install Config {
general: GeneralConfig {
prompt: false,
},
packages: {
"audiod": PackageConfig {
version: None,
git: None,
path: None,
},
"ca-certificates": PackageConfig {
version: None,
git: None,
path: None,
},
"contain": PackageConfig {
version: None,
git: None,
path: None,
},
"coreutils": PackageConfig {
version: None,
git: None,
path: None,
},
"drivers": PackageConfig {
version: None,
git: None,
path: None,
},
"extrautils": PackageConfig {
version: None,
git: None,
path: None,
},
"findutils": PackageConfig {
version: None,
git: None,
path: None,
},
"installer": PackageConfig {
version: None,
git: None,
path: None,
},
"ion": PackageConfig {
version: None,
git: None,
path: None,
},
"ipcd": PackageConfig {
version: None,
git: None,
path: None,
},
"logd": PackageConfig {
version: None,
git: None,
path: None,
},
"netdb": PackageConfig {
version: None,
git: None,
path: None,
},
"netstack": PackageConfig {
version: None,
git: None,
path: None,
},
"netsurf": PackageConfig {
version: None,
git: None,
path: None,
},
"netutils": PackageConfig {
version: None,
git: None,
path: None,
},
"nulld": PackageConfig {
version: None,
git: None,
path: None,
},
"orbdata": PackageConfig {
version: None,
git: None,
path: None,
},
"orbital": PackageConfig {
version: None,
git: None,
path: None,
},
"orbterm": PackageConfig {
version: None,
git: None,
path: None,
},
"orbutils": PackageConfig {
version: None,
git: None,
path: None,
},
"pkgutils": PackageConfig {
version: None,
git: None,
path: None,
},
"ptyd": PackageConfig {
version: None,
git: None,
path: None,
},
"randd": PackageConfig {
version: None,
git: None,
path: None,
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None,
},
"smith": PackageConfig {
version: None,
git: None,
path: None,
},
"userutils": PackageConfig {
version: None,
git: None,
path: None,
},
"uutils": PackageConfig {
version: None,
git: None,
path: None,
},
"zerod": PackageConfig {
version: None,
git: None,
path: None,
},
},
files: [
FileConfig {
path: "/etc/init.d/00_base",
data: "nulld\nzerod\nrandd\nipcd\nlogd\nptyd\npcid /etc/pcid/filesystem.toml\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/init.d/10_net",
data: "smolnetd\ndnsd\ndhcpd -b\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/init.d/20_orbital",
data: "audiod\norbital display:3/activate orblogin launcher\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/init.d/30_console",
data: "getty display:2\ngetty debug: -J\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/net/dns",
data: "208.67.222.222\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/net/ip",
data: "10.0.2.15\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/net/ip_router",
data: "10.0.2.2\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/net/ip_subnet",
data: "255.255.255.0\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/net/mac",
data: "54-52-00-ab-cd-ef\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/pkg.d/50_redox",
data: "https://static.redox-os.org/pkg",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/group",
data: "root;0;root\nuser;1000;user\nsudo;1;user\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/hostname",
data: "redox\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/issue",
data: "########## Redox OS ##########\n# Login with the following: #\n# `user` #\n# `root`:`password` #\n##############################\n\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/etc/motd",
data: "Welcome to Redox OS!\n\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/usr/bin",
data: "/bin",
symlink: true,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/usr/games",
data: "/games",
symlink: true,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/usr/include",
data: "/include",
symlink: true,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/usr/lib",
data: "/lib",
symlink: true,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/usr/share",
data: "/share",
symlink: true,
directory: false,
mode: None,
uid: None,
gid: None,
},
FileConfig {
path: "/tmp",
data: "",
symlink: false,
directory: true,
mode: Some(
1023,
),
uid: None,
gid: None,
},
],
users: {
"root": UserConfig {
password: Some(
"password",
),
uid: Some(
0,
),
gid: Some(
0,
),
name: Some(
"root",
),
home: Some(
"/root",
),
shell: None,
},
"user": UserConfig {
password: Some(
"",
),
uid: None,
gid: None,
name: None,
home: None,
shell: None,
},
},
} to build/filesystem/
repo - audiod up to date
repo - ca-certificates up to date
repo - contain up to date
repo - coreutils up to date
repo - drivers up to date
repo - preparing extrautils
cook - extrautils prepare
~/Learn/redox/cookbook ~/Learn/redox/cookbook/recipes/extrautils
repo - building xz
cook - xz build
+ autopoint -f
+ libtoolize -c -f
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
+ aclocal -I m4
+ autoconf
+ autoheader
+ automake -acf --foreign
configure.ac:540: installing 'build-aux/compile'
configure.ac:537: installing 'build-aux/missing'
debug/Makefile.am: installing 'build-aux/depcomp'
--2019-05-15 22:33:47-- http://git.savannah.gnu.org/cgit/config.git/plain/config.sub
Resolving git.savannah.gnu.org (git.savannah.gnu.org)... 2001:470:142:5::201, 209.51.188.201
Connecting to git.savannah.gnu.org (git.savannah.gnu.org)|2001:470:142:5::201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31611 (31K) [text/plain]
Saving to: ‘build-aux/config.sub’
build-aux/config.sub 100%[============================================================================================>] 30,87K --.-KB/s in 0,1s
2019-05-15 22:33:47 (263 KB/s) - ‘build-aux/config.sub’ saved [31611/31611]
XZ Utils 5.2.3
System type:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-unknown-redox
Configure options:
checking if debugging code should be compiled... no
checking which encoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
checking which decoders to build... lzma1 lzma2 delta x86 powerpc ia64 arm armthumb sparc
checking which match finders to build... hc3 hc4 bt2 bt3 bt4
checking which integrity checks to build... crc32 crc64 sha256
checking if external SHA-256 should be used... no
checking if assembler optimizations should be used... no
checking if small size is preferred over speed... no
checking if threading support is wanted... no
checking how much RAM to assume if the real amount is unknown... 128 MiB
checking if library symbol versioning should be used... no
checking if sandboxing should be used... no
checking for a shell that conforms to POSIX... /bin/bash
Initializing Automake:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-unknown-redox-strip... x86_64-unknown-redox-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for x86_64-unknown-redox-gcc... x86_64-unknown-redox-gcc
checking whether the C compiler works... no
configure: error: in `/home/work/Learn/redox/cookbook/recipes/xz/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
./repo.sh failed.mk/filesystem.mk:2: recipe for target 'build/filesystem.bin' failed
make: *** [build/filesystem.bin] Error 1