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 build fails on master: btl_base_am_rdma.c #8566

Closed
jsquyres opened this issue Mar 8, 2021 · 7 comments
Closed

32 bit build fails on master: btl_base_am_rdma.c #8566

jsquyres opened this issue Mar 8, 2021 · 7 comments

Comments

@jsquyres
Copy link
Member

jsquyres commented Mar 8, 2021

32 bit builds are currently failing on master. Git bisect says 3e31775 is the bad commit:

make[1]: Entering directory `/home/jsquyres/git/o2/opal/mca/btl'
  CC       base/btl_base_am_rdma.lo
base/btl_base_am_rdma.c:199: warning: invalid use of structure with flexible array member
base/btl_base_am_rdma.c: In function ‘mca_btl_base_copy_from_segments’:
base/btl_base_am_rdma.c:294: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c:302: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c: In function ‘mca_btl_base_copy_to_segments’:
base/btl_base_am_rdma.c:324: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c:336: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_rdma_advance’:
base/btl_base_am_rdma.c:386: warning: cast from pointer to integer of different size
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_descriptor_complete’:
base/btl_base_am_rdma.c:415: warning: unused variable ‘context’
base/btl_base_am_rdma.c: In function ‘mca_btl_base_rdma_retry_operation’:
base/btl_base_am_rdma.c:724: warning: unused variable ‘btl’
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_rdma_progress’:
base/btl_base_am_rdma.c:770: warning: ISO C forbids braced-groups within expressions
base/btl_base_am_rdma.c:770: warning: ISO C forbids braced-groups within expressions
base/btl_base_am_rdma.c:779: warning: ISO C forbids braced-groups within expressions
base/btl_base_am_rdma.c:779: warning: ISO C forbids braced-groups within expressions
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_atomic_64’:
base/btl_base_am_rdma.c:804: error: implicit declaration of function ‘opal_atomic_fetch_add_64’
base/btl_base_am_rdma.c:807: error: implicit declaration of function ‘opal_atomic_fetch_and_64’
base/btl_base_am_rdma.c:810: error: implicit declaration of function ‘opal_atomic_fetch_or_64’
base/btl_base_am_rdma.c:813: error: implicit declaration of function ‘opal_atomic_fetch_xor_64’
base/btl_base_am_rdma.c:816: error: implicit declaration of function ‘opal_atomic_swap_64’
base/btl_base_am_rdma.c:819: error: implicit declaration of function ‘opal_atomic_fetch_min_64’
base/btl_base_am_rdma.c:822: error: implicit declaration of function ‘opal_atomic_fetch_max_64’
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_rdma_response’:
base/btl_base_am_rdma.c:895: error: implicit declaration of function ‘opal_atomic_add_fetch_64’
base/btl_base_am_rdma.c:894: warning: comparison between signed and unsigned integer expressions
base/btl_base_am_rdma.c: In function ‘mca_btl_base_am_process_atomic’:
base/btl_base_am_rdma.c:973: warning: pointer targets in passing argument 1 of ‘mca_btl_base_am_atomic_32’ differ in signedness
base/btl_base_am_rdma.c:832: note: expected ‘int32_t *’ but argument is of type ‘uint32_t *’
base/btl_base_am_rdma.c:977: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c:985: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c:990: error: implicit declaration of function ‘opal_atomic_compare_exchange_strong_64’
base/btl_base_am_rdma.c:990: warning: cast to pointer from integer of different size
base/btl_base_am_rdma.c:955: warning: unused variable ‘target_address’
base/btl_base_am_rdma.c: At top level:
base/btl_base_am_rdma.c:1008: warning: no previous prototype for ‘mca_btl_sm_sc_emu_init’
make[1]: *** [base/btl_base_am_rdma.lo] Error 1
make[1]: Leaving directory `/home/jsquyres/git/o2/opal/mca/btl'
make: *** [all-recursive] Error 1

A persistent question: do we care about 32 bit builds any more?

I think we have not formally removed 32 bit support, otherwise Past Jeff would likely have put in a configure check to disallow 32 bit builds.

@hjelmn
Copy link
Member

hjelmn commented Mar 8, 2021

I can fix but I at this point why are we supporting 32-bit? Does anyone care about i386, PPC32/Power32, ARM v6 and earlier, etc?

@rhc54
Copy link
Contributor

rhc54 commented Mar 8, 2021

We are going to discuss it tomorrow - don't do anything until then. We'll post the conclusion here. Right now, it isn't clear we care about 32-bit any more.

@jsquyres
Copy link
Member Author

jsquyres commented Mar 8, 2021

Thanks for the clarification, @rhc54 -- I didn't expect that @hjelmn would have noticed this issue so quickly. 😝

@hjelmn
Copy link
Member

hjelmn commented Mar 9, 2021

I was aware my code would not build 32-bit but I thought we had long-since axed that. It certainly is not tested by CI. I may call in tomorrow if I find time.

@gpaulsen
Copy link
Member

gpaulsen commented Apr 5, 2021

Can we now close this? for master/v5.0x?

@awlauria
Copy link
Contributor

awlauria commented Apr 22, 2021

Master PR: #8722 merged

Reopening since has not been merged to v5.0.x yet

@awlauria awlauria reopened this Apr 22, 2021
@awlauria
Copy link
Contributor

Closing as it was merged to v5.0.x here: #8902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants