Port-powerpc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: missing math functions on powerpc (macppc)?
John D. Baker wrote:
> Adding "powerpc-linux-gcc" in the "all_targets" assignment in
> "$WRKSRC/configure" and a corresponding "powerpc*)" case for "tgt_isa"
> detection/selection in "$WRKSRC/build/make/configure.sh" allows it to
> link properly.
Which pkgsrc is that? When I build libvpx on sandpoint 7.0 with
pkgsrc-2015Q3 then the PowerPC-entries in configure and configure.sh are
already (or still) present:
configure:
all_platforms="${all_platforms} ppc32-darwin8-gcc"
all_platforms="${all_platforms} ppc32-darwin9-gcc"
all_platforms="${all_platforms} ppc32-linux-gcc"
all_platforms="${all_platforms} ppc64-darwin8-gcc"
all_platforms="${all_platforms} ppc64-darwin9-gcc"
all_platforms="${all_platforms} ppc64-linux-gcc"
configure.sh:
*powerpc64*)
tgt_isa=ppc64
;;
*powerpc*)
tgt_isa=ppc32
;;
Although... I'm running into a compiler bug when trying to build libvpx:
---8<---
[CC] vp9/encoder/vp9_temporal_filter.c.o
libtool: compile: gcc -O2 -maltivec -DNDEBUG -O3 -fPIC -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall
-Wdeclaration-after-statement -Wdisabled-optimization -Wpointer-arith
-Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration
-Wuninitialized -Wunused-variable -Wunused-but-set-variable
-Wno-unused-function -I.
-I/usr/pkgsrc-2015Q3-70/multimedia/libvpx/work/libvpx-1.4.0 -Wextra -c
vp9/encoder/vp9_temporal_filter.c -fPIC -DPIC -o
vp9/encoder/.libs/vp9_temporal_filter.c.o
rs6000_secondary_reload_inner:17027, type = load
(parallel [
(set (reg:V8HI 82 5)
(mem:V8HI (and:SI (reg:SI 65 lr [orig:1018 D.10745 ] [1018])
(const_int -16 [0xfffffffffffffff0])) [18
MEM[(__uint16_t *)_890 & 4294967280B]+0 S16 A128]))
(clobber (reg:SI 21 21))
])
vp9/encoder/vp9_temporal_filter.c: In function
'vp9_temporal_filter_apply_c':
vp9/encoder/vp9_temporal_filter.c:162:1: internal compiler error: in
rs6000_secondary_reload_fail, at config/rs6000/rs6000.c:16818
}
^
no stack trace because unwind library not available
---8<---
But even without compiler bug libvpx would never work on my machine
(PPC8241, G2 core), as configure assumes that AltiVec is always present. :|
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index