You are not logged in.

#1 2012-09-04 11:38:56

nanook
Member
Registered: 2012-09-04
Posts: 3

cc1plus: error: unrecognized command line option "-m64"

I'm running a build script and getting the error below.. My colleges dont get that error building on ubuntu.. I'm running 64 bit arch..

Could this be a missing package or something?

cc1plus: error: unrecognized command line option "-m64"
make[2]: *** [qlog.o] Error 1
make[1]: *** [sub-common-core-all-ordered] Error 2
make[1]: *** Waiting for unfinished jobs....

Offline

#2 2012-09-04 11:53:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,498
Website

Re: cc1plus: error: unrecognized command line option "-m64"

No...  our default gcc package is not multilib - i.e. it is 64 bit only.   So you do not need that flag.

Offline

#3 2012-09-04 12:43:07

nanook
Member
Registered: 2012-09-04
Posts: 3

Re: cc1plus: error: unrecognized command line option "-m64"

The build script sets that option somewhere though. I know I have been able to build it a long time ago without changing the build script.

The build script will build for 32 bit as that is what our embeded device is running. I do have the gcc-multilib package installed and I'm build some other project of our code base just fine.

Offline

#4 2012-09-04 12:50:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,498
Website

Re: cc1plus: error: unrecognized command line option "-m64"

-m64 will not build 32 bit...

Offline

#5 2012-09-04 12:52:02

nanook
Member
Registered: 2012-09-04
Posts: 3

Re: cc1plus: error: unrecognized command line option "-m64"

but I've been trying to look at the build scripts and I cant find where it adds the -m64 option? Could it be that its added automaticaly by the arch build system somewhere?

And the build script will always build 32 bit so I dont get why they would ever add the -m64 option in our script

Last edited by nanook (2012-09-04 12:53:10)

Offline

Board footer

Powered by FluxBB