-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM toolchain doesn't build on arch linux #34
Comments
This got broken due to changes in nixpkgs (probably update of isl library). I will fix it shortly.
To have more control over toolchain options and to allow updating the compiler more easily. |
Should be fixed, please let me know if it works. |
Not fixed, I get a different error now: g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump -pthread -g -O2 -pthread -static-libstdc++ -static-libgcc -o incremental-dump incremental-dump.o i386.o x86_64.o sparc.o powerpc.o arm.o arm-reloc-property.o tilegx.o mips.o aarch64.o aarch64-reloc-property.o s390.o libgold.a ../libiberty/libiberty.a -lz -ldl |
I'll look into it. You can work around it by switching to the nixos-19.03
channel using nix-channel.
…On Saturday, June 15, 2019, Armin van der Togt ***@***.***> wrote:
Not fixed, I get a different error now:
g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump -pthread -g -O2
-pthread -static-libstdc++ -static-libgcc -o incremental-dump
incremental-dump.o i386.o x86_64.o sparc.o powerpc.o arm.o
arm-reloc-property.o tilegx.o mips.o aarch64.o aarch64-reloc-property.o
s390.o libgold.a ../libiberty/libiberty.a -lz -ldl
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1006: incremental-dump] Error 1
make[4]: Leaving directory '/build/binutils-build/gold'
make[3]: *** [Makefile:1146: all-recursive] Error 1
make[3]: Leaving directory '/build/binutils-build/gold'
make[2]: *** [Makefile:886: all] Error 2
make[2]: Leaving directory '/build/binutils-build/gold'
make[1]: *** [Makefile:6043: all-gold] Error 2
make[1]: Leaving directory '/build/binutils-build'
make: *** [Makefile:849: all] Error 2
builder for '/nix/store/w6jny3pl3yd2x162q8pivq1bxymrr6
gb-gnu-toolchain-arm-none-eabi-8.3.0.drv' failed with exit code 2
cannot build derivation '/nix/store/m2kw9jf61mc8yrfvngqq7kzl97y8zls0-aprinter-build.drv':
1 dependencies couldn't be built
error: build of '/nix/store/m2kw9jf61mc8yrfvngqq7kzl97y8zls0-aprinter-build.drv'
failed
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34?email_source=notifications&email_token=AAUBHMJBAOOJNKO6FOYMFHTP2U2V7A5CNFSM4HXWUZOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXY56ZY#issuecomment-502390631>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUBHMMQUYDBTC6MLH6GB3LP2U2V7ANCNFSM4HXWUZOA>
.
|
Tried it with nix channels nixos-unstable and nixpkgs-unstable, ARM toolchain and firmware build without error for me. It's not clear from your comment what the error is, the actual error message was earlier. Maybe running out of disk? |
It has nothing to do with disk space, and there is no previous error. Below is a more complete log. Also, I have no idea how to switch to a different channel. I tried following the nix documentation, but it is very unclear to me, and my current efforts have not resulted in any changes. make[5]: Leaving directory '/build/binutils-build/gold/testsuite' |
This is a very strange case because usually the error "ld returned 1 exit status" appears after a previous error from the linker. Try changing and updating Nix channels like this:
Then when you build you should redirect all output to a file so you can post the complete output if it still fails ( |
With the nix stable channel, I still run into the same problem. Log file attached. |
Maybe the build is accidentally picking up some libraries from
(note: By the way I figured the nix-channel commands I gave are not right, but you probably figured that out yourself. The command to add the channel should be:
|
Anyway I'm trying this myself in a Fedora VM with a single-user Nix install and if it works here that way it really should work for you. |
Actually sandbox on is the default and the mention of |
I ran the build in a Fedora 30 VM and the toolchain built fine, with
This should get your build working as long as you're also using the current |
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
The text was updated successfully, but these errors were encountered: