Page 1 of 1

failed to compile libVLC for Android (Error: unknown register alias 'GP')

Posted: 24 Jul 2019 09:21
by xrddd
I am stucked in android libVLC compiling. This is the output:
{standard input}: Assembler messages:
{standard input}:146: Error: unknown register alias 'GP'
clang70: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/Users/peterdou/Documents/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/ffmpeg'
make: *** [.ffmpeg] Error 2

Thanks for any help!

Re: failed to compile libVLC for Android (Error: unknown register alias 'GP')

Posted: 24 Jul 2019 09:44
by unidan
Hi, you didn't write what you did, it's hard to help you as a normal project configuration doesn't fail on this.

Re: failed to compile libVLC for Android (Error: unknown register alias 'GP')

Posted: 24 Jul 2019 18:34
by RĂ©mi Denis-Courmont
Looks like a problem in FFmpeg build, so probably not the best venue to ask...

Re: failed to compile libVLC for Android (Error: unknown register alias 'GP')

Posted: 26 Jul 2019 05:45
by xrddd
Hi, you didn't write what you did, it's hard to help you as a normal project configuration doesn't fail on this.
Hi,unidan. I want a libVLC to develop an media player on Android. I has cloned from https://code.videolan.org/videolan/vlc-android.git. But when running "sh compile.sh -l -a armeabi-v7a -r",the output currently is:
......
/Users/peterdou/Documents/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/harfbuzz/src/hb-coretext.h:32:10: fatal error:
'TargetConditionals.h' file not found
#include <TargetConditionals.h>
......
{standard input}: Assembler messages:
{standard input}:146: Error: unknown register alias 'GP'
clang70: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/ac3dsp_armv6.o] Error 1
make[1]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:436: Error: unknown register alias 'GP'
{standard input}:472: Error: unknown register alias 'GP'
{standard input}: {standard input}:508: Error: unknown register alias 'GP'
Assembler messages:
{standard input}:288: Error: unknown register alias 'GP'
{standard input}:544: Error: unknown register alias 'GP'
{standard input}:580: Error: unknown register alias 'GP'
{standard input}:616: Error: unknown register alias 'GP'
{standard input}:652: Error: unknown register alias 'GP'
{standard input}:422: Error: unknown register alias 'GP'
{standard input}:688: Error: unknown register alias 'GP'
{standard input}:459: Error: unknown register alias 'GP'
{standard input}:724: Error: unknown register alias 'GP'
{standard input}:760: Error: unknown register alias 'GP'
{standard input}:496: Error: unknown register alias 'GP'
{standard input}:533: Error: unknown register alias 'GP'
{standard input}:570: Error: unknown register alias 'GP'
{standard input}:796: Error: unknown register alias 'GP'
{standard input}:607: Error: unknown register alias 'GP'
{standard input}:832: Error: unknown register alias 'GP'
{standard input}:644: Error: unknown register alias 'GP'
{standard input}:681: Error: unknown register alias 'GP'
{standard input}:718: Error: unknown register alias 'GP'
{standard input}:755: Error: unknown register alias 'GP'
{standard input}:792: Error: unknown register alias 'GP'
{standard input}:829: Error: unknown register alias 'GP'
clang70: error: assembler command failed with exit code 1 (use -v to see invocation)
clang70: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/fft_fixed_neon.o] Error 1
make[1]: *** [libavcodec/arm/fft_neon.o] Error 1
{standard input}: Assembler messages:
{standard input}:641: Error: unknown register alias 'GP'
{standard input}:820: Error: unknown register alias 'GP'
{standard input}:997: Error: unknown register alias 'GP'
{standard input}:1176: Error: unknown register alias 'GP'
{standard input}:1359: Error: unknown register alias 'GP'
{standard input}:1542: Error: unknown register alias 'GP'
{standard input}:1725: Error: unknown register alias 'GP'
{standard input}:1908: Error: unknown register alias 'GP'
{standard input}:2091: Error: unknown register alias 'GP'
{standard input}:2274: Error: unknown register alias 'GP'
{standard input}:2457: Error: unknown register alias 'GP'
{standard input}:2640: Error: unknown register alias 'GP'
clang70: error: assembler command failed with exit code 1 (use -v to see invocation)
make[1]: *** [libavcodec/arm/fft_vfp.o] Error 1
libavformat/utils.c:5541:42: warning: 'codec' is deprecated [-Wdeprecated-declarations]
const AVCodecContext *dec_ctx = ist->codec;
^
libavformat/avformat.h:875:5: note: 'codec' has been explicitly marked deprecated here
attribute_deprecated
^
./libavutil/attributes.h:94:49: note: expanded from macro 'attribute_deprecated'
# define attribute_deprecated __attribute__((deprecated))
^
libavformat/utils.c:5542:42: warning: 'codec' is deprecated [-Wdeprecated-declarations]
AVCodecContext *enc_ctx = ost->codec;
^
libavformat/avformat.h:875:5: note: 'codec' has been explicitly marked deprecated here
attribute_deprecated
^
./libavutil/attributes.h:94:49: note: expanded from macro 'attribute_deprecated'
# define attribute_deprecated __attribute__((deprecated))
^
2 warnings generated.
make[1]: Leaving directory `/Users/peterdou/Documents/vlc-android/vlc/contrib/contrib-android-arm-linux-androideabi/ffmpeg'
make: *** [.ffmpeg] Error 2

Re: failed to compile libVLC for Android (Error: unknown register alias 'GP')

Posted: 09 Nov 2019 15:25
by quink
https://mailman.videolan.org/pipermail/vlc-devel/2019-November/129437.html