[oe-commits] [meta-openembedded] 04/34: postgresql: fix compile error

git at git.openembedded.org git at git.openembedded.org
Sat May 25 14:12:47 UTC 2019


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch warrior-next
in repository meta-openembedded.

commit 1480f646842d013ddaa1d45584a3400a0b759b9a
Author: Changqing Li <changqing.li at windriver.com>
AuthorDate: Tue Apr 30 14:33:09 2019 +0800

    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 at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-oe/recipes-dbs/postgresql/postgresql.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc
index 85f1917..6e20231 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 \
 EXTRA_OECONF_sh4 += "--disable-spinlocks"
 EXTRA_OECONF_aarch64 += "--disable-spinlocks"
 
+DEBUG_OPTIMIZATION_remove_mips = " -Og"
+DEBUG_OPTIMIZATION_append_mips = " -O"
+BUILD_OPTIMIZATION_remove_mips = " -Og"
+BUILD_OPTIMIZATION_append_mips = " -O"
+
+DEBUG_OPTIMIZATION_remove_mipsel = " -Og"
+DEBUG_OPTIMIZATION_append_mipsel = " -O"
+BUILD_OPTIMIZATION_remove_mipsel = " -Og"
+BUILD_OPTIMIZATION_append_mipsel = " -O"
+
 PACKAGES_DYNAMIC += "^${PN}-plperl \
     ^${PN}-pltcl \
     ^${PN}-plpython \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list