Page 1 of 1

GNU assembler not found, install gas-preprocessor

Posted: 23 Jan 2013 04:40
by boyd.yang
Hello,

I am compiling VLC for iOS on mountain lion, meet this error.
Does anyone know how to fix this?
Thanks!

git://git.videolan.org/vlc-ports/ios.git


[info] LD FLAGS SELECTED = '-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1'
/Users/byang/Project/VLC/ios/ImportedSources/vlc
cd postproc && CC="xcrun clang" CXX="xcrun clang++" LD="xcrun ld" AR="xcrun ar" RANLIB="xcrun ranlib" STRIP="xcrun strip" PATH="/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/Users/byang/Project/VLC/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/byang/Project/VLC/ios/ImportedSources/vlc/extras/tools/build/bin:/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/byang/Project/VLC/ios/ImportedSources/vlc/extras/package/ios/resources" CPPFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -g -mcpu=cortex-a8 -miphoneos-version-min=5.1 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include" CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -g -mcpu=cortex-a8 -miphoneos-version-min=5.1 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" CXXFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -g -mcpu=cortex-a8 -miphoneos-version-min=5.1 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g" LDFLAGS="-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1 -arch armv7 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -L/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/lib" ./configure \
--extra-cflags="-arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include" \
--extra-ldflags="-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1 -arch armv7 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -L/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/lib" --cc="xcrun clang" --disable-debug --enable-gpl --enable-postproc --enable-small --enable-cross-compile --disable-runtime-cpudetect --arch=arm --cpu=cortex-a8 --enable-neon --arch=arm --target-os=darwin --as="perl /Users/byang/Project/VLC/ios/ImportedSources/vlc/extras/tools/build/bin/gas-preprocessor.pl xcrun clang" --enable-pthreads \
--prefix="/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11" --enable-static --disable-shared
GNU assembler not found, install gas-preprocessor

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
libav-user@libav.org mailing list or IRC #libav on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
make: *** [.postproc] Error 1


config.log shows:
END /var/folders/nt/qs2s62rx6c346h11wbtmr2f00000gn/T//ffconf.Mj0pmQF8.c
xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -g -mcpu=cortex-a8 -miphoneos-version-min=5.1 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -g -mcpu=cortex-a8 -miphoneos-version-min=5.1 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -g -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib/arm-apple-darwin11/include -mcpu=cortex-a8 -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -marm -E -o /var/folders/nt/qs2s62rx6c346h11wbtmr2f00000gn/T//ffconf.ru0oG5g5.o /var/folders/nt/qs2s62rx6c346h11wbtmr2f00000gn/T//ffconf.Mj0pmQF8.c
/var/folders/nt/qs2s62rx6c346h11wbtmr2f00000gn/T//ffconf.Mj0pmQF8.c:3:2: error: "unsatisfied condition: defined __ARM_PCS_VFP"
#error "unsatisfied condition: defined __ARM_PCS_VFP"
^
1 error generated.
check_cpp_condition stddef.h defined __ARM_PCS || defined __SOFTFP__
check_cpp
BEGIN /var/folders/nt/qs2s62rx6c346h11wbtmr2f00000gn/T//ffconf.Mj0pmQF

Re: GNU assembler not found, install gas-preprocessor

Posted: 23 Jan 2013 08:33
by gpinigin
Fixed this issue by removing "-g" flag in vlc/extras/package/ios/build.sh at line:
ARCH="armv7 -g"

Re: GNU assembler not found, install gas-preprocessor

Posted: 24 Jan 2013 03:15
by boyd.yang
Thanks gpinigin.

Other errors to fix:
1)add "LIBTOOL=@LIBTOOL@ --tag=CC" on the head of this file:
MobileVLC/ImportedSources/vlc/modules/video_filter/Modules.am.


2) CopyStringsFile
Summary: Building MobileVLC fails with the error,

The following build commands failed:
CopyStringsFile build/Release-iphoneos/VLC.app/pl.lproj/Localizable.strings Resources/pl.lproj/Localizable.strings
Details: The offending file, MobileVLC/Resources/pl.lproj/Localizable.strings is a UTF-16-LE file missing a byte-order-mark (BOM), which confuses Xcode for some reason.

Workaround: cd into MobileVLC/Resources/pl.lproj/ and execute

mv -n Localizable.strings Localizable.strings.backup && python -c "import sys; sys.stdout.write(chr(0xFF)+chr(0xFE))" > Localizable.strings && cat Localizable.strings.backup >> Localizable.strings

3)Update buildMobileVLC.sh, change the SDK version

SDK=iphoneos6.0

Now it succeeds in building.

Does anyone update the source in git://git.videolan.org/vlc-ports/ios.git?

It is about half year old.

Re: GNU assembler not found, install gas-preprocessor

Posted: 24 Jan 2013 03:24
by boyd.yang
Why I get this warning when running?

'IMG_4148' is unsafe and will crash, ignoring.

When playing, it crashed:

[[32;1m0x4c0cc0[0m] main libvlc debug: [0mVLC media player - 2.1.0-git Rincewind[0m
[[32;1m0x4c0cc0[0m] main libvlc debug: [0mCopyright © 1996-2013 the VideoLAN team[0m
[[32;1m0x4c0cc0[0m] main libvlc debug: [0mrevision 1.3.0-git-5389-g7d575ec[0m
[[32;1m0x4c0cc0[0m] main libvlc debug: [0mconfigured with /Users/byang/Project/VLC/ios/ImportedSources/vlc/configure '--prefix=/Users/byang/Project/VLC/ios/ImportedSources/vlc/install-ios-OS' '--host=arm-apple-darwin11' '--disable-debug' '--enable-static' '--disable-macosx' '--disable-macosx-vout' '--disable-macosx-dialog-provider' '--disable-macosx-qtkit' '--disable-macosx-eyetv' '--disable-macosx-vlc-app' '--enable-audioqueue' '--enable-ios-vout' '--disable-shared' '--disable-macosx-quartztext' '--enable-avcodec' '--enable-mkv' '--enable-opus' '--enable-mad' '--disable-a52' '--disable-fribidi' '--disable-macosx-audio' '--disable-qt' '--disable-skins2' '--disable-libgcrypt' '--disable-vcd' '--disable-vlc' '--disable-vlm' '--disable-httpd' '--disable-nls' '--disable-glx' '--disable-sse' '--enable-neon' '--disable-notify' '--enable-live555' '--enable-realrtsp' '--enable-dvbpsi' '--enable-swscale' '--disable-projectm' '--disable-libass' '--disable-sqlite' '--disable-libxml2' '--disable-goom' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-libva' '--disable-gme' '--disable-tremor' '--disable-vorbis' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-sout' '--disable-faad' '--disable-lua' '--disable-mtp' '--enable-ogg' '--enable-speex' '--enable-theora' '--enable-flac' '--disable-freetype' '--disable-taglib' '--disable-mmx' 'host_alias=arm-apple-darwin11' 'CC=xcrun clang' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'LDFLAGS=-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.1' 'CPPFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CPP=xcrun cc -E' 'CXX=xcrun clang++' 'CXXFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'OBJC=xcrun clang' 'OBJCFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 ' 'CCAS=/Users/byang/Project/VLC/ios/ImportedSources/vlc/extras/tools/gas/gas-preprocessor.pl xcrun clang' 'CXXCPP=xcrun c++ -E' 'DVBPSI_CFLAGS=-I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'DVBPSI_LIBS=-L/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib ' 'AVCODEC_CFLAGS=-I/Users/byang/Project/VLC/ios/ImportedSources/vlc/install-ios-OS/include ' 'AVCODEC_LIBS=-L/Users/byang/Project/VLC/ios/ImportedSources/vlc/install-ios-OS/lib -lavcodec -lavutil -lz' 'AVFORMAT_CFLAGS=-I/Users/byang/Project/VLC/ios/ImportedSources/vlc/install-ios-OS/include' 'AVFORMAT_LIBS=-L/Users/byang/Project/VLC/ios/ImportedSources/vlc/install-ios-OS/lib -lavcodec -lz -lavutil -lavformat' 'SWSCALE_CFLAGS=-I/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/include ' 'SWSCALE_LIBS=-L/Users/byang/Project/VLC/ios/ImportedSources/vlc/contrib-ios-arm-apple-darwin11/lib '[0m
[[32;1m0x4c0cc0[0m] main libvlc debug: [0mplug-ins loaded: 1 modules[0m
vlc: unknown option or missing mandatory argument `--avcodec-fast'
Try `vlc --help' for more information.
2013-01-24 10:23:57.379 VLC[14299:907] *** Assertion failure in -[VLCLibrary init], /Users/byang/Project/VLC/ios/ImportedSources/VLCKit/Sources/VLCLibrary.m:89

Re: GNU assembler not found, install gas-preprocessor

Posted: 24 Jan 2013 05:14
by gpinigin
Seems, that avcodec plugin isn't loaded.

Furthermore, I'd recommend you to disable --avcodec-fast option in [VLCLibrary init], as it produces crashes.

P.S. I'm preparing several patches, will post them for review soon.

Re: GNU assembler not found, install gas-preprocessor

Posted: 28 Jan 2013 18:46
by fkuehne
"plug-ins loaded: 1 modules". your static libvlc is clearly corrupted, since it should find more than 100 modules by default.

Re: GNU assembler not found, install gas-preprocessor

Posted: 29 Jan 2013 06:16
by PATT
How to fix "plug-ins loaded: 1 modules" problem?

Re: GNU assembler not found, install gas-preprocessor

Posted: 29 Jan 2013 07:26
by gpinigin
Take look at vlc-plugins.h in ImportedSources/VLCKit/MobileVLCKit. This file is generated automatically by AggregateStaticPlugins.sh, so if in this file only 1 plugin added then problem in AggregateStaticPlugins.sh, otherwise take a look at compilation process of vlc(i.e. AggregateStaticPlugins.sh found only one properly compiled plugin).

Re: GNU assembler not found, install gas-preprocessor

Posted: 29 Jan 2013 09:16
by PATT
I have solved the problem - "vlc: unknown option or missing mandatory argument `--avcodec-fast'" . This is just because of my lazy..... We need to build both of os and simulator once to complete the compile process. After I type ./buildMobileVLC.sh -s , the problem do not appear, so no crash in VLCLibrary.m - init now.

Re: GNU assembler not found, install gas-preprocessor

Posted: 29 Jan 2013 21:47
by CrapulaX
I also got this error "GNU assembler not found, install gas-preprocessor".
The reason was that during the tools building step, CMake build failed and this was generating other errors afterwards.