summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-12-05 18:36:25 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-12-13 11:19:34 +0100
commit684c76f0e360bd3190581576013c1b9c79cbcb67 (patch)
tree2deb38af777aec775337f280bbb8fdb9d5814581
parentb0493d4ccf69dbf615461b3f4346ae0439b1453c (diff)
downloadmeta-openembedded-684c76f0e360bd3190581576013c1b9c79cbcb67.tar.gz
iozone3: Fix parallel build problem
ibasync.o and libbif.o are built twice once wrongly without CFLAGS, clang catches this since it does not specify -DHAVE_ANSIC_C and clang flags bunch of errors. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3/parallelism.patch97
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3_465.bb2
2 files changed, 99 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3/parallelism.patch b/meta-oe/recipes-benchmark/iozone3/iozone3/parallelism.patch
new file mode 100644
index 000000000..d5622ed2c
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3/parallelism.patch
@@ -0,0 +1,97 @@
1remove libasync.o and libbif.o from deps
2
3there are no implicit rules to build them and they get wrong CFLAGS
4when compiled with implicit rule.
5
6They are built as part of iozone_linux.o target anyway
7
8Only fixed linux targets for now
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Upstream-Status: Pending
12
13
14
15--- current/makefile.org 2016-12-06 02:19:10.367911020 +0000
16+++ current/makefile 2016-12-06 02:21:38.767911020 +0000
17@@ -167,7 +167,7 @@
18 #
19 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
20 #
21-linux: iozone_linux.o libasync.o libbif.o fileop_linux.o pit_server.o
22+linux: iozone_linux.o fileop_linux.o pit_server.o
23 $(CC) -O3 $(LDFLAGS) iozone_linux.o libasync.o libbif.o -lpthread \
24 -lrt -o iozone
25 $(CC) -O3 -Dlinux fileop_linux.o -o fileop
26@@ -176,7 +176,7 @@
27 #
28 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O
29 #
30-linux-powerpc: iozone_linux-powerpc.o libbif.o libasync.o fileop_linux-ppc.o pit_server.o
31+linux-powerpc: iozone_linux-powerpc.o fileop_linux-ppc.o pit_server.o
32 $(CC) -O3 $(LDFLAGS) iozone_linux-powerpc.o libasync.o \
33 libbif.o -lpthread -lrt -o iozone
34 $(CC) -O3 -Dlinux fileop_linux-ppc.o -o fileop
35@@ -184,7 +184,7 @@
36 #
37 # GNU 'C' compiler Linux build for sparc chip with threads, largefiles, async I/O
38 #
39-linux-sparc: iozone_linux-sparc.o libbif.o libasync.o fileop_linux.o pit_server.o
40+linux-sparc: iozone_linux-sparc.o fileop_linux.o pit_server.o
41 $(CC) -O3 $(LDFLAGS) iozone_linux-sparc.o libasync.o libbif.o \
42 -lpthread -lrt -o iozone
43 $(CC) -O3 -Dlinux fileop_linux.o -o fileop
44@@ -193,7 +193,7 @@
45 #
46 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
47 #
48-linux-ia64: iozone_linux-ia64.o libbif.o libasync.o fileop_linux-ia64.o pit_server.o
49+linux-ia64: iozone_linux-ia64.o fileop_linux-ia64.o pit_server.o
50 $(CC) -O3 $(LDFLAGS) iozone_linux-ia64.o libbif.o libasync.o \
51 -lrt -lpthread -o iozone
52 $(CC) -O3 -Dlinux fileop_linux-ia64.o -o fileop
53@@ -202,7 +202,7 @@
54 #
55 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O
56 #
57-linux-powerpc64: iozone_linux-powerpc64.o libbif.o libasync.o fileop_linux-ppc64.o pit_server-linux-powerpc64.o
58+linux-powerpc64: iozone_linux-powerpc64.o fileop_linux-ppc64.o pit_server-linux-powerpc64.o
59 $(CC) -O3 -Dunix -DHAVE_ANSIC_C -DSHARED_MEM -DASYNC_IO \
60 -D_LARGEFILE64_SOURCE -Dlinux \
61 iozone_linux-powerpc64.o libasync.o libbif.o -lpthread \
62@@ -213,7 +213,7 @@
63 #
64 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
65 #
66-linux-arm: iozone_linux-arm.o libbif.o libasync.o fileop_linux-arm.o pit_server.o
67+linux-arm: iozone_linux-arm.o fileop_linux-arm.o pit_server.o
68 $(CC) -O3 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
69 -lrt -lpthread -o iozone
70 $(CC) -O3 -Dlinux fileop_linux-arm.o -o fileop
71@@ -222,7 +222,7 @@
72 #
73 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
74 #
75-linux-AMD64: iozone_linux-AMD64.o libbif.o libasync.o fileop_linux-AMD64.o pit_server.o
76+linux-AMD64: iozone_linux-AMD64.o fileop_linux-AMD64.o pit_server.o
77 $(CC) -O3 $(LDFLAGS) iozone_linux-AMD64.o libbif.o libasync.o \
78 -lrt -lpthread -o iozone
79 $(CC) -O3 -Dlinux fileop_linux-AMD64.o -o fileop
80@@ -231,7 +231,7 @@
81 #
82 # GNU 'C' compiler Linux build with S/390, threads, largfiles, async I/O
83 #
84-linux-S390: iozone_linux-s390.o libbif.o libasync.o fileop_linux-s390.o pit_server.o
85+linux-S390: iozone_linux-s390.o fileop_linux-s390.o pit_server.o
86 $(CC) -O2 $(LDFLAGS) -lpthread -lrt iozone_linux-s390.o \
87 libbif.o libasync.o -o iozone
88 $(CC) -O3 -Dlinux fileop_linux-s390.o -o fileop
89@@ -240,7 +240,7 @@
90 #
91 # GNU 'C' compiler Linux build with S/390, threads, largfiles, async I/O
92 #
93-linux-S390X: iozone_linux-s390x.o libbif.o libasync.o fileop_linux-s390x.o pit_server.o
94+linux-S390X: iozone_linux-s390x.o fileop_linux-s390x.o pit_server.o
95 $(CC) -O2 $(LDFLAGS) -lpthread -lrt iozone_linux-s390x.o \
96 libbif.o libasync.o -o iozone
97 $(CC) -O3 -Dlinux fileop_linux-s390x.o -o fileop
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3_465.bb b/meta-oe/recipes-benchmark/iozone3/iozone3_465.bb
index 67ce88556..2864a4d7f 100644
--- a/meta-oe/recipes-benchmark/iozone3/iozone3_465.bb
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3_465.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dca
7 file://iozone.c;beginline=260;endline=266;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \ 7 file://iozone.c;beginline=260;endline=266;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \
8" 8"
9SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \ 9SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \
10 file://parallelism.patch \
10 file://copyright.txt \ 11 file://copyright.txt \
11" 12"
12SRC_URI[md5sum] = "c924e5e46fb1cf8145f420e8e57eb954" 13SRC_URI[md5sum] = "c924e5e46fb1cf8145f420e8e57eb954"
@@ -21,6 +22,7 @@ S = "${WORKDIR}/${BPN}_${PV}/src/current/"
21# 22#
22EXTRA_OEMAKE_powerpc = "linux-powerpc CC='${CC}' GCC='${CC}'" 23EXTRA_OEMAKE_powerpc = "linux-powerpc CC='${CC}' GCC='${CC}'"
23EXTRA_OEMAKE_powerpc64 = "linux-powerpc64 CC='${CC}' GCC='${CC}'" 24EXTRA_OEMAKE_powerpc64 = "linux-powerpc64 CC='${CC}' GCC='${CC}'"
25EXTRA_OEMAKE_x86-64 = "linux-AMD64 CC='${CC}' GCC='${CC}'"
24EXTRA_OEMAKE_arm = "linux-arm CC='${CC}' GCC='${CC}'" 26EXTRA_OEMAKE_arm = "linux-arm CC='${CC}' GCC='${CC}'"
25EXTRA_OEMAKE = "linux CC='${CC}' GCC='${CC}'" 27EXTRA_OEMAKE = "linux CC='${CC}' GCC='${CC}'"
26 28