All of lore.kernel.org
 help / color / mirror / Atom feed
* Definition of __sparc64__ in gcc
@ 2016-05-16 12:23 John Paul Adrian Glaubitz
  2016-05-16 15:08 ` David Miller
  2016-05-16 15:14 ` John Paul Adrian Glaubitz
  0 siblings, 2 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2016-05-16 12:23 UTC (permalink / raw)
  To: sparclinux

Hello!

While looking at the FTBFS of Firefox, I noticed that Firefox, more
precisely ipc/chromium was checking for the definition of __sparc64__
to configure the code for sparc64 [1].

However, when looking at the actual gcc configuration dump, it's
apparent that __sparc64__ is actually not used but __arch64__:

root@landau:~# echo | gcc -E -dM - |grep __arch64__
#define __arch64__ 1
root@landau:~# echo | gcc -E -dM - |grep __sparc64__
root@landau:~#

Changing the header in Firefox's code base actually fixed this
particular issue with the firefox package on Debian.

Thus, my suspicion is that there might be other packages which are
incorrectly configured on sparc64 and consequently either failing
to build from source, crashing their testsuite or crashing during
operation.

A list of the possibly affected packages can be found in [2].

Any comments?

Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug‚4449
> [2] https://codesearch.debian.net/results/__sparc64__/page_0

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

* Re: Definition of __sparc64__ in gcc
  2016-05-16 12:23 Definition of __sparc64__ in gcc John Paul Adrian Glaubitz
@ 2016-05-16 15:08 ` David Miller
  2016-05-16 15:14 ` John Paul Adrian Glaubitz
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-05-16 15:08 UTC (permalink / raw)
  To: sparclinux

From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Mon, 16 May 2016 14:23:08 +0200

> Hello!
> 
> While looking at the FTBFS of Firefox, I noticed that Firefox, more
> precisely ipc/chromium was checking for the definition of __sparc64__
> to configure the code for sparc64 [1].
> 
> However, when looking at the actual gcc configuration dump, it's
> apparent that __sparc64__ is actually not used but __arch64__:
> 
> root@landau:~# echo | gcc -E -dM - |grep __arch64__
> #define __arch64__ 1
> root@landau:~# echo | gcc -E -dM - |grep __sparc64__
> root@landau:~#
> 
> Changing the header in Firefox's code base actually fixed this
> particular issue with the firefox package on Debian.
> 
> Thus, my suspicion is that there might be other packages which are
> incorrectly configured on sparc64 and consequently either failing
> to build from source, crashing their testsuite or crashing during
> operation.
> 
> A list of the possibly affected packages can be found in [2].
> 
> Any comments?

The correct test has always been "__sparc__ && __arch64__"

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

* Re: Definition of __sparc64__ in gcc
  2016-05-16 12:23 Definition of __sparc64__ in gcc John Paul Adrian Glaubitz
  2016-05-16 15:08 ` David Miller
@ 2016-05-16 15:14 ` John Paul Adrian Glaubitz
  1 sibling, 0 replies; 3+ messages in thread
From: John Paul Adrian Glaubitz @ 2016-05-16 15:14 UTC (permalink / raw)
  To: sparclinux

On 05/16/2016 05:08 PM, David Miller wrote:
>> Any comments?
> 
> The correct test has always been "__sparc__ && __arch64__"

Good, then I'll have some packages to fix :).

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

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

end of thread, other threads:[~2016-05-16 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-16 12:23 Definition of __sparc64__ in gcc John Paul Adrian Glaubitz
2016-05-16 15:08 ` David Miller
2016-05-16 15:14 ` John Paul Adrian Glaubitz

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.