[SERVER-21839] Failed to build with --use-system-asio Created: 10/Dec/15  Updated: 07/Dec/16  Resolved: 25/Jul/16

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.3.11

Type: Bug Priority: Minor - P4
Reporter: Felix Yan Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Arch Linux x86_64


Issue Links:
Duplicate
is duplicated by SERVER-22243 Configuration fails with --use-system... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 18 (08/05/16)
Participants:

 Description   

I am getting the following error when building with "--use-system-asio". Removing this option gets it back to work.

KeyError: 'LIBDEPS_ASIO_SYSLIBDEP':
  File "/build/mongodb/src/mongodb-src-r3.2.0/SConstruct", line 2518:
    env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/build/mongodb/src/mongodb-src-r3.2.0/src/SConscript", line 14:
    ] + module_sconscripts
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/build/mongodb/src/mongodb-src-r3.2.0/src/third_party/SConscript", line 321:
    env['LIBDEPS_ASIO_SYSLIBDEP'],
  File "/usr/lib/python2.7/site-packages/SCons/Environment.py", line 410:
    return self._dict[key]



 Comments   
Comment by Githook User [ 25/Jul/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-21839 Fix build with --use-system-asio
Branch: master
https://github.com/mongodb/mongo/commit/dff665fdd61603c152b41f2addb85a580354f397

Comment by Andrew Morrow (Inactive) [ 11/Dec/15 ]

Hi felixonmars - Thanks for the bug report. I can confirm that I reproduce this issue. I'm marking it as 3.3 required but when we fix it I will get it queued for consideration for backport to 3.2. The issue is a little tricky because I think that the system asio on arch is header-only, so there is no libdep for our build system to specify. Additionally, please note that we have made some small modifications to our vendored copy of ASIO 1.11.0:

https://github.com/mongodb/mongo/commits/master/src/third_party/asio-asio-1-11-0

The relevant commits are:

The first of these has been fixed upstream (see https://github.com/chriskohlhoff/asio/commit/1d19a0060146cc345787158ab564f77e02a03568), however, the second is still an open issue (see https://github.com/chriskohlhoff/asio/issues/73)

Therefore, our recommendation would be to build against the vendored copy of ASIO until these issues are addressed.

Generated at Thu Feb 08 03:58:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.