Ubuntu 18.04 compilation error
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
When I try to compile redox from source I get the following error:
echo | REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc-build/./gcc/xgcc -BREDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc-build/./gcc/ -E -dM - | \
sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
-e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
/bin/bash REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc/gcc/../move-if-change tmp-macro_list macro_list
echo timestamp > s-macro_list
rm -rf include-fixed; mkdir include-fixed
chmod a+rx include-fixed
if [ -d ../prev-gcc ]; then \
cd ../prev-gcc && \
make real-install-headers-tar DESTDIR=`pwd`/../gcc/ \
libsubdir=. ; \
else \
set -e; for ml in `cat fixinc_list`; do \
sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
fix_dir=include-fixed${multi_dir}; \
if ! false && test ! -d `echo REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/relibc-install${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`; then \
echo The directory that should contain system headers does not exist: >&2 ; \
echo " `echo REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/relibc-install${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" >&2 ; \
tooldir_sysinc=`echo "REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc-install/lib/gcc/x86_64-unknown-redox/7.0.1/../../../../x86_64-unknown-redox/sys-include" | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta`; \
if test "x`echo REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/relibc-install${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" = "x${tooldir_sysinc}"; \
then sleep 1; else exit 1; fi; \
fi; \
/bin/bash REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc/gcc/../mkinstalldirs ${fix_dir}; \
chmod a+rx ${fix_dir} || true; \
(TARGET_MACHINE='x86_64-unknown-redox'; srcdir=`cd REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc/gcc; ${PWDCMD-pwd}`; \
SHELL='/bin/bash'; MACRO_LIST=`${PWDCMD-pwd}`/macro_list ; \
gcc_dir=`${PWDCMD-pwd}` ; \
export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
cd ../build-x86_64-pc-linux-gnu/fixincludes && \
/bin/bash -c true "${gcc_dir}/${fix_dir}" \
`echo REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/relibc-install${sysroot_headers_suffix}/usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta` ); \
rm -f ${fix_dir}/syslimits.h; \
if [ -f ${fix_dir}/limits.h ]; then \
mv ${fix_dir}/limits.h ${fix_dir}/syslimits.h; \
else \
cp REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc/gcc/gsyslimits.h ${fix_dir}/syslimits.h; \
fi; \
chmod a+r ${fix_dir}/syslimits.h; \
done; \
fi
The directory that should contain system headers does not exist:
REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/relibc-install/usr/include
Makefile:3004: recipe for target 'stmp-fixinc' failed
make[2]: *** [stmp-fixinc] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcov-tool.pod gcov.pod cpp.pod gfdl.pod fsf-funding.pod gpl.pod gcc.pod
make[2]: Leaving directory 'REDOX_ROOT_DIR/prefix/x86_64-unknown-redox/gcc-build/gcc'
Makefile:4236: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
Environment info
- Operating system: Ubuntu 18.04
-
uname -a
: Linux ubu0608 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux -
rustc -V
: rustc 1.32.0-nightly (15d770400 2018-11-06) -
git rev-parse HEAD
: 19d1c9f6