[SERVER-24230] Failure starting 3.3.6-ssl community build on OS X 10.8.5 Created: 20/May/16  Updated: 05/Jul/16  Resolved: 24/Jun/16

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

Type: Bug Priority: Major - P3
Reporter: John Morales Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 16 (06/24/16)
Participants:

 Description   

download link used:
https://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-3.3.6.tgz

OS X 10.8.5

$ ls -l mongodb33
lrwxr-xr-x  1 john  staff  24 May 20 10:10 mongodb33 -> mongodb-osx-x86_64-3.3.6
 
$ /Users/john/opt/mongodb33/bin/mongod --fork --port 33300 --dbpath /Users/john/opt/mongodb33/data/standalone --logpath /Users/john/opt/mongodb33/logs/standalone/mongod.log --nohttpinterface --smallfiles --journal
dyld: Symbol not found: ___sincos_stret
  Referenced from: /Users/john/opt/mongodb33/bin/mongod
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/john/opt/mongodb33/bin/mongod
Trace/BPT trap: 5
 
$ /Users/john/opt/mongodb33/bin/mongo --version
dyld: Symbol not found: ___sincos_stret
  Referenced from: /Users/john/opt/mongodb33/bin/mongo
  Expected in: /usr/lib/libSystem.B.dylib
 in /Users/john/opt/mongodb33/bin/mongo
Trace/BPT trap: 5



 Comments   
Comment by Githook User [ 24/Jun/16 ]

Author:

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

Message: SERVER-24230 Update MozJS config per re-generation on OSX 10.8
Branch: master
https://github.com/mongodb/mongo/commit/1f68696981c5cc549f3f05dba316093c1fa26471

Comment by Andrew Morrow (Inactive) [ 24/Jun/16 ]

I re-ran the SpiderMonkey config generation on an OS X 10.8 machine. Here is the diff with the version of js-confdefs we have checked in:

 #define HAVE_NL_TYPES_H 1
 #define HAVE_POSIX_MEMALIGN 1
 #define HAVE_SETLOCALE 1
-#define HAVE_SINCOS 1
 #define HAVE_SSIZE_T 1
 #define HAVE_STRNDUP 1
 #define HAVE_SYS_CDEFS_H 1
@@ -60,11 +59,13 @@
 #define JS_POSIX_NSPR 1
 #define JS_PUNBOX64 1
 #define JS_STANDALONE 1
+#define JS_STANDALONE 1
+#define JS_STANDALONE 1
 #define MALLOC_H <malloc/malloc.h>
 #define MALLOC_USABLE_SIZE_CONST_PTR const
 #define MOZILLA_UAVERSION "45.0"
-#define MOZILLA_VERSION "45.0.1"
-#define MOZILLA_VERSION_U 45.0.1
+#define MOZILLA_VERSION "45.0.2"
+#define MOZILLA_VERSION_U 45.0.2
 #define MOZJS_MAJOR_VERSION 45
 #define MOZJS_MINOR_VERSION 0
 #define MOZ_DEBUG_SYMBOLS 1

Comment by Brian Samek [ 24/Jun/16 ]

acm - We don't have 10.7, but the Vagrant boxes are 10.8. I've added your public key to one. You can access it with ssh -p 2202 mci@ny-osx-2.build.10gen.cc.

Comment by Andrew Morrow (Inactive) [ 24/Jun/16 ]

OK, I tested this. It actually looks like the MozJS configure check for sincos does not respect the system minima. john.morales do you actually have access to an OS X 10.8 (10.7 even better) machine that i might be able to do some testing with? I'm presuming so, since you filed the ticket.

Comment by Andrew Morrow (Inactive) [ 24/Jun/16 ]

My hypothesis here is that the configs for SpiderMonkey were generated without the -mmacosx-version-min=10.7 in CFLAGS and on a more modern OS X install, and we picked up a HAVE definition for sincos:

$grep -r SINCOS src/third_party/mozjs-45/platform/x86_64/osx
src/third_party/mozjs-45/platform/x86_64/osx/build/js-confdefs.h:#define HAVE_SINCOS 1

which perhaps does not exist on older OS X.

We should regenerate the configs on OS X 10.7, and also try generating them on 10.11 but with -mmacosx-version-min=10.7 set in CFLAGS. Hopefully, both of those will result in a js-confdefs that does not have HAVE_SINCOS defined.

Generated at Thu Feb 08 04:05:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.