diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-04-30 14:33:09 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-05-02 14:13:57 -0700 |
commit | f1cc8bf017a316ab317e158d17f92ad5fa58df03 (patch) | |
tree | d0f16a774706a54c758b2c4a61f8f20b934a1359 /meta-oe/recipes-dbs | |
parent | ebfe36cdc91ea0f8ca67d107d819317d2de7020c (diff) | |
download | meta-openembedded-f1cc8bf017a316ab317e158d17f92ad5fa58df03.tar.gz |
postgresql: fix compile error
configuration:
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
require conf/multilib.conf
SELECTED_OPTIMIZATION = "${DEBUG_OPTIMIZATION}"
DEBUG_BUILD = "1"
EXTRA_IMAGE_FEATURES += "dbg-pkgs"
with above configuration and option -Og, postgresql compile failed with:
| make[4]: Nothing to be done for 'all'.
| make[4]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/fe_utils'
| {standard input}: Assembler messages:
| {standard input}:58887: Error: branch out of range
| <builtin>: recipe for target 'tab-complete.o' failed
| make[3]: *** [tab-complete.o] Error 1
| make[3]: Leaving directory '/tmp/work/mips-pokymllib32-linux/lib32-postgresql/11.2-r0/build/src/bin/psql'
| Makefile:41: recipe for target 'all-psql-recurse' failed
| make[2]: *** [all-psql-recurse] Error 2
replace -Og with -O to fix this error
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r-- | meta-oe/recipes-dbs/postgresql/postgresql.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 85f19170b..6e2023143 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc | |||
@@ -72,6 +72,16 @@ EXTRA_OECONF += "--enable-thread-safety --disable-rpath \ | |||
72 | EXTRA_OECONF_sh4 += "--disable-spinlocks" | 72 | EXTRA_OECONF_sh4 += "--disable-spinlocks" |
73 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" | 73 | EXTRA_OECONF_aarch64 += "--disable-spinlocks" |
74 | 74 | ||
75 | DEBUG_OPTIMIZATION_remove_mips = " -Og" | ||
76 | DEBUG_OPTIMIZATION_append_mips = " -O" | ||
77 | BUILD_OPTIMIZATION_remove_mips = " -Og" | ||
78 | BUILD_OPTIMIZATION_append_mips = " -O" | ||
79 | |||
80 | DEBUG_OPTIMIZATION_remove_mipsel = " -Og" | ||
81 | DEBUG_OPTIMIZATION_append_mipsel = " -O" | ||
82 | BUILD_OPTIMIZATION_remove_mipsel = " -Og" | ||
83 | BUILD_OPTIMIZATION_append_mipsel = " -O" | ||
84 | |||
75 | PACKAGES_DYNAMIC += "^${PN}-plperl \ | 85 | PACKAGES_DYNAMIC += "^${PN}-plperl \ |
76 | ^${PN}-pltcl \ | 86 | ^${PN}-pltcl \ |
77 | ^${PN}-plpython \ | 87 | ^${PN}-plpython \ |