Open csbrandt opened 10 years ago
Raspbian GNU/Linux 7 Received error after running rake
rake
configure:14111: checking for correct temporary object destruction order configure:14139: c++ -o conftest -fno-strict-aliasing -pthread -march=armv7-a -marm -mfloat-abi=softfp -pipe -lpthread conftest.C -ldl 1>&5 /usr/bin/ld: error: conftest uses VFP register arguments, /tmp/ccHjkPhl.o does not /usr/bin/ld: failed to merge target specific data of file /tmp/ccHjkPhl.o collect2: ld returned 1 exit status configure: failed program was: #line 14116 "configure" #include "confdefs.h" #ifdef __cplusplus extern "C" void exit(int); #endif class A { public: A(int& x) : mValue(x) {} ~A() { mValue--; } operator char**() { return 0; } private: int& mValue; }; void func(char **arg) {} int m=2; void test() { func(A(m)); if (m==1) m = 0; } int main() { test(); return(m); }
Edit: The -march=armv7-a does not look correct as the Pi is having ARMv6 architecture
-march=armv7-a
Raspbian GNU/Linux 7 Received error after running
rake
Edit: The
-march=armv7-a
does not look correct as the Pi is having ARMv6 architecture