Skip to content

ARM toolchain doesn't build on arch linux #34

@armint

Description

@armint

When trying to build on arch linux, the build scripts first tries to build a toolchain, but this fails on current arch linux. (Why is a custom toolchain being built, why not use gnu arm embedded toolchain?).

The compiler output:

g++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-8.2.0/gcc -I../../gcc-8.2.0/gcc/. -I../../gcc-8.2.0/gcc/../include -I../../gcc-8.2.0/gcc/../libcpp/include -I../../gcc-8.2.0/gcc/../libdecnumber -I../../gcc-8.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.2.0/gcc/../libbacktrace -o graphite-isl-ast-to-gimple.o -MT graphite-isl-ast-to-gimple.o -MMD -MP -MF ./.deps/graphite-isl-ast-to-gimple.TPo ../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In function 'void ivs_params_clear(ivs_params&)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:83:7: error: 'isl_id_free' was not declared in this scope
isl_id_free (it->first);
^~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:83:7: note: suggested alternative: 'isl_aff_free'
isl_id_free (it->first);
^~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In member function 'tree_node* translate_isl_ast_to_gimple::gcc_expression_from_isl_ast_expr_id(tree, isl_ast_expr*, ivs_params&)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:262:3: error: 'isl_id_free' was not declared in this scope
isl_id_free (tmp_isl_id);
^~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:262:3: note: suggested alternative: 'isl_aff_free'
isl_id_free (tmp_isl_id);
^~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In member function 'loop* translate_isl_ast_to_gimple::graphite_create_new_loop(edge, isl_ast_node*, loop_p, tree, tree, tree, ivs_params&)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:598:5: error: 'isl_id_free' was not declared in this scope
isl_id_free (res->first);
^~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:598:5: note: suggested alternative: 'isl_aff_free'
isl_id_free (res->first);
^~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In member function 'edge_def* translate_isl_ast_to_gimple::translate_isl_ast_for_loop(loop_p, isl_ast_node*, edge, tree, tree, tree, ivs_params&)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:638:53: error: 'isl_id_get_user' was not declared in this scope
ast_build_info for_info = (ast_build_info ) isl_id_get_user (id);
^~~~~~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:638:53: note: suggested alternative: 'isl_arg_user'
ast_build_info for_info = (ast_build_info ) isl_id_get_user (id);
^~~~~~~~~~~~~~~
isl_arg_user
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:641:7: error: 'isl_id_free' was not declared in this scope
isl_id_free (id);
^~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:641:7: note: suggested alternative: 'isl_aff_free'
isl_id_free (id);
^~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In member function 'edge_def
translate_isl_ast_to_gimple::translate_isl_ast_node_user(isl_ast_node
, edge, ivs_params&)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:802:31: error: 'isl_id_get_user' was not declared in this scope
poly_bb_p pbb = (poly_bb_p) isl_id_get_user (name_id);
^~~~~~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:802:31: note: suggested alternative: 'isl_arg_user'
poly_bb_p pbb = (poly_bb_p) isl_id_get_user (name_id);
^~~~~~~~~~~~~~~
isl_arg_user
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:808:3: error: 'isl_id_free' was not declared in this scope
isl_id_free (name_id);
^~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:808:3: note: suggested alternative: 'isl_aff_free'
isl_id_free (name_id);
^~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c: In function 'isl_id
ast_build_before_for(isl_ast_build
, void*)':
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1367:19: error: 'isl_space_dim' was not declared in this scope
int dimension = isl_space_dim (schedule_space, isl_dim_out);
^~~~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1367:19: note: suggested alternative: 'isl_aff_dim'
int dimension = isl_space_dim (schedule_space, isl_dim_out);
^~~~~~~~~~~~~
isl_aff_dim
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1371:3: error: 'isl_space_free' was not declared in this scope
isl_space_free (schedule_space);
^~~~~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1371:3: note: suggested alternative: 'isl_aff_free'
isl_space_free (schedule_space);
^~~~~~~~~~~~~~
isl_aff_free
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1372:16: error: 'isl_id_alloc' was not declared in this scope
isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
^~~~~~~~~~~~
../../gcc-8.2.0/gcc/graphite-isl-ast-to-gimple.c:1372:16: note: suggested alternative: 'isl_mat_alloc'
isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
^~~~~~~~~~~~
isl_mat_alloc
make[1]: *** [Makefile:1110: graphite-isl-ast-to-gimple.o] Error 1
make[1]: Leaving directory '/build/gcc-build-stage1/gcc'
make: *** [Makefile:4244: all-gcc] Error 2
builder for '/nix/store/zksn32crjfdm3hg8j7fipwcfp04csbw3-gnu-toolchain-arm-none-eabi-8.2.0.drv' failed with exit code 2
cannot build derivation '/nix/store/45178665j9mlqwmimprg9zcik15gxky0-aprinter-build.drv': 1 dependencies couldn't be built
error: build of '/nix/store/45178665j9mlqwmimprg9zcik15gxky0-aprinter-build.drv' failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions