Jump to content
Eternal Lands Official Forums
Faxie

Error compiling

Recommended Posts

I get this error when I try to compile the git-client:

 

2d_objects.c:1:0: error: CPU you selected does not support x86-64 instruction set

 

Anyone know how I can solve this?

 

Edit: I just saw I made a new topic. Could someone place this is the right topic please?

Edited by DonC

Share this post


Link to post
Share on other sites

I get this error when I try to compile the git-client:

 

2d_objects.c:1:0: error: CPU you selected does not support x86-64 instruction set

 

Anyone know how I can solve this?

Edit make.conf, and change the line

PLATFORM=-march=i686

to

PLATFORM=-march=native

 

Question to the devs: I have also run into this a couple of times. Would it be worthwile to make this change to make.defaults?

Share this post


Link to post
Share on other sites

I get this error when I try to compile the git-client:

 

2d_objects.c:1:0: error: CPU you selected does not support x86-64 instruction set

 

Anyone know how I can solve this?

Edit make.conf, and change the line

PLATFORM=-march=i686

to

PLATFORM=-march=native

 

Question to the devs: I have also run into this a couple of times. Would it be worthwile to make this change to make.defaults?

 

Thanks for replying. This worked.

Edited by DonC

Share this post


Link to post
Share on other sites

PLATFORM=-march=native

Question to the devs: I have also run into this a couple of times. Would it be worthwile to make this change to make.defaults?

I'm sure its been discussed before (I could not find the thread) but there was a gcc version issue preventing the change. However, it was a long time ago so should be fine now.

Share this post


Link to post
Share on other sites

PLATFORM=-march=native

Question to the devs: I have also run into this a couple of times. Would it be worthwile to make this change to make.defaults?

I'm sure its been discussed before (I could not find the thread) but there was a gcc version issue preventing the change. However, it was a long time ago so should be fine now.

I did some digging, and -march=native was introduced in gcc 4.2, 4.5 years ago. Since I suspect that

*) most people will have updated by now, and

*) there are more x86_64 users than there are users of older gcc versions

I will change the default.

Edited by Grum

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×