-
Notifications
You must be signed in to change notification settings - Fork 741
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
Raspberry Pi 32bit build failure - OpenCV #805
Comments
That just looks like it's running out of memory. Make sure that's not happening by monitoring memory usage with |
Yep - tried it again while running a free -m every second For Tensorflow a native Pi build you have to alter a build script to limit Java's memory use with -J-Xmx500M or similar. Can I try something like that with Maven + if so add what switches + where
Lots of usage too
|
GCC is the issue, not Maven. I'm not aware of any such switch for GCC. Try to add more swap space. |
I'm using 8G Swap on a 4G 32 bit Pi. A potential problem is the 4G address space on 32 but OSes as it gets much further on my 64 bit Nano. I'll mess around a bit and see what I can come up with... |
Right, it won't be able to get much higher than 2 or 3 GB... Disabling things like compiler optimizations usually reduces memory usage. |
I just gave it another do with swappiness set to 90 - still failed Next idea - try compiling it on 64 bit with a -m32 switch - it compiles fine on arm64, If this works then all the cppbuild.sh scripts are going to need thee -32 - worry about that if test works While it's not an ideal solution it's an acceptable one IMHO as it only requires a 64 bit OS to build (I hope) |
Something nice - gcc-multilib-arm-linux-gnueabihf includes arm-linux-gnueabihf-gcc on 64-bit so no changes required to cppbuild.sh, it appears JavaCPP compiled correctly |
Oh well - too much to hope for I guess. It's trying to compile some 64 bit ASM This is openblas... Invoked with
|
Compilation test using Oracle JDK 8
debug.opencv.log.gz
This appears to be the error in question...
opencv/target/native/org/bytedeco/opencv/linux-armhf/jniopencv_core.cpp:124812:1: internal compiler error: Segmentation fault
A nice specific error this time with -X -e
The text was updated successfully, but these errors were encountered: