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

32-bit compilation fails when using AIX and Open XLC #7613

Open
davidjmccann opened this issue Jan 21, 2025 · 0 comments
Open

32-bit compilation fails when using AIX and Open XLC #7613

davidjmccann opened this issue Jan 21, 2025 · 0 comments

Comments

@davidjmccann
Copy link
Contributor

I'm trying to build OMR 0.4.0 on AIX using configure/make.

Having worked around a number of issues I've managed to get it to build 64-bit using Open XLC 17.1.

However 32-bit compilation seems to have additional issues.

rules.aix.mk seems to be missing sections when OMR_ENV_DATA64 == 0.

And then gettimebase.c also fails in this way:
/opt/IBM/openxlC/17.1.1/bin/ibm-clang -DICOL -DAMQ_INTERNAL_BUILD -I. -I../../include_core -I../../nls -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -DRS6000 -DAIXPPC -D_LARGE_FILES -c -m32 -mcp
u=power7 -fno-strict-aliasing -std=c89 -O0 -g -DICOL -DAMQ_INTERNAL_BUILD -o gettimebase.o gettimebase.c
gettimebase.c:75:3: error: use of undeclared identifier 'asm'
asm volatile("mftbu %0" : "=r" (upper));
^
gettimebase.c:76:3: error: use of undeclared identifier 'asm'
asm volatile("mftb %0" : "=r" (lower));
^
gettimebase.c:77:3: error: use of undeclared identifier 'asm'
asm volatile("mftbu %0" : "=r" (upper2));
^
3 errors generated.

Again, there's no corresponding section for Open XLC when #if !defined(OMR_ENV_DATA64)...

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