[MacPorts] #36381: mongodb: version 2.2.0 won't build under Mac OS 10.5

MacPorts noreply at macports.org
Sat Sep 29 15:35:54 PDT 2012


#36381: mongodb: version 2.2.0 won't build under Mac OS 10.5
---------------------------+--------------------------
  Reporter:  heapifyman@…  |      Owner:  ryandesign@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.2
Resolution:                |   Keywords:  leopard
      Port:  mongodb       |
---------------------------+--------------------------
Changes (by ryandesign@…):

 * keywords:  mongodb leopard => leopard
 * cc: heapifyman@… (removed)
 * owner:  macports-tickets@… => ryandesign@…


Old description:

> After issue [https://trac.macports.org/ticket/35118] had been fixed I
> tried to upgrade mongodb to the latest version but I got a build
> error.[[BR]]
>
> I uninstalled boost befor upgrading as I assumed that mongodb port now
> comes with its own boost version.[[BR]]
>
> Both upgrade and complete uninstall and re-install of mongodb failed. See
> error message below.[[BR]]
>
> I'm using Mac OS X 10.5.[[BR]]
>
> error message in log file:
> {{{
> :info:build /usr/bin/g++-4.0 -o
> build/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
> /use-system-pcre/use-system-sm/use-system-
> snappy/mongo/platform/atomic_word_test.o -c -Wnon-virtual-dtor
> -Woverloaded-virtual -arch i386 -fPIC -fno-strict-aliasing -ggdb -pthread
> -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3
> -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8
> -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8
> -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX
> -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
> /use-system-pcre/use-system-sm/use-system-snappy/third_party/boost
> -Isrc/third_party/boost
> -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
> /use-system-pcre/use-system-sm/use-system-snappy -Isrc
> -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
> /use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo
> -I/opt/local/include -I/opt/local/include/js
> src/mongo/platform/atomic_word_test.cpp
> :info:build /var/tmp//cchCLoXM.s:3481:invalid character '%' in mnemonic
> :info:build /var/tmp//cchCLoXM.s:3650:invalid character '%' in mnemonic
> :info:build /var/tmp//cchCLoXM.s:3824:invalid character '%' in mnemonic
> :info:build /var/tmp//cchCLoXM.s:3999:invalid character '%' in mnemonic
> :info:build /var/tmp//cchCLoXM.s:7780:invalid character '%' in mnemonic
> :info:build scons: ***
> [build/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
> /use-system-pcre/use-system-sm/use-system-
> snappy/mongo/platform/atomic_word_test.o] Error 1
> :info:build scons: building terminated because of errors.
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/mongodb/work
> /mongodb-src-r2.2.0" && /opt/local/bin/scons -j2 all mongobridge
> mongosniff --cc=/usr/bin/gcc-4.0 --cxx=/usr/bin/g++-4.0 --full --use-
> system-pcre --use-system-sm --use-system-snappy
> --extralib=pcre,pcrecpp,js,snappy
> :info:build Exit code: 2
> :error:build org.macports.build for port mongodb returned: command
> execution failed
> :debug:build Error code: CHILDSTATUS 41904 2
> :debug:build Backtrace: command execution failed
>     while executing
> "system -nice 0 $fullcmdstring"
>     ("eval" body line 1)
>     invoked from within
> "eval system $notty $nice \$fullcmdstring"
>     invoked from within
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: targets not executed for mongodb:
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Please see the log file for port mongodb for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/mongodb/main.log
> }}}

New description:

 After issue #35118 had been fixed I tried to upgrade mongodb to the latest
 version but I got a build error.

 I uninstalled boost befor upgrading as I assumed that mongodb port now
 comes with its own boost version.

 Both upgrade and complete uninstall and re-install of mongodb failed. See
 error message below.

 I'm using Mac OS X 10.5.

 error message in log file:
 {{{
 :info:build /usr/bin/g++-4.0 -o
 build/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
 /use-system-pcre/use-system-sm/use-system-
 snappy/mongo/platform/atomic_word_test.o -c -Wnon-virtual-dtor
 -Woverloaded-virtual -arch i386 -fPIC -fno-strict-aliasing -ggdb -pthread
 -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O3
 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8
 -D_FILE_OFFSET_BITS=64 -DJS_C_STRINGS_ARE_UTF8
 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DXP_UNIX
 -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
 /use-system-pcre/use-system-sm/use-system-snappy/third_party/boost
 -Isrc/third_party/boost
 -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
 /use-system-pcre/use-system-sm/use-system-snappy -Isrc
 -Ibuild/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
 /use-system-pcre/use-system-sm/use-system-snappy/mongo -Isrc/mongo
 -I/opt/local/include -I/opt/local/include/js
 src/mongo/platform/atomic_word_test.cpp
 :info:build /var/tmp//cchCLoXM.s:3481:invalid character '%' in mnemonic
 :info:build /var/tmp//cchCLoXM.s:3650:invalid character '%' in mnemonic
 :info:build /var/tmp//cchCLoXM.s:3824:invalid character '%' in mnemonic
 :info:build /var/tmp//cchCLoXM.s:3999:invalid character '%' in mnemonic
 :info:build /var/tmp//cchCLoXM.s:7780:invalid character '%' in mnemonic
 :info:build scons: ***
 [build/darwin/cc__usr_bin_gcc-4.0/cxx__usr_bin_g++-4.0/extralib_pcre_pcrecpp_js_snappy
 /use-system-pcre/use-system-sm/use-system-
 snappy/mongo/platform/atomic_word_test.o] Error 1
 :info:build scons: building terminated because of errors.
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/mongodb/work
 /mongodb-src-r2.2.0" && /opt/local/bin/scons -j2 all mongobridge
 mongosniff --cc=/usr/bin/gcc-4.0 --cxx=/usr/bin/g++-4.0 --full --use-
 system-pcre --use-system-sm --use-system-snappy
 --extralib=pcre,pcrecpp,js,snappy
 :info:build Exit code: 2
 :error:build org.macports.build for port mongodb returned: command
 execution failed
 :debug:build Error code: CHILDSTATUS 41904 2
 :debug:build Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: targets not executed for mongodb:
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Please see the log file for port mongodb for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/mongodb/main.log
 }}}

--

Comment:

 I have not yet had a chance to test on Leopard.

-- 
Ticket URL: <https://trac.macports.org/ticket/36381#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list