All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] llvm: fix link error for powerpc
@ 2019-04-01  9:44 changqing.li
  2019-04-01 10:17 ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: changqing.li @ 2019-04-01  9:44 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

fix below link error for powerpc

lib/libLLVMSupport.a(CommandLine.cpp.o): in function `llvm::cl::opt_storage<(anonymous namespace):
:HelpPrinterWrapper, true, true>::setLocation(llvm::cl::Option&, (anonymous namespace)::HelpPrinterWrapper&) [clone .isra.189]':
/usr/src/debug/llvm/8.0-r0/git/llvm/include/llvm/Support/CommandLine.h:1218:(.text.startup+0x5c):
relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::errs()' defined in .text section in lib/libLLVMSupport.a(raw_ostream.cpp.o)+8000
lib/libLLVMSupport.a(CommandLine.cpp.o): in function `setLocation':

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta/recipes-devtools/llvm/llvm_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index d2ea927..7762353 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -88,6 +88,8 @@ EXTRA_OECMAKE_append_class-nativesdk = "\
                   -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \
                  "
 
+CXXFLAGS_append_class-target = " -mlongcall"
+
 do_configure_prepend() {
 # Fix paths in llvm-config
 	sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] llvm: fix link error for powerpc
  2019-04-01  9:44 [PATCH] llvm: fix link error for powerpc changqing.li
@ 2019-04-01 10:17 ` Burton, Ross
  2019-04-02  0:43   ` [PATCH V2] " changqing.li
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2019-04-01 10:17 UTC (permalink / raw)
  To: Changqing Li; +Cc: OE-core

On Mon, 1 Apr 2019 at 10:45, <changqing.li@windriver.com> wrote:
> +CXXFLAGS_append_class-target = " -mlongcall"

If this is ppc-specific shouldn't it have a ppc override?

Ross


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH V2] llvm: fix link error for powerpc
  2019-04-01 10:17 ` Burton, Ross
@ 2019-04-02  0:43   ` changqing.li
  2019-07-12  8:11     ` ChenQi
  0 siblings, 1 reply; 7+ messages in thread
From: changqing.li @ 2019-04-02  0:43 UTC (permalink / raw)
  To: openembedded-core

From: Changqing Li <changqing.li@windriver.com>

fix below link error for powerpc

lib/libLLVMSupport.a(CommandLine.cpp.o): in function `llvm::cl::opt_storage<(anonymous namespace):
:HelpPrinterWrapper, true, true>::setLocation(llvm::cl::Option&, (anonymous namespace)::HelpPrinterWrapper&) [clone .isra.189]':
/usr/src/debug/llvm/8.0-r0/git/llvm/include/llvm/Support/CommandLine.h:1218:(.text.startup+0x5c):
relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::errs()' defined in .text section in lib/libLLVMSupport.a(raw_ostream.cpp.o)+8000
lib/libLLVMSupport.a(CommandLine.cpp.o): in function `setLocation':

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta/recipes-devtools/llvm/llvm_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
index d2ea927..a35ea4a 100644
--- a/meta/recipes-devtools/llvm/llvm_git.bb
+++ b/meta/recipes-devtools/llvm/llvm_git.bb
@@ -88,6 +88,8 @@ EXTRA_OECMAKE_append_class-nativesdk = "\
                   -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \
                  "
 
+CXXFLAGS_append_class-target_powerpc = " -mlongcall"
+
 do_configure_prepend() {
 # Fix paths in llvm-config
 	sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH V2] llvm: fix link error for powerpc
  2019-07-12  8:11     ` ChenQi
@ 2019-07-12  8:06       ` richard.purdie
  2019-07-12 16:48         ` Khem Raj
  2019-07-12 16:51       ` Khem Raj
  1 sibling, 1 reply; 7+ messages in thread
From: richard.purdie @ 2019-07-12  8:06 UTC (permalink / raw)
  To: ChenQi, changqing.li, openembedded-core

On Fri, 2019-07-12 at 16:11 +0800, ChenQi wrote:
> I'm recently getting llvm build failure on qemuppc. After reverting
> this 
> patch, the build succeeds.
> My host is ubuntu16.04.
> 
> I'm also wondering why autobuilder does not detect the build failure.
> No 
> world build for qemuppc?

There is no world build for ppc or mips.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2] llvm: fix link error for powerpc
  2019-04-02  0:43   ` [PATCH V2] " changqing.li
@ 2019-07-12  8:11     ` ChenQi
  2019-07-12  8:06       ` richard.purdie
  2019-07-12 16:51       ` Khem Raj
  0 siblings, 2 replies; 7+ messages in thread
From: ChenQi @ 2019-07-12  8:11 UTC (permalink / raw)
  To: changqing.li, openembedded-core

I'm recently getting llvm build failure on qemuppc. After reverting this 
patch, the build succeeds.
My host is ubuntu16.04.

I'm also wondering why autobuilder does not detect the build failure. No 
world build for qemuppc?

Best Regards,
Chen Qi

On 04/02/2019 08:43 AM, changqing.li@windriver.com wrote:
> From: Changqing Li <changqing.li@windriver.com>
>
> fix below link error for powerpc
>
> lib/libLLVMSupport.a(CommandLine.cpp.o): in function `llvm::cl::opt_storage<(anonymous namespace):
> :HelpPrinterWrapper, true, true>::setLocation(llvm::cl::Option&, (anonymous namespace)::HelpPrinterWrapper&) [clone .isra.189]':
> /usr/src/debug/llvm/8.0-r0/git/llvm/include/llvm/Support/CommandLine.h:1218:(.text.startup+0x5c):
> relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::errs()' defined in .text section in lib/libLLVMSupport.a(raw_ostream.cpp.o)+8000
> lib/libLLVMSupport.a(CommandLine.cpp.o): in function `setLocation':
>
> Signed-off-by: Changqing Li <changqing.li@windriver.com>
> ---
>   meta/recipes-devtools/llvm/llvm_git.bb | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
> index d2ea927..a35ea4a 100644
> --- a/meta/recipes-devtools/llvm/llvm_git.bb
> +++ b/meta/recipes-devtools/llvm/llvm_git.bb
> @@ -88,6 +88,8 @@ EXTRA_OECMAKE_append_class-nativesdk = "\
>                     -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \
>                    "
>   
> +CXXFLAGS_append_class-target_powerpc = " -mlongcall"
> +
>   do_configure_prepend() {
>   # Fix paths in llvm-config
>   	sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2] llvm: fix link error for powerpc
  2019-07-12  8:06       ` richard.purdie
@ 2019-07-12 16:48         ` Khem Raj
  0 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2019-07-12 16:48 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer

On Fri, Jul 12, 2019 at 1:06 AM <richard.purdie@linuxfoundation.org> wrote:
>
> On Fri, 2019-07-12 at 16:11 +0800, ChenQi wrote:
> > I'm recently getting llvm build failure on qemuppc. After reverting
> > this
> > patch, the build succeeds.
> > My host is ubuntu16.04.
> >
> > I'm also wondering why autobuilder does not detect the build failure.
> > No
> > world build for qemuppc?
>
> There is no world build for ppc or mips.
>

no mips ? ppc I understand

> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH V2] llvm: fix link error for powerpc
  2019-07-12  8:11     ` ChenQi
  2019-07-12  8:06       ` richard.purdie
@ 2019-07-12 16:51       ` Khem Raj
  1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2019-07-12 16:51 UTC (permalink / raw)
  To: ChenQi; +Cc: Patches and discussions about the oe-core layer

On Fri, Jul 12, 2019 at 12:59 AM ChenQi <Qi.Chen@windriver.com> wrote:
>
> I'm recently getting llvm build failure on qemuppc. After reverting this
> patch, the build succeeds.
> My host is ubuntu16.04.
>

so what has changed ? I guess default gcc is now 9.x instead of 8.x. I
wonder if thats contributing to it
if so, I am fine with reverting the change, just mention that if using
8.x we need to add -mlongcall to cxxflags on ppc

> I'm also wondering why autobuilder does not detect the build failure. No
> world build for qemuppc?
>
> Best Regards,
> Chen Qi
>
> On 04/02/2019 08:43 AM, changqing.li@windriver.com wrote:
> > From: Changqing Li <changqing.li@windriver.com>
> >
> > fix below link error for powerpc
> >
> > lib/libLLVMSupport.a(CommandLine.cpp.o): in function `llvm::cl::opt_storage<(anonymous namespace):
> > :HelpPrinterWrapper, true, true>::setLocation(llvm::cl::Option&, (anonymous namespace)::HelpPrinterWrapper&) [clone .isra.189]':
> > /usr/src/debug/llvm/8.0-r0/git/llvm/include/llvm/Support/CommandLine.h:1218:(.text.startup+0x5c):
> > relocation truncated to fit: R_PPC_PLTREL24 against symbol `llvm::errs()' defined in .text section in lib/libLLVMSupport.a(raw_ostream.cpp.o)+8000
> > lib/libLLVMSupport.a(CommandLine.cpp.o): in function `setLocation':
> >
> > Signed-off-by: Changqing Li <changqing.li@windriver.com>
> > ---
> >   meta/recipes-devtools/llvm/llvm_git.bb | 2 ++
> >   1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb
> > index d2ea927..a35ea4a 100644
> > --- a/meta/recipes-devtools/llvm/llvm_git.bb
> > +++ b/meta/recipes-devtools/llvm/llvm_git.bb
> > @@ -88,6 +88,8 @@ EXTRA_OECMAKE_append_class-nativesdk = "\
> >                     -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \
> >                    "
> >
> > +CXXFLAGS_append_class-target_powerpc = " -mlongcall"
> > +
> >   do_configure_prepend() {
> >   # Fix paths in llvm-config
> >       sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-12 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01  9:44 [PATCH] llvm: fix link error for powerpc changqing.li
2019-04-01 10:17 ` Burton, Ross
2019-04-02  0:43   ` [PATCH V2] " changqing.li
2019-07-12  8:11     ` ChenQi
2019-07-12  8:06       ` richard.purdie
2019-07-12 16:48         ` Khem Raj
2019-07-12 16:51       ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.