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

Raspberry Pi B+ build error #28

Open
csbrandt opened this issue Sep 3, 2014 · 0 comments
Open

Raspberry Pi B+ build error #28

csbrandt opened this issue Sep 3, 2014 · 0 comments

Comments

@csbrandt
Copy link

csbrandt commented Sep 3, 2014

Raspbian GNU/Linux 7
Received error after running 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

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

1 participant