Strange FTBFS for ffmpeg-debian on hppa

View: New views
8 Messages — Rating Filter:   Alert me  

Strange FTBFS for ffmpeg-debian on hppa

by Reinhard Tartler-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi hppa porters,

The recent ffmpeg-debian build failiure is a bit confusing to me,
because the previous upload did build just fine on the very same buildd.
please compare yourself:

http://buildd.debian.org/fetch.cgi?pkg=ffmpeg-debian;ver=0.svn20080206-9;arch=hppa;stamp=1215373412
http://buildd.debian.org/fetch.cgi?pkg=ffmpeg-debian;ver=0.svn20080206-10;arch=hppa;stamp=1215790177

find the while debdiff attached.

There I find the following possibly relevant change:

@@ -94,10 +90,6 @@
 endif
 shared_build_confflags += --enable-shared
 shared_build_confflags += --disable-static
-# i386 does just fine without -fPIC
-ifneq      ($(DEB_HOST_ARCH),i386)
-shared_build_confflags += --extra-cflags="-fPIC -DPIC"
-endif

This means that the --extra-cflags switch is not set anymore. However,
investigating the buildlog more closely, there are multiple occurances
of "-fPIC -DPIC", one from the "extra-cflags" and one from the upstream
makefiles in the -9 build. In the -10 build, none of the two appear.

I'd like to see the generated config.mak file during build. Could you
please provide me access to an hppa machine with an up-to-date sid
chroot and the build-dependencies for ffmpeg-debian installed?
(alternatively, has there been some changes in the buildd that might
explain the appearant change in behavior)?








--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4

ffmpeg.debdiff (12K) Download Attachment

Re: Strange FTBFS for ffmpeg-debian on hppa

by Thibaut VARENE-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jul 13, 2008 at 11:56 AM, Reinhard Tartler <siretart@...> wrote:

> There I find the following possibly relevant change:

It actually is.

> @@ -94,10 +90,6 @@
>  endif
>  shared_build_confflags += --enable-shared
>  shared_build_confflags += --disable-static
> -# i386 does just fine without -fPIC
> -ifneq      ($(DEB_HOST_ARCH),i386)
> -shared_build_confflags += --extra-cflags="-fPIC -DPIC"
> -endif
>
> This means that the --extra-cflags switch is not set anymore. However,
> investigating the buildlog more closely, there are multiple occurances
> of "-fPIC -DPIC", one from the "extra-cflags" and one from the upstream
> makefiles in the -9 build. In the -10 build, none of the two appear.

ffmpeg will not build on hppa (and ia64 and alpha, among others, fwiw)
without enabling PIC.

HTH

--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Reinhard Tartler-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Thibaut VARENE" <varenet@...> writes:

>> This means that the --extra-cflags switch is not set anymore. However,
>> investigating the buildlog more closely, there are multiple occurances
>> of "-fPIC -DPIC", one from the "extra-cflags" and one from the upstream
>> makefiles in the -9 build. In the -10 build, none of the two appear.
>
> ffmpeg will not build on hppa (and ia64 and alpha, among others, fwiw)
> without enabling PIC.
>
> HTH

Well, I think I "solved" it now. Upstream was impressively reactive to
this ftbfs and applied a patch to the configure script that enables PIC
on hppa. I imported that patch into the current debian package and will
be part of the next upload.

I do hope this fixes it.


--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Thibaut VARENE-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Jul 13, 2008 at 10:19 PM, Reinhard Tartler <siretart@...> wrote:

> "Thibaut VARENE" <varenet@...> writes:
>
>>> This means that the --extra-cflags switch is not set anymore. However,
>>> investigating the buildlog more closely, there are multiple occurances
>>> of "-fPIC -DPIC", one from the "extra-cflags" and one from the upstream
>>> makefiles in the -9 build. In the -10 build, none of the two appear.
>>
>> ffmpeg will not build on hppa (and ia64 and alpha, among others, fwiw)
>> without enabling PIC.
>>
>> HTH
>
> Well, I think I "solved" it now. Upstream was impressively reactive to
> this ftbfs and applied a patch to the configure script that enables PIC
> on hppa. I imported that patch into the current debian package and will
> be part of the next upload.

This shouldn't be a hppa-only fix. Building/linking non-PIC shared
libraries is just *wrong* and will fail miserably on most
architectures but x86.

HTH

--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Reinhard Tartler-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Thibaut VARENE" <varenet@...> writes:

>> Well, I think I "solved" it now. Upstream was impressively reactive to
>> this ftbfs and applied a patch to the configure script that enables PIC
>> on hppa. I imported that patch into the current debian package and will
>> be part of the next upload.
>
> This shouldn't be a hppa-only fix. Building/linking non-PIC shared
> libraries is just *wrong* and will fail miserably on most
> architectures but x86.

In this case, it is okay. This package contains highly optimized hand
written assembler that has very complicated demands to register
allocation constraints that demand very specific compiler options.
That's why the configure scripts has a list of architectures that
require PIC in shared libraries, and hppa was just missing in that
file. This might sound crazy, but that's it. The last encounter I did
was that adding '-fPIC' to CFLAGS causes an FTBFS on i386 :/

A testbuild of the current svn on hppa would however be useful so I
don't need to upload a testbaloon to unstable.

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Thibaut VARENE-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 14, 2008 at 7:21 AM, Reinhard Tartler <siretart@...> wrote:
> "Thibaut VARENE" <varenet@...> writes:

>> This shouldn't be a hppa-only fix. Building/linking non-PIC shared
>> libraries is just *wrong* and will fail miserably on most
>> architectures but x86.
>
> In this case, it is okay. This package contains highly optimized hand
> written assembler that has very complicated demands to register
> allocation constraints that demand very specific compiler options.

Yeah I have some insight on the code. And no, building SO non-PIC is
not really "okay". The performance agreement is quite moot: as soon as
you're not linking statically, you'll take a perf hit anyway...

Anyway, I guess the way this all works ain't gonna change tomorrow ;)

> A testbuild of the current svn on hppa would however be useful so I
> don't need to upload a testbaloon to unstable.

http://gropaf.esiee.fr/~buildd/logs/ffmpegcvs_3:20080706-0.2_20080708-0000

(build log from debian-multimedia ffmpeg package)

HTH

--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Thibaut VARENE-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jul 14, 2008 at 12:20 PM, Thibaut VARENE <varenet@...> wrote:
> On Mon, Jul 14, 2008 at 7:21 AM, Reinhard Tartler <siretart@...> wrote:

> not really "okay". The performance agreement is quite moot: as soon as

s/agreement/argument/ - I need more coffee ;P


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Strange FTBFS for ffmpeg-debian on hppa

by Reinhard Tartler-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Thibaut VARENE" <varenet@...> writes:

>> A testbuild of the current svn on hppa would however be useful so I
>> don't need to upload a testbaloon to unstable.
>
> http://gropaf.esiee.fr/~buildd/logs/ffmpegcvs_3:20080706-0.2_20080708-0000
>
> (build log from debian-multimedia ffmpeg package)

That doesn't help me. I'm talking about the svn of the pkg-multimedia
team, that maintains the 'ffmpeg-debian' source package in debian. Could
you perhaps build that tree as well?

--
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4


--
To UNSUBSCRIBE, email to debian-hppa-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

LightInTheBox - Buy quality products at wholesale price!