Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ivan Efimov <i.efimov@inango-systems.com>
To: OE-core <openembedded-core@lists.openembedded.org>
Subject: [PATCH] btrfs-tools Makefile: remove duplicated '-o $@' option from CC cmdline for libbtrfsutil/ subfolder
Date: Fri, 22 Feb 2019 20:31:58 +0200 (IST)	[thread overview]
Message-ID: <1928708604.1124302.1550860318265.JavaMail.zimbra@inango-systems.com> (raw)

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

Command line for target "libbtrfsutil/%.o" contained 
double usage of '-o $@' option and causes compilation error: 

cc1: error: too many filenames given 

Signed-off-by: Ivan Efimov <i.efimov@inango-systems.com> 
--- 
...01-Makefile-fix-double-o-compiler-option-using.patch | 17 +++++++++++++++++ 
meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb | 1 + 
2 files changed, 18 insertions(+) 
create mode 100644 meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-fix-double-o-compiler-option-using.patch 

diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-fix-double-o-compiler-option-using.patch b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-fix-dou$ 
le-o-compiler-option-using.patch 
new file mode 100644 
index 0000000000..335067bc1f 
--- /dev/null 
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-Makefile-fix-double-o-compiler-option-using.patch 
@@ -0,0 +1,17 @@ 
+Command line for target "libbtrfsutil/%.o" contained double usage 
+ of '-o $@' option and caused error: 
+ cc1: error: too many filenames given 
+ 
+Index: git/Makefile 
+=================================================================== 
+--- git.orig/Makefile 
++++ git/Makefile 
+@@ -414,7 +414,7 @@ libbtrfs.so.0 libbtrfs.so: libbtrfs.so.0 
+ 
+ libbtrfsutil/%.o: libbtrfsutil/%.c 
+ @echo " [CC] $@" 
+- $(Q)$(CC) $(LIBBTRFSUTIL_CFLAGS) -o $@ -c $< -o $@ 
++ $(Q)$(CC) $(LIBBTRFSUTIL_CFLAGS) -c $< -o $@ 
+ 
+ libbtrfsutil.so.$(libbtrfsutil_version): $(libbtrfsutil_objects) 
+ @echo " [LD] $@" 
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb 
index 1b4f515cb6..f1c4691313 100644 
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb 
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb 
@@ -19,6 +19,7 @@ SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \ 
file://0001-Makefile-build-mktables-using-native-gcc.patch \ 
file://0001-Add-LDFLAGS-when-building-libbtrfsutil.so.patch \ 
file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \ 
+ file://0001-Makefile-fix-double-o-compiler-option-using.patch \ 
" 

inherit autotools-brokensep pkgconfig manpages distutils3-base 
-- 
2.14.1 

[-- Attachment #2: Type: text/html, Size: 3160 bytes --]

             reply	other threads:[~2019-02-22 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22 18:31 Ivan Efimov [this message]
2019-02-25 11:24 ` [PATCH] btrfs-tools Makefile: remove duplicated '-o $@' option from CC cmdline for libbtrfsutil/ subfolder Burton, Ross
2019-02-25 13:23   ` Ivan Efimov

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=1928708604.1124302.1550860318265.JavaMail.zimbra@inango-systems.com \
    --to=i.efimov@inango-systems.com \
    --cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox