Debian Bug report logs - #765370
xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]

version graph

Package: src:xutils-dev; Maintainer for src:xutils-dev is Debian X Strike Force <debian-x@lists.debian.org>;

Reported by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>

Date: Tue, 14 Oct 2014 14:18:02 UTC

Severity: normal

Tags: fixed-upstream, moreinfo, patch

Found in version xutils-dev/1:7.7+3

Forwarded to https://bugs.freedesktop.org/show_bug.cgi?id=93631

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Tue, 14 Oct 2014 14:18:07 GMT) (full text, mbox, link).


Acknowledgement sent to Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>:
New Bug report received and forwarded. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 14 Oct 2014 14:18:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
To: submit@bugs.debian.org
Subject: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Tue, 14 Oct 2014 11:13:53 -0300
[Message part 1 (text/plain, inline)]
Package: src:xutils-dev
Version: 1:7.7+3
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: ppc64el

The attached patch adds the ppc64el pieces and fixes a FTBFS on sciplot
(and potentially others), avoiding to pass -mminimal-toc from CCOPTIONS
to LDOPTIONS (because it's incorrect for 'ld -m<value>').

May you please consider it for an upload?

Thanks!


Details:
--------

The fixed FTBFS error [1]:

	ld -shared  -o libsciplot.so.1.36 SciPlot.o SciPlotUtil.o 
-mminimal-toc       -lXm [...]      -soname libsciplot.so.1 -lc
	ld: unrecognised emulation mode: minimal-toc
	Supported emulations: elf64lppc elf32lppc elf32lppclinux elf32lppcsim 
elf32ppclinux elf32ppc elf32ppcsim elf64ppc
	make[2]: *** [shared] Error 1
	
[1] 
https://buildd.debian.org/status/fetch.php?pkg=sciplot&arch=ppc64el&ver=1.36-16&stamp=1410447072

-- 
Mauricio Faria de Oliveira
IBM Linux Technology Center
[xutils-dev-ppc64el.debdiff (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Wed, 15 Oct 2014 08:48:08 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 15 Oct 2014 08:48:08 GMT) (full text, mbox, link).


Message #10 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>, 765370@bugs.debian.org
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Wed, 15 Oct 2014 10:45:11 +0200
[Message part 1 (text/plain, inline)]
Control: tag -1 moreinfo

On Tue, Oct 14, 2014 at 11:13:53 -0300, Mauricio Faria de Oliveira wrote:

> Package: src:xutils-dev
> Version: 1:7.7+3
> Tags: patch
> User: debian-powerpc@lists.debian.org
> Usertags: ppc64el
> 
> The attached patch adds the ppc64el pieces and fixes a FTBFS on sciplot
> (and potentially others), avoiding to pass -mminimal-toc from CCOPTIONS
> to LDOPTIONS (because it's incorrect for 'ld -m<value>').
> 
> May you please consider it for an upload?
> 
The 'add ppc64el support' patch seems to make the other one unnecessary,
since -mminimal-toc is only added for ppc64architecture, which wouldn't
apply to ppc64el?  Am I missing something?

Also, have any of these patches been sent upstream?

Cheers,
Julien
[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Julien Cristau <jcristau@debian.org> to 765370-submit@bugs.debian.org. (Wed, 15 Oct 2014 08:48:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Wed, 15 Oct 2014 15:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 15 Oct 2014 15:00:05 GMT) (full text, mbox, link).


Message #17 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
To: Julien Cristau <jcristau@debian.org>, 765370@bugs.debian.org
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Wed, 15 Oct 2014 11:56:31 -0300
Hi Julien,

On 10/15/2014 05:45 AM, Julien Cristau wrote:
> The 'add ppc64el support' patch seems to make the other one unnecessary,
> since -mminimal-toc is only added for ppc64architecture, which wouldn't
> apply to ppc64el?  Am I missing something?

It happens the patch doesn't disable the ppc64architecture, it just adds
the ppc64el architecture - so if you're in powerpc64 and little endian,
both are defined (see there's no #else in this piece):

	+ # ifdef __powerpc64__
	++#  ifdef __LITTLE_ENDIAN__
	++#    ifndef Ppc64elArchitecture
	++#      define Ppc64elArchitecture
	++#    endif
	++#  endif
	+ #  ifndef Ppc64Architecture
	+ #   define Ppc64Architecture
	+ #  endif

I haven't discussed the patch with its author. Do you believe this point
should be handled differently? (i.e., use an #else)

One thing I had in mind when writing the other patch was trying not to
modify existing stuff, so not to break what used it before, so maybe
that fits here too - ppc64el is also some sort of ppc64, except for
the endianness-dependent pieces.


> Also, have any of these patches been sent upstream?

I don't think so. I'd be happy to submit them (w/ the other author's
acknowledgement) if you/other maintainers are OK w/ them (as you're
more experienced - I only looked at a small piece for fixing it).

Thanks!

-- 
Mauricio Faria de Oliveira
IBM Linux Technology Center




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Wed, 15 Oct 2014 15:21:05 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 15 Oct 2014 15:21:05 GMT) (full text, mbox, link).


Message #22 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Cc: 765370@bugs.debian.org
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Wed, 15 Oct 2014 17:17:47 +0200
On Wed, Oct 15, 2014 at 11:56:31 -0300, Mauricio Faria de Oliveira wrote:

> Hi Julien,
> 
> On 10/15/2014 05:45 AM, Julien Cristau wrote:
> >The 'add ppc64el support' patch seems to make the other one unnecessary,
> >since -mminimal-toc is only added for ppc64architecture, which wouldn't
> >apply to ppc64el?  Am I missing something?
> 
> It happens the patch doesn't disable the ppc64architecture, it just adds
> the ppc64el architecture - so if you're in powerpc64 and little endian,
> both are defined (see there's no #else in this piece):
> 
Ah, right, I must have been blind...

> 	+ # ifdef __powerpc64__
> 	++#  ifdef __LITTLE_ENDIAN__
> 	++#    ifndef Ppc64elArchitecture
> 	++#      define Ppc64elArchitecture
> 	++#    endif
> 	++#  endif
> 	+ #  ifndef Ppc64Architecture
> 	+ #   define Ppc64Architecture
> 	+ #  endif
> 
> I haven't discussed the patch with its author. Do you believe this point
> should be handled differently? (i.e., use an #else)
> 
This way seems to be how mips is handled, so let's leave it as-is.

> One thing I had in mind when writing the other patch was trying not to
> modify existing stuff, so not to break what used it before, so maybe
> that fits here too - ppc64el is also some sort of ppc64, except for
> the endianness-dependent pieces.
> 
I wonder if the -mminimal-toc thing is actually needed on BE ppc64.  It
seems to have been introduced by
https://bugs.freedesktop.org/show_bug.cgi?id=303 but I don't know why.
So if we could just remove that, it seems like it'd be easier all
around.

Cheers,
Julien



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Wed, 15 Oct 2014 16:54:10 GMT) (full text, mbox, link).


Acknowledgement sent to Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 15 Oct 2014 16:54:10 GMT) (full text, mbox, link).


Message #27 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 765370@bugs.debian.org
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Wed, 15 Oct 2014 13:50:21 -0300
On 10/15/2014 12:17 PM, Julien Cristau wrote:
> On Wed, Oct 15, 2014 at 11:56:31 -0300, Mauricio Faria de Oliveira wrote:
>> >It happens the patch doesn't disable the ppc64architecture, it just adds
>> >the ppc64el architecture - so if you're in powerpc64 and little endian,
>> >both are defined (see there's no #else in this piece):
>> >
> Ah, right, I must have been blind...
...
> This way seems to be how mips is handled, so let's leave it as-is.

Haha, no problem. Ok.

>> >One thing I had in mind when writing the other patch was trying not to
>> >modify existing stuff, so not to break what used it before, so maybe
>> >that fits here too - ppc64el is also some sort of ppc64, except for
>> >the endianness-dependent pieces.
>> >
> I wonder if the -mminimal-toc thing is actually needed on BE ppc64.  It
> seems to have been introduced by
> https://bugs.freedesktop.org/show_bug.cgi?id=303  but I don't know why.

Well, I can't say of it in CCOPTIONS, because it's a valid CC option;
but in LDOPTIONS, it's certainly wrong (it's not an emulation mode).

BTW, I just noticed sciplot FTBFS on ppc64 too, for the same reason [1].

> So if we could just remove that, it seems like it'd be easier all
> around.

There are legitimate reasons one may want -mminimal-toc in CCOPTIONS
(I don't understand much of it, but have seen it elsewhere).

That said, I certainly wouldn't want to break its users/packages.
It would be enough to just remove it from LDOPTIONS for ppc64/el.

If you recommend to forward and discuss this upstream, perharps to
understand how this happened, I would be willing to help/ask.

If you have the time and a quick way to track to the point where
CCOPTIONS were added to LDOPTIONS it might help. I can try/learn
later, otherwise.

What you'd prefer?

Thanks for your time and attention.

[1] http://buildd.debian-ports.org/status/package.php?p=sciplot&suite=sid

-- 
Mauricio Faria de Oliveira
IBM Linux Technology Center




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Mon, 07 Dec 2015 12:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Fernando Seiti Furusato" <ferseiti@br.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 07 Dec 2015 12:12:04 GMT) (full text, mbox, link).


Message #32 received at 765370@bugs.debian.org (full text, mbox, reply):

From: "Fernando Seiti Furusato" <ferseiti@br.ibm.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 765370@bugs.debian.org,"Breno Henrique Leitao" <brenohl@br.ibm.com>
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Mon, 7 Dec 2015 08:57:27 -0300
Hello, Julien.

I see that at least sciplot is failing to build due to the usage of 
Imake's
-mminimal-toc flag.
Are you planning to apply Mauricio's patch?

I ask because there might be possible to workaround on sciplot, if you
decide not to use the patch on this report.
In which case, I might send a patch to sciplot.

Thanks and regards.

Fernando


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Mon, 07 Dec 2015 16:09:07 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Mon, 07 Dec 2015 16:09:07 GMT) (full text, mbox, link).


Message #37 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Fernando Seiti Furusato <ferseiti@br.ibm.com>
Cc: 765370@bugs.debian.org, Breno Henrique Leitao <brenohl@br.ibm.com>
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Mon, 7 Dec 2015 17:04:23 +0100
[Message part 1 (text/plain, inline)]
On Mon, Dec  7, 2015 at 08:57:27 -0300, Fernando Seiti Furusato wrote:

> Hello, Julien.
> 
> I see that at least sciplot is failing to build due to the usage of 
> Imake's
> -mminimal-toc flag.
> Are you planning to apply Mauricio's patch?
> 
I think the patch should be sent/discussed upstream
(xorg-devel@lists.x.org) first.  The relevant repo is
http://cgit.freedesktop.org/xorg/util/cf/ and guidelines at
http://www.x.org/wiki/Development/Documentation/SubmittingPatches/

Thanks,
Julien
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, ferseiti@br.ibm.com, brenohl@br.ibm.com, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Thu, 07 Jan 2016 14:36:04 GMT) (full text, mbox, link).


Acknowledgement sent to Fernando Seiti Furusato <ferseiti@br.ibm.com>:
Extra info received and forwarded to list. Copy sent to ferseiti@br.ibm.com, brenohl@br.ibm.com, Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 07 Jan 2016 14:36:04 GMT) (full text, mbox, link).


Message #42 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Fernando Seiti Furusato <ferseiti@br.ibm.com>
To: Debian Bug Tracking System <765370@bugs.debian.org>
Subject: Re: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Thu, 07 Jan 2016 09:33:34 -0500
Source: xutils-dev
Followup-For: Bug #765370

Thank you for the info, Julien.
I actually submitted a bug report [1] and sent the patches there.
However, I am not sure it is the correct path to do so.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=93631

Cheers.

Fernando



Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Thu, 07 Jan 2016 14:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Thu, 07 Jan 2016 14:54:03 GMT) (full text, mbox, link).


Message #47 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Julien Cristau <jcristau@debian.org>
To: Fernando Seiti Furusato <ferseiti@br.ibm.com>, 765370@bugs.debian.org
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Thu, 7 Jan 2016 15:51:40 +0100
On Thu, Jan  7, 2016 at 09:33:34 -0500, Fernando Seiti Furusato wrote:

> Source: xutils-dev
> Followup-For: Bug #765370
> 
> Thank you for the info, Julien.
> I actually submitted a bug report [1] and sent the patches there.
> However, I am not sure it is the correct path to do so.
> 
> [1] https://bugs.freedesktop.org/show_bug.cgi?id=93631
> 
Yeah, I don't think anybody looks at that bugzilla much.  git send-email
to xorg-devel is the best path.

Thanks,
Julien



Set Bug forwarded-to-address to 'https://bugs.freedesktop.org/show_bug.cgi?id=93631'. Request was from Julien Cristau <jcristau@debian.org> to control@bugs.debian.org. (Thu, 07 Jan 2016 14:54:08 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Wed, 13 Jan 2016 12:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Fernando Seiti Furusato" <ferseiti@br.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Wed, 13 Jan 2016 12:00:03 GMT) (full text, mbox, link).


Message #54 received at 765370@bugs.debian.org (full text, mbox, reply):

From: "Fernando Seiti Furusato" <ferseiti@br.ibm.com>
To: Julien Cristau <jcristau@debian.org>
Cc: 765370@bugs.debian.org, "Breno Henrique Leitao" <brenohl@br.ibm.com>
Subject: Re: Bug#765370: xutils-dev: fix CCOPTIONS/LDOPTIONS causing FTBFS on sciplot on ppc64el [PATCH]
Date: Wed, 13 Jan 2016 08:45:14 -0300
Hi Julien.

I sent the patches through git send-email as you recommended.
Are you able to review them?
For some reason they didn't group within the same thread.

http://lists.x.org/archives/xorg-devel/2016-January/048475.html
http://lists.x.org/archives/xorg-devel/2016-January/048472.html
http://lists.x.org/archives/xorg-devel/2016-January/048474.html

Thanks and regards.
Fernando




Information forwarded to debian-bugs-dist@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#765370; Package src:xutils-dev. (Tue, 02 May 2017 16:21:06 GMT) (full text, mbox, link).


Acknowledgement sent to Frederic Bonnard <frediz@linux.vnet.ibm.com>:
Extra info received and forwarded to list. Copy sent to Debian X Strike Force <debian-x@lists.debian.org>. (Tue, 02 May 2017 16:21:06 GMT) (full text, mbox, link).


Message #59 received at 765370@bugs.debian.org (full text, mbox, reply):

From: Frederic Bonnard <frediz@linux.vnet.ibm.com>
To: 765370@bugs.debian.org
Subject: Help needed for this patch
Date: Tue, 2 May 2017 18:19:42 +0200
[Message part 1 (text/plain, inline)]
Hi,
the patch didn't have much feedback on the mailing list upstream.
Julien could you help on this ?
For the time being would be possible to take the patches in the
packaging ?
sciplot is still failing.

F.
[Message part 2 (application/pgp-signature, inline)]

Added indication that bug 765370 blocks 862771 Request was from Frédéric Bonnard <frediz@linux.vnet.ibm.com> to control@bugs.debian.org. (Wed, 23 Aug 2017 12:45:09 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from debian-bts-link@lists.debian.org to control@bugs.debian.org. (Mon, 13 Aug 2018 17:33:21 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 30 22:03:16 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.