All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Koen Kooi <koen.kooi@linaro.org>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] mongodb: add git version
Date: Sun, 30 Mar 2014 00:21:54 +0100	[thread overview]
Message-ID: <20140329232154.GB2428@jama> (raw)
In-Reply-To: <5316DE87.7090906@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 13231 bytes --]

On Wed, Mar 05, 2014 at 04:21:27PM +0800, Koen Kooi wrote:
> On 03/05/2014 01:57 PM, Martin Jansa wrote:
> > On Wed, Mar 05, 2014 at 12:43:16PM +0800, Koen Kooi wrote:
> >> On 03/05/2014 12:19 PM, Martin Jansa wrote:
> >>> On Tue, Feb 04, 2014 at 01:52:50PM +0100, Koen Kooi wrote:
> >>>> This builds the server and the sharding helper, but not the CLI. The CLI will need a libv8 recipe since fixing the built-in copy to cross build is too much work.
> >>>>
> >>>> Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
> >>>> ---
> >>>>    ...Make-it-possible-to-disable-the-use-of-v8.patch | 49 +++++++++++++++++
> >>>>    ...place-os.uname-with-os.getenv-TARGET_ARCH.patch | 50 +++++++++++++++++
> >>>>    ...02-Fix-linking-when-scripting-is-disabled.patch | 25 +++++++++
> >>>>    ...d-mongo-binary-when-scripting-is-disabled.patch | 64 ++++++++++++++++++++++
> >>>>    meta-oe/recipes-support/mongodb/mongodb_git.bb     | 38 +++++++++++++
> >>>>    5 files changed, 226 insertions(+)
> >>>>    create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch
> >>>>    create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-replace-os.uname-with-os.getenv-TARGET_ARCH.patch
> >>>>    create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch
> >>>>    create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch
> >>>>    create mode 100644 meta-oe/recipes-support/mongodb/mongodb_git.bb
> >>>
> >>> It's already merged, but can you please check this error when building
> >>> it for qemuarm?
> >>>
> >>> | arm-oe-linux-gnueabi-g++ -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm -o build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/db/commands/find_and_modify_common.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnuea
> bi
> >> -g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc -Isrc -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo -Isrc/mongo -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/ya
> ml-
> >> cpp-0.5.1/include -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/db/commands/find_and_modify_common.cpp
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/pipeline/value_internal.h:32,
> >>> |                  from src/mongo/db/pipeline/value.h:31,
> >>> |                  from src/mongo/db/pipeline/pipeline.h:33,
> >>> |                  from src/mongo/db/pipeline/pipeline.cpp:32:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/auth/privilege_parser.h:35,
> >>> |                  from src/mongo/db/auth/privilege.h:22,
> >>> |                  from src/mongo/db/auth/privilege.cpp:16:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/auth/privilege_parser.h:35,
> >>> |                  from src/mongo/db/auth/privilege.h:22,
> >>> |                  from src/mongo/db/commands/mr.h:37,
> >>> |                  from src/mongo/db/commands/mr_common.cpp:29:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/bson/mutable/element.h:20,
> >>> |                  from src/mongo/db/auth/authorization_manager.h:40,
> >>> |                  from src/mongo/db/auth/authorization_session.h:38,
> >>> |                  from src/mongo/db/auth/authorization_session.cpp:29:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | arm-oe-linux-gnueabi-g++ -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/sysroots/qemuarm -o build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/db/commands/user_management_commands.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -fno-builtin-memcmp -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -DMONGO_OPTIMIZED_BUILD -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE___THREAD -DBOOST_THREAD_VERSION=2 -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnu
> ea
> >> bi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc -Isrc -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo -Isrc/mongo -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/third_party/
> yam
> >> l-cpp-0.5.1/include -Isrc/third_party/yaml-cpp-0.5.1/include src/mongo/db/commands/user_management_commands.cpp
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/diskloc.h:37,
> >>> |                  from src/mongo/db/clientcursor.h:33,
> >>> |                  from src/mongo/db/query/new_find.h:33,
> >>> |                  from src/mongo/db/query/new_find.cpp:29:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/auth/privilege_parser.h:35,
> >>> |                  from src/mongo/db/auth/privilege.h:22,
> >>> |                  from src/mongo/db/commands/find_and_modify.h:34,
> >>> |                  from src/mongo/db/commands/find_and_modify_common.cpp:31:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/auth/privilege_parser.h:35,
> >>> |                  from src/mongo/db/auth/privilege.h:22,
> >>> |                  from src/mongo/db/commands/hashcmd.cpp:42:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | In file included from src/mongo/bson/bsonobj.h:29:0,
> >>> |                  from src/mongo/db/jsobj.h:38,
> >>> |                  from src/mongo/db/auth/privilege_parser.h:35,
> >>> |                  from src/mongo/db/auth/privilege.h:22,
> >>> |                  from src/mongo/db/commands.h:24,
> >>> |                  from src/mongo/db/commands/user_management_commands.h:31,
> >>> |                  from src/mongo/db/commands/user_management_commands.cpp:31:
> >>> | src/mongo/bson/util/atomic_int.h:128:4: error: #error "unsupported compiler or platform"
> >>> |  #  error "unsupported compiler or platform"
> >>> |     ^
> >>> | src/mongo/bson/util/atomic_int.h:41:21: error: inline function 'void mongo::AtomicUInt::set(unsigned int)' used but never defined [-Werror]
> >>> |          inline void set(unsigned newX);
> >>> |                      ^
> >>> | src/mongo/bson/util/atomic_int.h:44:27: error: inline function 'mongo::AtomicUInt mongo::AtomicUInt::operator++(int)' used but never defined [-Werror]
> >>> |          inline AtomicUInt operator++(int);// postfix++
> >>> |                            ^
> >>> | src/mongo/bson/util/atomic_int.h:45:27: error: inline function 'mongo::AtomicUInt mongo::AtomicUInt::operator--()' used but never defined [-Werror]
> >>> |          inline AtomicUInt operator--(); // --prefix
> >>> |                            ^
> >>> | cc1plus: all warnings being treated as errors
> >>> | scons: *** [build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/db/auth/privilege.o] Error 1
> >>> | src/mongo/bson/util/atomic_int.h:41:21: error: inline function 'void mongo::AtomicUInt::set(unsigned int)' used but never defined [-Werror]
> >>> |          inline void set(unsigned newX);
> >>> |                      ^
> >>> | src/mongo/bson/util/atomic_int.h:44:27: error: inline function 'mongo::AtomicUInt mongo::AtomicUInt::operator++(int)' used but never defined [-Werror]
> >>> |          inline AtomicUInt operator++(int);// postfix++
> >>> |                            ^
> >>> | src/mongo/bson/util/atomic_int.h:45:27: error: inline function 'mongo::AtomicUInt mongo::AtomicUInt::operator--()' used but never defined [-Werror]
> >>> |          inline AtomicUInt operator--(); // --prefix
> >>> |                            ^
> >>> | cc1plus: all warnings being treated as errors
> >>> | scons: *** [build/linux2/disable-scripting/ld_arm-oe-linux-gnueabi-g++/ssl/use-system-boost/use-system-pcre/use-system-tcmalloc/mongo/db/commands/find_and_modify_common.o] Error 1
> >>> | src/mongo/bson/util/atomic_int.h:41:21: error: inline function 'void mongo::AtomicUInt::set(unsigned int)' used but never defined [-Werror]
> >>> |          inline void set(unsigned newX);
> >>> |                      ^
> >>> ......
> >>
> >> It looks like gcc for qemuarm lacks support for some atomic ops, the
> >> above seems to get triggered by __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 not
> >> being there.
> >>
> >> Which gcc are you using, 4.8?
> >
> > Yup, 4.8 from oe-core.
> 
> These atomic ops *are* available for gcc 4.8, but it doesn't advertise 
> them for armv5te. There are 2 solutions:
> 
> 1) CFLAGS += -D__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1
> 2) Add a block to that files that tests for gcc > 4.7.0 (that's what 
> fedora does)
> 
> I'll see if I can find time to fix this next week.

ping :)

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2014-03-29 23:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 12:52 [meta-oe][PATCH] mongodb: add git version Koen Kooi
2014-03-05  4:19 ` Martin Jansa
2014-03-05  4:43   ` Koen Kooi
2014-03-05  5:57     ` Martin Jansa
2014-03-05  8:21       ` Koen Kooi
2014-03-29 23:21         ` Martin Jansa [this message]
2014-04-01  6:50           ` Koen Kooi
2014-04-02  4:43             ` Khem Raj
2014-03-30  0:16         ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140329232154.GB2428@jama \
    --to=martin.jansa@gmail.com \
    --cc=koen.kooi@linaro.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.