[MacPorts] #61463: mongodb @4.4.1_0 mongod: cannot execute binary file on macOS 10.15

MacPorts noreply at macports.org
Sun Nov 15 15:33:45 UTC 2020


#61463: mongodb @4.4.1_0 mongod: cannot execute binary file on macOS 10.15
-----------------------+------------------------
  Reporter:  ValeryKV  |      Owner:  ryandesign
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.3
Resolution:            |   Keywords:  catalina
      Port:  mongodb   |
-----------------------+------------------------

Comment (by ryandesign):

 And if it were 32-bit, running `file` on it would have said that it was a
 32-bit Mach-O file, but it said it was "data", which means `file` couldn't
 identify what it was, which is strange.

 Make sure that you have installed both Xcode 12.2 and the Xcode 12.2
 version of the command line tools.

 Try rebuilding mongodb one more time, this time using the `-k` flag to
 tell MacPorts to keep the work directory and log:

 {{{
 sudo port clean mongodb
 sudo port -nsk upgrade --force mongodb
 }}}

 Assuming the `mongo` program still doesn't work after that rebuild, please
 show us the build log.

 The log file will be at the location printed by the command:

 {{{
 port logfile mongodb
 }}}

 Compress this file and attach it to the ticket so that we can see what
 happened.

 Also, maybe show us the first few bytes of the mongo file by running:

 {{{
 $ hexdump -n 128 /opt/local/bin/mongo
 }}}

 Here is what that looks like on the file that was built by our Catalina
 buildbot worker:

 {{{
 0000000 cf fa ed fe 07 00 00 01 03 00 00 00 02 00 00 00
 0000010 1f 00 00 00 50 0c 00 00 85 80 a1 00 00 00 00 00
 0000020 19 00 00 00 48 00 00 00 5f 5f 50 41 47 45 5a 45
 0000030 52 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 0000040 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
 0000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 0000060 00 00 00 00 00 00 00 00 19 00 00 00 c8 02 00 00
 0000070 5f 5f 54 45 58 54 00 00 00 00 00 00 00 00 00 00
 0000080
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61463#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list