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

build failed with ARCH=v7n and WITH_CUDA OFF #91

Open
huyn opened this issue Feb 10, 2017 · 2 comments
Open

build failed with ARCH=v7n and WITH_CUDA OFF #91

huyn opened this issue Feb 10, 2017 · 2 comments

Comments

@huyn
Copy link

huyn commented Feb 10, 2017

Building successfully with ARCH=v8 and WITH_CUDA OFF under macos, but failed with ARCH=v7n.
What is the problem?
Thanks

[ 53%] Linking C shared library ../../../../../../install/libs/armeabi-v7a/libTH.so
cd /Users/huyaonan/torch_project/torch-android/build/distro/pkg/torch/lib/TH && /usr/local/Cellar/cmake/3.7.2/bin/cmake -E cmake_link_script CMakeFiles/TH.dir/link.txt --verbose=1
/Users/huyaonan/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc  -fPIC -Wno-psabi --sysroot=/Users/huyaonan/android-ndk-r13b/platforms/android-21/arch-arm -funwind-tables -finline-limit=64 -fsigned-char -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=neon -fdata-sections -ffunction-sections -Wa,--noexecstack -DDISABLE_POSIX_MEMALIGN -Werror=implicit-function-declaration -Werror=format -fopenmp -fopenmp -DTH_HAVE_THREAD -mthumb -fomit-frame-pointer -fno-strict-aliasing -O3 -DNDEBUG  -Wl,--no-undefined -Wl,-allow-shlib-undefined -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now  -shared -Wl,-soname,libTH.so -o ../../../../../../install/libs/armeabi-v7a/libTH.so CMakeFiles/TH.dir/THGeneral.c.o CMakeFiles/TH.dir/THHalf.c.o CMakeFiles/TH.dir/THAllocator.c.o CMakeFiles/TH.dir/THStorage.c.o CMakeFiles/TH.dir/THTensor.c.o CMakeFiles/TH.dir/THBlas.c.o CMakeFiles/TH.dir/THLapack.c.o CMakeFiles/TH.dir/THLogAdd.c.o CMakeFiles/TH.dir/THRandom.c.o CMakeFiles/TH.dir/THFile.c.o CMakeFiles/TH.dir/THDiskFile.c.o CMakeFiles/TH.dir/THMemoryFile.c.o CMakeFiles/TH.dir/THAtomic.c.o CMakeFiles/TH.dir/THVector.c.o  -L/Users/huyaonan/torch_project/torch-android/install/libs/armeabi-v7a -lm  "/Users/huyaonan/android-ndk-r13b/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libsupc++.a"
[ 53%] Built target TH
make: *** [all] Error 2
@paramsen
Copy link
Contributor

paramsen commented Mar 6, 2017

Hi, you are using cmake 3.7.2 which could cause this. I just built v7 and v8 (both with and w/o CUDA) using cmake v3.2.2, give it a try.

@huyn
Copy link
Author

huyn commented Mar 14, 2017

Hi, @paramsen Thank your for your advice, I will have a try.

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