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

Build fails on Solaris 10 SPARC with Solaris Studio 12.4 #4

Closed
edechaux opened this issue Apr 11, 2016 · 3 comments
Closed

Build fails on Solaris 10 SPARC with Solaris Studio 12.4 #4

edechaux opened this issue Apr 11, 2016 · 3 comments

Comments

@edechaux
Copy link

I want to build pg_qualstats on a Solaris 10 SPARC with Solaris Studio 12.4 and it fails with the following error :

bash-3.00$ gmake /opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I. -I./ -I/appli/pgsql/9.4.6/include/64/server -I/appli/pgsql/9.4.6/include/64/internal -I/usr/include/libxml2 -I/usr/sfw/include -I/opt/csw/include -c -o pg_qualstats.o pg_qualstats.c cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs "pg_qualstats.c", line 647: invalid cast expression cc: acomp failed for pg_qualstats.c gmake: *** [pg_qualstats.o] Error 2

I am using the master. I have the same error with version 0.0.9 at line 642.
Postgres version is 9.4.6 64 bits

@edechaux edechaux changed the title Build faild on Solaris 10 SPARC with Solaris Studio 12.4 Build fails on Solaris 10 SPARC with Solaris Studio 12.4 Apr 11, 2016
@rdunklau
Copy link
Collaborator

Hello.

It appears the cast is not necessary. Can you remove it, replacing this line:

    hash_search_with_hash_value(pgqs_query_examples_hash, &entry->key, ((pgqsQueryStringHashKey) entry->key).queryid, HASH_REMOVE, NULL);

By this:

    hash_search_with_hash_value(pgqs_query_examples_hash, &entry->key, entry->key.queryid, HASH_REMOVE, NULL);

Thank you !

@edechaux
Copy link
Author

Thanks, it works :

bash-3.00$ gmake /opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -I. -I./ -I/appli/pgsql/9.4.6/include/64/server -I/appli/pgsql/9.4.6/include/64/internal -I/usr/include/libxml2 -I/usr/sfw/include -I/opt/csw/include -c -o pg_qualstats.o pg_qualstats.c cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs /opt/studio11/SUNWspro/bin/cc -Xa -xO3 -xspace -Xa -xildoff -xCC -xarch=generic64 -KPIC -L/appli/pgsql/9.4.6/lib/64 -L/usr/lib -L/usr/sfw/lib/64 -L/opt/csw/lib/64 -Wl,-R'/appli/pgsql/9.4.6/lib/64' -G -o pg_qualstats.so pg_qualstats.o cc: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit programs

@rjuju
Copy link
Member

rjuju commented Aug 11, 2019

I integrated this change in the tree, in case someone else face this issue.

@rjuju rjuju closed this as completed Aug 11, 2019
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

3 participants