* [Buildroot] libmad-0.15.1b fails on build
@ 2007-08-24 10:26 Simon Pasch
2007-08-24 13:29 ` Ulf Samuelsson
2007-08-24 13:40 ` Thiago A. Corrêa
0 siblings, 2 replies; 4+ messages in thread
From: Simon Pasch @ 2007-08-24 10:26 UTC (permalink / raw)
To: buildroot
Libmad fails to build for x86 (likely for other architectures too)
because of the avr32-optimization-patch.
If you don't intend to build libmad for avr32, simply removing the patch helps.
Perhaps it would make sense to make the patch depend on the chosen
architecture. Don't know how this is solved in other packages. I tried
it with the folowing patch. (To keep the patch simple I manually
renamed the file "libmad-0.15.1b-avr32-optimization.patch" to
"libmad-0.15.1b-avr32-optimization.avr32_patch")
--- buildroot.old/package/libmad/libmad.mk 2007-08-24 09:15:35.000000000 +0200
+++ buildroot/package/libmad/libmad.mk 2007-08-24 12:10:43.000000000 +0200
@@ -16,6 +16,9 @@
$(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
$(LIBMAD_CAT) $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR)
$(TAR_OPTIONS) -
$(CONFIG_UPDATE) $(LIBMAD_DIR)
+ifeq ($(strip $(BR2_avr32)),y)
+ toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
libmad-$(LIBMAD_VERSION)\*.avr32_patch\*
+endif
toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
libmad-$(LIBMAD_VERSION)\*.patch\*
touch $@
Didn't have the time...but it seems, that the mplayer-package has some
avr32-only optimizations too
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] libmad-0.15.1b fails on build
2007-08-24 10:26 [Buildroot] libmad-0.15.1b fails on build Simon Pasch
@ 2007-08-24 13:29 ` Ulf Samuelsson
2007-08-24 13:40 ` Thiago A. Corrêa
1 sibling, 0 replies; 4+ messages in thread
From: Ulf Samuelsson @ 2007-08-24 13:29 UTC (permalink / raw)
To: buildroot
----- Original Message -----
From: "Simon Pasch" <fpasch@googlemail.com>
To: <buildroot@uclibc.org>
Sent: Friday, August 24, 2007 12:26 PM
Subject: [Buildroot] libmad-0.15.1b fails on build
> Libmad fails to build for x86 (likely for other architectures too)
> because of the avr32-optimization-patch.
>
> If you don't intend to build libmad for avr32, simply removing the patch helps.
>
>
> Perhaps it would make sense to make the patch depend on the chosen
> architecture. Don't know how this is solved in other packages. I tried
> it with the folowing patch. (To keep the patch simple I manually
> renamed the file "libmad-0.15.1b-avr32-optimization.patch" to
> "libmad-0.15.1b-avr32-optimization.avr32_patch")
>
>
> --- buildroot.old/package/libmad/libmad.mk 2007-08-24 09:15:35.000000000 +0200
> +++ buildroot/package/libmad/libmad.mk 2007-08-24 12:10:43.000000000 +0200
> @@ -16,6 +16,9 @@
> $(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
> $(LIBMAD_CAT) $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR)
> $(TAR_OPTIONS) -
> $(CONFIG_UPDATE) $(LIBMAD_DIR)
> +ifeq ($(strip $(BR2_avr32)),y)
> + toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
> libmad-$(LIBMAD_VERSION)\*.avr32_patch\*
> +endif
> toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
> libmad-$(LIBMAD_VERSION)\*.patch\*
> touch $@
>
> Didn't have the time...but it seems, that the mplayer-package has some
> avr32-only optimizations too
I think it would be better to generalize and do the following:
toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/ libmad-$(LIBMAD_VERSION)\*.patch
as usual, followed by:
toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/ libmad-$(LIBMAD_VERSION)\*.patch.$(ARCH)
Best Regards
Ulf Samuelsson
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] libmad-0.15.1b fails on build
2007-08-24 10:26 [Buildroot] libmad-0.15.1b fails on build Simon Pasch
2007-08-24 13:29 ` Ulf Samuelsson
@ 2007-08-24 13:40 ` Thiago A. Corrêa
1 sibling, 0 replies; 4+ messages in thread
From: Thiago A. Corrêa @ 2007-08-24 13:40 UTC (permalink / raw)
To: buildroot
Talking about the mplayer, it seams like the patches conflicts...
I have removed mplayer from my build so far, but last time I tried, I
couldn't patch it.
On 8/24/07, Simon Pasch <fpasch@googlemail.com> wrote:
> Libmad fails to build for x86 (likely for other architectures too)
> because of the avr32-optimization-patch.
>
> If you don't intend to build libmad for avr32, simply removing the patch helps.
>
>
> Perhaps it would make sense to make the patch depend on the chosen
> architecture. Don't know how this is solved in other packages. I tried
> it with the folowing patch. (To keep the patch simple I manually
> renamed the file "libmad-0.15.1b-avr32-optimization.patch" to
> "libmad-0.15.1b-avr32-optimization.avr32_patch")
>
>
> --- buildroot.old/package/libmad/libmad.mk 2007-08-24 09:15:35.000000000 +0200
> +++ buildroot/package/libmad/libmad.mk 2007-08-24 12:10:43.000000000 +0200
> @@ -16,6 +16,9 @@
> $(LIBMAD_DIR)/.unpacked: $(DL_DIR)/$(LIBMAD_SOURCE)
> $(LIBMAD_CAT) $(DL_DIR)/$(LIBMAD_SOURCE) | tar -C $(BUILD_DIR)
> $(TAR_OPTIONS) -
> $(CONFIG_UPDATE) $(LIBMAD_DIR)
> +ifeq ($(strip $(BR2_avr32)),y)
> + toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
> libmad-$(LIBMAD_VERSION)\*.avr32_patch\*
> +endif
> toolchain/patch-kernel.sh $(LIBMAD_DIR) package/libmad/
> libmad-$(LIBMAD_VERSION)\*.patch\*
> touch $@
>
> Didn't have the time...but it seems, that the mplayer-package has some
> avr32-only optimizations too
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] libmad-0.15.1b fails on build
@ 2007-08-22 7:03 Rolf Blindheim
0 siblings, 0 replies; 4+ messages in thread
From: Rolf Blindheim @ 2007-08-22 7:03 UTC (permalink / raw)
To: buildroot
Hello.
libmad-0.15.1b fails on build with buildroot-20070821, uclibc-0.29.9.
From build...
..
....
.......
then mv -f ".deps/layer3.Tpo" ".deps/layer3.Plo"; else
rm -f ".deps/layer3.Tpo"; exit 1; fi
/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/staging_dir/usr/bin/i586-linux-uclibc-gcc -Os -pipe -I/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/staging_dir/usr/include -I/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/staging_dir/include --sysroot=/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/staging_dir/ -isysroot /home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/staging_dir -mtune=i586 -march=i586 -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -fomit-frame-pointer -MT
layer3.lo -MD -MP -MF .deps/layer3.Tpo -c
layer3.c -fPIC -DPIC -o .libs/layer3.o
cc1: warning: -f[no-]force-mem is nop and option will be removed in 4.3
layer3.c:394: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'const'
layer3.c:406: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'const'
layer3.c:437: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'const'
layer3.c: In function 'III_imdct_l':
layer3.c:2120: error: 'mad_coeff_t' undeclared (first use in this function)
layer3.c:2120: error: (Each undeclared identifier is reported only once
layer3.c:2120: error: for each function it appears in.)
layer3.c:2120: error: 'w_ptr' undeclared (first use in this function)
layer3.c:2133: error: 'window_l' undeclared (first use in this function)
layer3.c:2189: error: 'window_s' undeclared (first use in this function)
layer3.c: In function 'III_imdct_s':
layer3.c:2220: error: 'mad_coeff_t' undeclared (first use in this function)
layer3.c:2220: error: expected ';' before 'const'
layer3.c:2230: error: expected '=', ',', ';', 'asm' or '__attribute__'
before 'const'
layer3.c:2230: warning: type defaults to 'int' in declaration of 's'
layer3.c:2232: error: 'imdct_s' undeclared (first use in this function)
layer3.c:2313: error: 'wptr' undeclared (first use in this function)
layer3.c:2313: error: 'window_s' undeclared (first use in this function)
make[3]: *** [layer3.lo] Error 1
make[3]: Leaving directory
`/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/libmad-0.15.1b'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/libmad-0.15.1b'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/libmad-0.15.1b'
make: ***
[/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821/build_i586/libmad-0.15.1b/libmad.la]
Error 2
root at ProdLinux:/home/rolf/BUILDS/Buildroot-Builds/buildroot-20070821#
--
Rolf Blindheim
<rolf@elektronix.no>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070822/14823888/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-24 13:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-24 10:26 [Buildroot] libmad-0.15.1b fails on build Simon Pasch
2007-08-24 13:29 ` Ulf Samuelsson
2007-08-24 13:40 ` Thiago A. Corrêa
-- strict thread matches above, loose matches on Subject: below --
2007-08-22 7:03 Rolf Blindheim
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.