Skip to content
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

Open
armint opened this issue Jun 13, 2019 · 12 comments
Open

ARM toolchain doesn't build on arch linux #34

armint opened this issue Jun 13, 2019 · 12 comments

Comments

@armint
Copy link
Contributor

armint commented Jun 13, 2019

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

@ambrop72
Copy link
Owner

ambrop72 commented Jun 14, 2019

This got broken due to changes in nixpkgs (probably update of isl library). I will fix it shortly.

Why is a custom toolchain being built, why not use gnu arm embedded toolchain

To have more control over toolchain options and to allow updating the compiler more easily.

ambrop72 added a commit that referenced this issue Jun 14, 2019
Fixes problem with isl 0.20 (#34).
@ambrop72
Copy link
Owner

Should be fixed, please let me know if it works.

@armint
Copy link
Contributor Author

armint commented Jun 15, 2019

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/w6jny3pl3yd2x162q8pivq1bxymrr6gb-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

@ambrop72
Copy link
Owner

ambrop72 commented Jun 15, 2019 via email

@ambrop72
Copy link
Owner

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?

@armint
Copy link
Contributor Author

armint commented Jun 18, 2019

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'
make[4]: Leaving directory '/build/binutils-build/gold/testsuite'
make[4]: Entering directory '/build/binutils-build/gold'
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=archive.o -pthread -g -O2 -c -o archive.o ../../binutils-2.31.1/gold/archive.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=attributes.o -pthread -g -O2 -c -o attributes.o ../../binutils-2.31.1/gold/attributes.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=binary.o -pthread -g -O2 -c -o binary.o ../../binutils-2.31.1/gold/binary.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=common.o -pthread -g -O2 -c -o common.o ../../binutils-2.31.1/gold/common.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=compressed_output.o -pthread -g -O2 -c -o compressed_output.o ../../binutils-2.31.1/gold/compressed_output.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=copy-relocs.o -pthread -g -O2 -c -o copy-relocs.o ../../binutils-2.31.1/gold/copy-relocs.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=cref.o -pthread -g -O2 -c -o cref.o ../../binutils-2.31.1/gold/cref.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=defstd.o -pthread -g -O2 -c -o defstd.o ../../binutils-2.31.1/gold/defstd.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=descriptors.o -pthread -g -O2 -c -o descriptors.o ../../binutils-2.31.1/gold/descriptors.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dirsearch.o -pthread -g -O2 -c -o dirsearch.o ../../binutils-2.31.1/gold/dirsearch.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dynobj.o -pthread -g -O2 -c -o dynobj.o ../../binutils-2.31.1/gold/dynobj.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwarf_reader.o -pthread -g -O2 -c -o dwarf_reader.o ../../binutils-2.31.1/gold/dwarf_reader.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ehframe.o -pthread -g -O2 -c -o ehframe.o ../../binutils-2.31.1/gold/ehframe.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=errors.o -pthread -g -O2 -c -o errors.o ../../binutils-2.31.1/gold/errors.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=expression.o -pthread -g -O2 -c -o expression.o ../../binutils-2.31.1/gold/expression.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=fileread.o -pthread -g -O2 -c -o fileread.o ../../binutils-2.31.1/gold/fileread.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=gc.o -pthread -g -O2 -c -o gc.o ../../binutils-2.31.1/gold/gc.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=gdb-index.o -pthread -g -O2 -c -o gdb-index.o ../../binutils-2.31.1/gold/gdb-index.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=gold.o -pthread -g -O2 -c -o gold.o ../../binutils-2.31.1/gold/gold.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=gold-threads.o -pthread -g -O2 -c -o gold-threads.o ../../binutils-2.31.1/gold/gold-threads.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=icf.o -pthread -g -O2 -c -o icf.o ../../binutils-2.31.1/gold/icf.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental.o -pthread -g -O2 -c -o incremental.o ../../binutils-2.31.1/gold/incremental.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=int_encoding.o -pthread -g -O2 -c -o int_encoding.o ../../binutils-2.31.1/gold/int_encoding.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=layout.o -pthread -g -O2 -c -o layout.o ../../binutils-2.31.1/gold/layout.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=mapfile.o -pthread -g -O2 -c -o mapfile.o ../../binutils-2.31.1/gold/mapfile.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=merge.o -pthread -g -O2 -c -o merge.o ../../binutils-2.31.1/gold/merge.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=nacl.o -pthread -g -O2 -c -o nacl.o ../../binutils-2.31.1/gold/nacl.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=object.o -pthread -g -O2 -c -o object.o ../../binutils-2.31.1/gold/object.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=options.o -pthread -g -O2 -c -o options.o ../../binutils-2.31.1/gold/options.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=output.o -pthread -g -O2 -c -o output.o ../../binutils-2.31.1/gold/output.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=parameters.o -pthread -g -O2 -c -o parameters.o ../../binutils-2.31.1/gold/parameters.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=plugin.o -pthread -g -O2 -c -o plugin.o ../../binutils-2.31.1/gold/plugin.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=readsyms.o -pthread -g -O2 -c -o readsyms.o ../../binutils-2.31.1/gold/readsyms.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=reduced_debug_output.o -pthread -g -O2 -c -o reduced_debug_output.o ../../binutils-2.31.1/gold/reduced_debug_output.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=reloc.o -pthread -g -O2 -c -o reloc.o ../../binutils-2.31.1/gold/reloc.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=resolve.o -pthread -g -O2 -c -o resolve.o ../../binutils-2.31.1/gold/resolve.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=script-sections.o -pthread -g -O2 -c -o script-sections.o ../../binutils-2.31.1/gold/script-sections.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=script.o -pthread -g -O2 -c -o script.o ../../binutils-2.31.1/gold/script.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=stringpool.o -pthread -g -O2 -c -o stringpool.o ../../binutils-2.31.1/gold/stringpool.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=symtab.o -pthread -g -O2 -c -o symtab.o ../../binutils-2.31.1/gold/symtab.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=target.o -pthread -g -O2 -c -o target.o ../../binutils-2.31.1/gold/target.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=target-select.o -pthread -g -O2 -c -o target-select.o ../../binutils-2.31.1/gold/target-select.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=timer.o -pthread -g -O2 -c -o timer.o ../../binutils-2.31.1/gold/timer.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=version.o -pthread -g -O2 -c -o version.o ../../binutils-2.31.1/gold/version.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=workqueue.o -pthread -g -O2 -c -o workqueue.o ../../binutils-2.31.1/gold/workqueue.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=workqueue-threads.o -pthread -g -O2 -c -o workqueue-threads.o ../../binutils-2.31.1/gold/workqueue-threads.cc
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=yyscript.o -pthread -g -O2 -c -o yyscript.o ../../binutils-2.31.1/gold/yyscript.c
rm -f libgold.a
ar cru libgold.a archive.o attributes.o binary.o common.o compressed_output.o copy-relocs.o cref.o defstd.o descriptors.o dirsearch.o dynobj.o dwarf_reader.o ehframe.o errors.o expression.o fileread.o gc.o gdb-index.o gold.o gold-threads.o icf.o incremental.o int_encoding.o layout.o mapfile.o merge.o nacl.o object.o options.o output.o parameters.o plugin.o readsyms.o reduced_debug_output.o reloc.o resolve.o script-sections.o script.o stringpool.o symtab.o target.o target-select.o timer.o version.o workqueue.o workqueue-threads.o yyscript.o
ar: u' modifier ignored since D' is the default (see `U')
ranlib libgold.a
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp.o -pthread -g -O2 -c -o dwp.o ../../binutils-2.31.1/gold/dwp.cc
g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dwp -pthread -g -O2 -static-libstdc++ -static-libgcc -o dwp dwp.o libgold.a ../libiberty/libiberty.a -lz -ldl
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=main.o -pthread -g -O2 -c -o main.o ../../binutils-2.31.1/gold/main.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=i386.o -pthread -g -O2 -c -o i386.o ../../binutils-2.31.1/gold/i386.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=x86_64.o -pthread -g -O2 -c -o x86_64.o ../../binutils-2.31.1/gold/x86_64.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=sparc.o -pthread -g -O2 -c -o sparc.o ../../binutils-2.31.1/gold/sparc.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=powerpc.o -pthread -g -O2 -c -o powerpc.o ../../binutils-2.31.1/gold/powerpc.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=arm.o -pthread -g -O2 -c -o arm.o ../../binutils-2.31.1/gold/arm.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=arm-reloc-property.o -pthread -g -O2 -c -o arm-reloc-property.o ../../binutils-2.31.1/gold/arm-reloc-property.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=tilegx.o -pthread -g -O2 -c -o tilegx.o ../../binutils-2.31.1/gold/tilegx.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=mips.o -pthread -g -O2 -c -o mips.o ../../binutils-2.31.1/gold/mips.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=aarch64.o -pthread -g -O2 -c -o aarch64.o ../../binutils-2.31.1/gold/aarch64.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=aarch64-reloc-property.o -pthread -g -O2 -c -o aarch64-reloc-property.o ../../binutils-2.31.1/gold/aarch64-reloc-property.cc
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=s390.o -pthread -g -O2 -c -o s390.o ../../binutils-2.31.1/gold/s390.cc
g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=ld-new -pthread -g -O2 -static-libstdc++ -static-libgcc -o ld-new main.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
g++ -DHAVE_CONFIG_H -I. -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold -I../../binutils-2.31.1/gold/../include -I../../binutils-2.31.1/gold/../elfcpp -DLOCALEDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/share/locale"" -DBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/bin"" -DTOOLBINDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/bin"" -DTOOLLIBDIR=""/nix/store/xam46691vkypp53sm3yka7l13dbhfvfv-gnu-toolchain-arm-none-eabi-8.3.0/arm-none-eabi/lib"" -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=incremental-dump.o -pthread -g -O2 -c -o incremental-dump.o ../../binutils-2.31.1/gold/incremental-dump.cc
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/w6jny3pl3yd2x162q8pivq1bxymrr6gb-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

@ambrop72
Copy link
Owner

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:

  • nix-channel --list - you will get something like <NAME> <URL>, note the <NAME>.
  • nix-channel --remove <NAME>
  • nix-channel --add https://nixos.org/channels/nixos-19.03
  • nix-channel --update

Then when you build you should redirect all output to a file so you can post the complete output if it still fails (./tools/build.sh ... 2>&1 >log.txt).

@armint
Copy link
Contributor Author

armint commented Jun 18, 2019

With the nix stable channel, I still run into the same problem. Log file attached.

log.txt

@ambrop72
Copy link
Owner

Maybe the build is accidentally picking up some libraries from /usr and causing a strange failure. Try building with sandbox enabled:

./build.sh ... -- --option sandbox true

(note: -- is used to terminate options to the script itself and start giving options that are forwarded to nix-build)

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:

nix-channel --add https://nixos.org/channels/nixos-19.03 nixpkgs

@ambrop72
Copy link
Owner

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.

@ambrop72
Copy link
Owner

Actually sandbox on is the default and the mention of /build in you output proves it is on. Maybe it's a disk space problem after all? Nix has some logic to decide where to do the build (first checks XDG_RUNTIME_DIR, then TMPDIR, or otherwise uses /tmp). If it ends up doing a build in a tmpfs, it may be running out of space there. You could try running with TMPDIR=/var/tmp.

@ambrop72
Copy link
Owner

I ran the build in a Fedora 30 VM and the toolchain built fine, with nixos-19.03 channel. You can import my build to get it working:

(xz -d | nix-store --import) < toolchain.closure.xz

This should get your build working as long as you're also using the currentnixos-19.03 channel. That is, it should not be be building the toolchain at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants