All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] setools: disable arch sparc64
@ 2016-03-23  2:02 Matt Weber
  2016-03-23 12:09 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Matt Weber @ 2016-03-23  2:02 UTC (permalink / raw)
  To: buildroot

Currently the buildroot sparc64 toolchain encounters a series of relocation
errors.  i.e.
policy_scan.c: relocation truncated to fit: R_SPARC_GOT13 against symbol ....

Workaround for numerous autobuilder failures, including:
http://autobuild.buildroot.net/results/ba1/ba1e473178bb66ebc43897b20e534606d2577ee3/

Signed-off-by: Matt Weber <matt@thewebers.ws>
---
 package/setools/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/setools/Config.in b/package/setools/Config.in
index c291b21..fb4044e 100644
--- a/package/setools/Config.in
+++ b/package/setools/Config.in
@@ -12,7 +12,8 @@ config BR2_PACKAGE_SETOOLS
 	# nios2: triggers some toolchain issue "No symbol version
 	# section for versioned symbol"
 	# arc: libselinux not available
-	depends on !BR2_nios2 && !BR2_bfin && !BR2_arc
+	# sparc64: relocation truncated to fit: R_SPARC_GOT13 against sym
+	depends on !BR2_nios2 && !BR2_bfin && !BR2_arc && !BR2_sparc64
 	help
 	  SETools is an open source project designed to facilitate
 	  SELinux policy analysis. The primary tools are:
@@ -31,4 +32,4 @@ config BR2_PACKAGE_SETOOLS
 comment "setools needs a toolchain w/ threads, C++, wchar, dynamic library"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
 		|| !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP
-	depends on !BR2_nios2 && !BR2_bfin && !BR2_arc
+	depends on !BR2_nios2 && !BR2_bfin && !BR2_arc && !BR2_sparc64
-- 
2.5.0

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

* [Buildroot] [PATCH 1/1] setools: disable arch sparc64
  2016-03-23  2:02 [Buildroot] [PATCH 1/1] setools: disable arch sparc64 Matt Weber
@ 2016-03-23 12:09 ` Thomas Petazzoni
  2016-03-23 21:31   ` Matthew Weber
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2016-03-23 12:09 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 22 Mar 2016 21:02:42 -0500, Matt Weber wrote:
> Currently the buildroot sparc64 toolchain encounters a series of relocation
> errors.  i.e.
> policy_scan.c: relocation truncated to fit: R_SPARC_GOT13 against symbol ....
> 
> Workaround for numerous autobuilder failures, including:
> http://autobuild.buildroot.net/results/ba1/ba1e473178bb66ebc43897b20e534606d2577ee3/
> 
> Signed-off-by: Matt Weber <matt@thewebers.ws>
> ---
>  package/setools/Config.in | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

IMO, it can be made to work quite easily on sparc64, it's just a matter
of using -fPIE to build, and not -fpie.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] setools: disable arch sparc64
  2016-03-23 12:09 ` Thomas Petazzoni
@ 2016-03-23 21:31   ` Matthew Weber
  2016-03-26 17:53     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Matthew Weber @ 2016-03-23 21:31 UTC (permalink / raw)
  To: buildroot

Thomas,

On Wed, Mar 23, 2016 at 7:09 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Tue, 22 Mar 2016 21:02:42 -0500, Matt Weber wrote:
>> Currently the buildroot sparc64 toolchain encounters a series of relocation
>> errors.  i.e.
>> policy_scan.c: relocation truncated to fit: R_SPARC_GOT13 against symbol ....
>>
>> Workaround for numerous autobuilder failures, including:
>> http://autobuild.buildroot.net/results/ba1/ba1e473178bb66ebc43897b20e534606d2577ee3/
>>
>> Signed-off-by: Matt Weber <matt@thewebers.ws>
>> ---
>>  package/setools/Config.in | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> IMO, it can be made to work quite easily on sparc64, it's just a matter
> of using -fPIE to build, and not -fpie.
>

Good to know.  I'll reject this patch and do some further testing.

-- 
Thanks,
Matt

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

* [Buildroot] [PATCH 1/1] setools: disable arch sparc64
  2016-03-23 21:31   ` Matthew Weber
@ 2016-03-26 17:53     ` Thomas Petazzoni
  2016-03-26 19:57       ` Matthew Weber
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2016-03-26 17:53 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 23 Mar 2016 16:31:13 -0500, Matthew Weber wrote:

> Good to know.  I'll reject this patch and do some further testing.

In fact, it's just -fPIC vs. -fpic. I've committed a fix:

  https://git.busybox.net/buildroot/commit/?id=8a2e75633f136f021692354434ac0b2d9a81e38c

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] setools: disable arch sparc64
  2016-03-26 17:53     ` Thomas Petazzoni
@ 2016-03-26 19:57       ` Matthew Weber
  0 siblings, 0 replies; 5+ messages in thread
From: Matthew Weber @ 2016-03-26 19:57 UTC (permalink / raw)
  To: buildroot

Thomas,

On Mar 26, 2016 12:53 PM, "Thomas Petazzoni" <
thomas.petazzoni@free-electrons.com> wrote:
>
> Hello,
>
> On Wed, 23 Mar 2016 16:31:13 -0500, Matthew Weber wrote:
>
> > Good to know.  I'll reject this patch and do some further testing.
>
> In fact, it's just -fPIC vs. -fpic. I've committed a fix:
>
>
https://git.busybox.net/buildroot/commit/?id=8a2e75633f136f021692354434ac0b2d9a81e38c
>

Appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160326/5397be91/attachment.html>

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

end of thread, other threads:[~2016-03-26 19:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23  2:02 [Buildroot] [PATCH 1/1] setools: disable arch sparc64 Matt Weber
2016-03-23 12:09 ` Thomas Petazzoni
2016-03-23 21:31   ` Matthew Weber
2016-03-26 17:53     ` Thomas Petazzoni
2016-03-26 19:57       ` Matthew Weber

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.