Stuart Longland <stua...@longlandclan.id.au> writes: > On 28/11/16 22:13, Jeremie Courreges-Anglas wrote: >> Stuart Longland <stua...@longlandclan.id.au> writes: >> >>> Hi all, >>> >>> Well, my experiments with loongson have proven fruitful, except for the >>> need of a web browser. Part of this is due to the webkit browsers >>> needing the libav gstreamer plug-in. >>> >>> Now, this fails to build because of the assembler not recognising some >>> op codes generated by gcc. I found I got a little further in the build >>> using the `gcc4` package, but it still failed to compile, failing with >>> an "unrecognized opcode ldx" error message. >> >> What's the error log when you try with gcc from base? >> > > Okay, did a clean and a rebuild using base image gcc: > >> cc -I. -I./ >> -I/usr/local/ports/obj/gstreamer1-plugins-libav-1.8.2/gst-libav-1.8.2/gst-libs/ext/libav >> -I/usr/local/include -I/usr/X11R6/include -EL -D_ISOC99_SOURCE >> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DZLIB_CONST >> -DHAVE_AV_CONFIG_H -O2 -pipe -std=c99 -fPIC -mips64 -mhard-float -mfp64 >> -mdsp -pthread -I/usr/X11R6/include -I/usr/X11R6/include >> -I/usr/X11R6/include -I/usr/X11R6/include -Wdeclaration-after-statement >> -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls >> -Wwrite-strings -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast >> -Wstrict-prototypes -Wno-parentheses -Wno-switch -Wno-format-zero-length >> -Wno-pointer-sign -fno-math-errno -fno-tree-vectorize >> -Werror=format-security -Werror=implicit-function-declaration >> -Werror=missing-prototypes -Werror=return-type -Wformat -MMD -MF >> libavcodec/mpegaudiodec_fixed.d -MT >> libavcodec/mpegaudiodec_fixed.o -c -o libavcodec/mpegaudiodec_fixed.o >> libavcodec/mpegaudiodec_fixed.c >> {standard input}: Assembler messages: >> {standard input}:3876: Error: illegal operands `mult $ac0,$11,$8' >> {standard input}:3877: Error: illegal operands `mult $ac1,$11,$8' >> {standard input}:3883: Error: illegal operands `msub $ac0,$12,$7'
[...] Looks like the -mdsp flag is the problem. You could give this patch a try (stolen from graphics/ffmpeg): Index: Makefile =================================================================== RCS file: /d/cvs/ports/multimedia/gstreamer1/plugins-libav/Makefile,v retrieving revision 1.31 diff -u -p -p -u -r1.31 Makefile --- Makefile 10 Apr 2016 10:14:12 -0000 1.31 +++ Makefile 4 Dec 2016 16:31:53 -0000 @@ -39,6 +39,11 @@ libav_CONFIGURE_ARGS= --arch=${GST_LIBAV --disable-armv5te \ --disable-armv6 \ --disable-armv6t2 \ + --disable-mips32r5 \ + --disable-mips64r6 \ + --disable-mipsdspr1 \ + --disable-mipsdspr2 \ + --disable-mipsfpu \ --disable-sdl \ --disable-vfp \ --disable-debug -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE