From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2017-02-20
Date: Wed, 22 Feb 2017 21:39:00 +0100 [thread overview]
Message-ID: <20170222213900.4ba95a1f@gmx.net> (raw)
In-Reply-To: <20170221072902.80C59207F9@mail.free-electrons.com>
On Tue, 21 Feb 2017 08:29:02 +0100 (CET), Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> sparc | libv4l-1.12.2 | NOK | http://autobuild.buildroot.net/results/3f13042565df20087e007949f653942c0462e334
From build-end.log:
CXXLD qv4l2
qv4l2-qv4l2.o: In function `QtPrivate::RefCount::deref()':
qv4l2.cpp:(.text._ZN9QtPrivate8RefCount5derefEv[_ZN9QtPrivate8RefCount5derefEv]+0x24): undefined reference to `__sync_fetch_and_add_4'
qv4l2-qv4l2.o: In function `QString::QString(QString const&)':
qv4l2.cpp:(.text._ZN7QStringC2ERKS_[_ZN7QStringC5ERKS_]+0x54): undefined reference to `__sync_fetch_and_add_4'
qv4l2-vbi-tab.o: In function `QtPrivate::RefCount::ref()':
vbi-tab.cpp:(.text._ZN9QtPrivate8RefCount3refEv[_ZN9QtPrivate8RefCount3refEv]+0x24): undefined reference to `__sync_fetch_and_add_4'
collect2: error: ld returned 1 exit status
make[4]: *** [qv4l2] Error 1
make[4]: Leaving directory `/home/test/autobuild/run/instance-2/output/build/libv4l-1.12.2/utils/qv4l2'
This can be fixed by adding the following two lines to package/libv4l/libv4l.mk:
LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++0x"
LIBV4L_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
This forces the same compile/link flags as would be used when (successfully)
compiling using the libv4l-1.12.2/utils/qv4l2/qv4l2.pro file...
I am not sure if this is a feasible solution? And when yes on which config
parameters this additional compile/link flags should depend?
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8)$(BR2_PACKAGE_QT5_VERSION_5_6),yy)
LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++0x"
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
LIBV4L_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
endif
endif
Regards,
Peter
next prev parent reply other threads:[~2017-02-22 20:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-21 7:29 [Buildroot] [autobuild.buildroot.net] Build results for 2017-02-20 Thomas Petazzoni
2017-02-21 21:42 ` Peter Seiderer
2017-02-21 21:48 ` Thomas Petazzoni
2017-02-21 21:51 ` Romain Naour
2017-02-21 22:01 ` Peter Seiderer
2017-02-21 22:12 ` Thomas Petazzoni
2017-02-22 20:39 ` Peter Seiderer [this message]
2017-02-23 8:17 ` Thomas Petazzoni
2017-02-23 16:57 ` Peter Seiderer
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=20170222213900.4ba95a1f@gmx.net \
--to=ps.report@gmx.net \
--cc=buildroot@busybox.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox