-
Notifications
You must be signed in to change notification settings - Fork 431
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 error #7618
Comments
would you please take a look and give me a hint to fix it?'' Thanks, -- Jin |
@dmitrygx Thanks. it's fixed. But now I'm getting the following errors. Do you have any idea? make[2]: Entering directory '/home/jinchen/TEST/ucx-1.11.2/src/tools/info' |
thanks! |
I'm not using gnu c library. If I do want to use it, how to specify it on the configuration step? Thanks. |
@jchensw e.g. specify CC=gcc when launching configure. btw, did you check the PR without glibc? |
Not yet. I will do it right now. |
@dmitrygx It could not fix the issue. Maybe I missed something here. Would you please give me more specific suggestions? Thanks. |
did you run |
I checked out the master branch, and did 993 18:24 ./autogen.sh |
do you mean that you checked out changes from #7619 instead of the master branch? |
|
I did followed #7619, but the error is still there. So I followed your instruction one more time to be sure. And I'm still getting them make install-am |
~/TEST/ucx$git branch
|
We have /usr/lib64/libc.so.6 But I'm not using gcc compiler. Then how do I let ucx know and use libc? Is there a way to specify at configuration? Thanks, |
Here is what I have nm /usr/lib64/libc.a | grep -i ppc_get_timebase |
I did and here is what I got: ~/TEST/ucx$./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I config/m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy autoreconf: running: /usr/bin/autoconf autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force autoreconf: Leaving directory `.' |
@jchensw could you pls share the output of the following command launched from UCX root directory:
|
I just completed two successful builds on Power9 ppc64le, first using |
ls -ltr config.h No output. |
hmm, interesting.
|
@jchensw sorry, I made a mistake, it should be "HAVE_DECL___PPC" instead of "HAVE_DECL___PCC":
|
~/TEST/ucx$grep "HAVE_DECL___PPC" ./config.h |
~/TEST/ucx$which lscpu |
yes, it sounds like a good suggestion |
~/TEST/ucx$ git fetch dmitrygx ~/TEST/ucx$ git checkout dmitrygx/topic/ucm/bistro_ppc_fix ~/TEST/ucx$ git branch
~/TEST/ucx$ grep "HAVE___PPC" ./config.h No output. |
this should be checked after ./autogen && ./configure |
Here is what I have after ./autogen && ./configure ~/TEST/ucx$grep "HAVE___PPC" ./config.h |
I'm still getting the same error, but this time from a different file: make[2]: Entering directory '/home/jinchen/TEST/ucx/src/tools/perf/lib' "/usr/include/sys/platform/ppc.h", line 31: error #20: identifier "__builtin_ppc_get_timebase" is undefined 1 error detected in the compilation of "ucp_tests.cc". |
my env:
|
I'm using nvhpc compiler, not gcc compiler, but we do have glibc. |
thanks for the additional information. @jchensw could you pull the latest changes from my PR and try "./autogen && ./configure && make" again? |
@jchensw which nvhpc version are you using? |
Sorry for the late response. The errors are still there : 1028 17:25 git fetch dmitrygx
1029 17:26 git checkout dmitrygx/topic/ucm/bistro_ppc_fix 1030 17:26 git branch
|
I'm using
|
@jchensw could you try the latest state of the PR, pls? |
I did a fresh start: and I'm still getting the same error: Making install in lib |
Should I try #7620? |
@jchensw we got an answer from nvc++ compiler folks that it doesn't fully support some built-ins, especially on PPC. |
fyi, this is my build config (from the tail of the configure output):
|
Thanks. gcc works. |
thanks for confirming it. |
make install
Making install in src/ucm
make[1]: Entering directory '/home/jinchen/TEST/ucx-1.11.2/src/ucm'
Making install in .
make[2]: Entering directory '/home/jinchen/TEST/ucx-1.11.2/src/ucm'
CC event/libucm_la-event.lo
CC malloc/libucm_la-malloc_hook.lo
CC mmap/libucm_la-install.lo
CC util/libucm_la-replace.lo
CC util/libucm_la-log.lo
CC util/libucm_la-reloc.lo
CC util/libucm_la-sys.lo
CC bistro/libucm_la-bistro.lo
CC bistro/libucm_la-bistro_x86_64.lo
CC bistro/libucm_la-bistro_aarch64.lo
CC bistro/libucm_la-bistro_ppc64.lo
"bistro/bistro_ppc64.c", line 157: error #1144: arithmetic on pointer to void or function type
func += 8;
^
"bistro/bistro_ppc64.c", line 158: error #1144: arithmetic on pointer to void or function type
hook += 8;
^
2 errors detected in the compilation of "bistro/bistro_ppc64.c".
The text was updated successfully, but these errors were encountered: