Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

Add arm-linux-gnueabihf linker when adding arm-linux-gnueabihf target #59

Open
johnjelinek opened this issue May 27, 2016 · 11 comments
Open

Comments

@johnjelinek
Copy link

Since the arm-linux-gnueabihf target will fail a cargo build --target=arm-unknown-linux-gnueabihf without an appropriate linker, I think the linker should be automatically checked / included in the target install.

@johnjelinek
Copy link
Author

I'm trying to figure out how to set up the linker manually in the meantime, it's tricky: crosstool-ng/crosstool-ng#396 (comment)

@johnjelinek
Copy link
Author

OSX doesn't allow static binaries

@bhundven
Copy link

Just disable static linking in your menuconfig, and you should be able to move forward ;)

@bhundven
Copy link

You might have to look in multiple spots. Maybe just edit the .config and grep for STATIC

@johnjelinek
Copy link
Author

ok, retrying

@johnjelinek
Copy link
Author

@bhundven: next error:

[INFO ]  Installing C library headers & start files
[EXTRA]    Configuring C library
[ERROR]    configure: error:
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library headers & start files'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc.sh@348]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@153]
[ERROR]  >>        called from: do_libc_start_files[scripts/build/libc/glibc.sh@70]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/Volumes/CrossTool2NG/crosstool-ng-1.22.0/docs/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 30:28.00)
[30:29] / make[1]: *** [build] Error 1
make: *** [build.4] Error 2

@johnjelinek
Copy link
Author

next error:

[INFO ]  Installing C library
[ERROR]    /Volumes/CrossTool2NG/armv7-unknown-linux-gnueabihf/.build/src/newlib-2.3.0.20160226/newlib/libc/sys/arm/arm.h:32:25: fatal error: acle-compat.h: No such file or directory
[ERROR]    make[7]: *** [lib_a-trap.o] Error 1
[ERROR]    /Volumes/CrossTool2NG/armv7-unknown-linux-gnueabihf/.build/src/newlib-2.3.0.20160226/newlib/libc/sys/arm/arm.h:32:25: fatal error: acle-compat.h: No such file or directory
[ERROR]    make[7]: *** [lib_a-libcfunc.o] Error 1
[ERROR]    /Volumes/CrossTool2NG/armv7-unknown-linux-gnueabihf/.build/src/newlib-2.3.0.20160226/newlib/libc/sys/arm/arm.h:32:25: fatal error: acle-compat.h: No such file or directory
[ERROR]    make[7]: *** [lib_a-syscalls.o] Error 1
[ERROR]    make[6]: *** [all-recursive] Error 1
[ERROR]    make[6]: *** [crt0.o] Error 1
[ERROR]    make[5]: *** [all-recursive] Error 1
[ERROR]    make[4]: *** [all-recursive] Error 1
[ERROR]    make[3]: *** [all] Error 2
[ERROR]    make[2]: *** [all-target-newlib] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@259]
[ERROR]  >>        called from: do_libc[scripts/build/libc/newlib.sh@128]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@652]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/Volumes/CrossTool2NG/crosstool-ng/docs/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 25:35.00)
[25:35] / make: *** [build] Error 2

@johnjelinek
Copy link
Author

next error:

[ALL  ]    make[3]: *** No rule to make target `/Volumes/CrossTool2NG/armv8-rpi3-linux-gnueabihf/.buil
d/armv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/IBM1388.so', needed by `others'.  Stop.
[ALL  ]    make[3]: *** Waiting for unfinished jobs....
[ALL  ]    /bin/sh ../scripts/move-if-change /Volumes/CrossTool2NG/armv8-rpi3-linux-gnueabihf/.build/a
rmv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/iso8859-7jp.T /Volumes/CrossTool2NG/armv8-r
pi3-linux-gnueabihf/.build/armv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/iso8859-7jp.h
[ALL  ]    /bin/sh ../scripts/move-if-change /Volumes/CrossTool2NG/armv8-rpi3-linux-gnueabihf/.build/a
rmv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/cp774.T /Volumes/CrossTool2NG/armv8-rpi3-li
nux-gnueabihf/.build/armv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/cp774.h
[ALL  ]    touch /Volumes/CrossTool2NG/armv8-rpi3-linux-gnueabihf/.build/armv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/iso8859-7jp.stmp
[ALL  ]    touch /Volumes/CrossTool2NG/armv8-rpi3-linux-gnueabihf/.build/armv8-rpi3-linux-gnueabihf/build/build-libc-final/iconvdata/cp774.stmp
[ERROR]    make[2]: *** [iconvdata/others] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@259]
[ERROR]  >>        called from: do_libc_backend_once[scripts/build/libc/glibc.sh@471]
[ERROR]  >>        called from: do_libc_backend[scripts/build/libc/glibc.sh@152]
[ERROR]  >>        called from: do_libc[scripts/build/libc/glibc.sh@57]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@652]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/Volumes/CrossTool2NG/crosstool-ng/docs/B - Known issues.txt'
[ERROR]
[ERROR]  (elapsed: 54:36.00)

@johnjelinek
Copy link
Author

ok, I guess I'm giving up for now. I suppose it's more convenient to spin up a VM w/ ubuntu to do the cross-compile. Maybe someone else can give it a shot.

@mmayer
Copy link

mmayer commented May 3, 2017

It's been a while since the last update to the thread. Hopefully this still helps.

Increasing the number of open files should get you past the "IBM1388.so" error.

I did uname -n 2048, but uname -n 1024 may be sufficient. (By default macOS limits open files to 256.)

@Czujackt
Copy link

@mmayer the command uname -n 2048 is wrong, you have to use ulimit -n 2048

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

No branches or pull requests

4 participants