DeadSix27 / py-cross

Cross compile automation tool written in python
3 stars 1 forks source link

error compiling toolchain #1

Closed hydra3333 closed 1 year ago

hydra3333 commented 1 year ago

Thanks for starting a great new resource !

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:    22.04
Codename:   jammy

In Ubuntu 22.04.2 I installed what I thought were most of the dependencies, then did ./main.py -l, and the following error came up.

PS gcc 13 has been released now.

g++  -fno-PIE -c   -O3   -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/. -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../include  -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../libcpp/include -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../libcody -I/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421/./gmp -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gmp -I/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421/./mpfr/src -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/mpfr/src -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/mpc/src  -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../libdecnumber -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../libdecnumber/bid -I../libdecnumber -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/../libbacktrace -I/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421/./isl/include -I/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/isl/include  -o graphite-isl-ast-to-gimple.o -MT graphite-isl-ast-to-gimple.o -MMD -MP -MF ./.deps/graphite-isl-ast-to-gimple.TPo /home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/graphite-isl-ast-to-gimple.cc
In file included from /home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/system.h:772,
                 from /home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/graphite.cc:33:
/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/isl/include/isl/val.h:4:10: fatal error: isl/stdint.h: No such file or directory
    4 | #include <isl/stdint.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1157: graphite.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/system.h:772,
                 from /home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/gcc/graphite-isl-ast-to-gimple.cc:27:
/home/u/Desktop/py-cross/work/toolchain/src/gcc-13.1.0-RC-20230421/isl/include/isl/val.h:4:10: fatal error: isl/stdint.h: No such file or directory
    4 | #include <isl/stdint.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1157: graphite-isl-ast-to-gimple.o] Error 1
rm gcc.pod
make[1]: Leaving directory '/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421/gcc'
make: *** [Makefile:4630: all-gcc] Error 2
[18:35:49][INFO] [TOOLCHAIN] Error [2] running process: 'make all-gcc -j6 V=1' in '/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421'
[18:35:49][INFO] [TOOLCHAIN] You can try deleting the product/dependency folder: '/home/u/Desktop/py-cross/work/toolchain/bld/gcc-13.1.0-RC-20230421' and re-run the script
DeadSix27 commented 1 year ago

Install libisl, idk the package name on ubuntu, I use archlinux and its libisl there

EDIT: I'm not done with the script at all, it's still just WIP and has no validation at all.

hydra3333 commented 1 year ago

Ta. Apparently Arch doesn't run under vmware. Oh well, will keep looking.

Best Regards !

DeadSix27 commented 1 year ago

Ta. Apparently Arch doesn't run under vmware. Oh well, will keep looking.

Best Regards !

should run fine, every OS should.. but libisl should exist on ubuntu too..

hydra3333 commented 1 year ago

OK, I'll try ubuntu package libisl-dev