[CDRIVER-401] libmongoc-1.0 for 32bit Created: 01/Aug/14  Updated: 11/Sep/19  Resolved: 29/Sep/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Trivial - P5
Reporter: Arati Sethy Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The latest libmongoc-1.0 driver will not be supported for 32 bit?
If it is how do i compile?



 Comments   
Comment by Mira Carey [ 29/Sep/14 ]

I'm sorry, but I haven't actually been able to replicate this. The earliest gcc 4.3 version I have access to is gcc 4.3.6 (the current gcc 4.3), which compiles 32 bit binaries on 64 bit linux successfully.

Unfortunately, I suspect that whatever build issue you're running into is more likely a gap in the symbols you're getting from libc than anything intrinsic to the driver.

What operating system / architecture combination are you attempting to build the driver on? Also, can you upgrade to the latest gcc 4.3?

For now I'm going to close this as works as designed, feel free to reopen if you think there are further issues.

Regards,
Jason

Comment by Arati Sethy [ 04/Aug/14 ]

I get below linking error if i compile with gcc4.3.2 with -m32 option

examples/bson-metrics.c:271: warning: incompatible implicit declaration of built-in function 'round'
CCLD libyajl.la
CCLD libbson-1.0.la
CCLD bson-to-json
CCLD test-libbson
./.libs/libbson-1.0.so: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
make[2]: *** [bson-to-json] Error 1
make[2]: *** Waiting for unfinished jobs....
tests/test_libbson-TestSuite.o: In function `TestSuite_ParallelWorker':
tests/TestSuite.c:561: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
make[2]: *** [test-libbson] Error 1
make[2]: Leaving directory `/mail/trunk/common/libmongoc-1.0/build32/libmongoc-1.0/src/libbson'
make[1]: *** [all-recursive] Error 1

Generated at Wed Feb 07 21:09:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.