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

compiling on i386 with USE_SSE seems thats fails #122

Closed
sergiomb2 opened this issue Sep 27, 2014 · 5 comments
Closed

compiling on i386 with USE_SSE seems thats fails #122

sergiomb2 opened this issue Sep 27, 2014 · 5 comments

Comments

@sergiomb2
Copy link
Contributor

Hi, I'm trying compiling on i386 (i686) and fails on all Fedora version (19 to rawhide) with:

libimagequant.c: In function 'liq_attr_create_with_allocator':
libimagequant.c:162:9: error: inconsistent operand constraints in an 'asm'
cpuid(1, a, b, c, d);

the code in question is :

if USE_SSE

inline static bool is_sse_available()
{

if (defined(x86_64) || defined(__amd64))

return true;

else

int a,b,c,d;
cpuid(1, a, b, c, d);
return d & (1<<25); // edx bit 25 is set when SSE is present

endif

}

endif

I will try disable USE_SSE on i386 arches ...

Thanks

@sergiomb2
Copy link
Contributor Author

I force disable-sse {ix86} [1] to build package and submit pngquant-2.3.0 as an update for Fedora 21 (alpha) [2]
[1] http://pkgs.fedoraproject.org/cgit/pngquant.git/commit/?id=83e69d99b7c0061df2c0e82ee58b0be29ac5cd19
[2] https://admin.fedoraproject.org/updates/pngquant-2.3.0-2.fc21

@kornelski
Copy link
Owner

Disabling SSE on 386 makes sense.

What compiler (version) are you using?

@sergiomb2
Copy link
Contributor Author

@kornelski
Copy link
Owner

I've tested with GCC 4.9.1 on OS X and -m32 and it builds fine, so I don't know what the compiler doesn't like here. Sorry.

@sergiomb2
Copy link
Contributor Author

Anyway with last shared libraries stuff I don't need disable SSE anymore !

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