Gcc Error Unrecognized Option Soname
Contents |
here for a quick overview of the site Help Center Detailed answers to any gcc unrecognized command line option questions you might have Meta Discuss the workings and policies
Unrecognized Command Line Option "-mno-cygwin"
of this site About Us Learn more about Stack Overflow the company Business Learn more fstack-protector-strong about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack gcc command line option Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up gcc soname unrecognized command line up vote 0 down vote favorite I'm compiling sipXtapi and I need to compile with this line gcc -shared -DPIC .libs/codec_pcmapcmu_la-CodecPcmaWrapper.o .libs/codec_pcmapcmu_la-CodecPcmuWrapper.o .libs/codec_pcmapcmu_la-G711.o .libs/codec_pcmapcmu_la-PlgPcmaPcmu.o
Unrecognized Command Line Option Std C 14
-lc -W1,-soname=codec_pcmapcmu.so -o .libs/codec_pcmapcmu.so gcc: error: unrecognized command line option ‘-W1,-soname=codec_pcmapcmu.so’ and this is the Makefile.am: ## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/../sipXportLib/include -I$(top_srcdir)/contrib/libspandsp/src pkgdata_LTLIBRARIES = codec_pcmapcmu.la codec_pcmapcmu_la_SOURCES = \ CodecPcmaWrapper.c \ CodecPcmuWrapper.c \ G711.c \ PlgPcmaPcmu.c if PCMAPCMU_STATIC codec_pcmapcmu_la_CFLAGS = -DCODEC_STATIC codec_pcmapcmu_la_LDFLAGS = -module -avoid-version -static else codec_pcmapcmu_la_LDFLAGS = -module -avoid-version all-local: codec_pcmapcmu.la echo "Installing plugin codec_pcmapcmu.so ..." cp -f .libs/codec_pcmapcmu.so @DEFAULT_CODECS_PATH@ clean-local: rm -f @DEFAULT_CODECS_PATH@/codec_pcmapcmu.so endif how can I solve the problem? c++ gcc makefile share|improve this question edited Nov 10 '15 at 15:19 Etan Reisner 48.3k32555 asked Nov 10 '15 at 14:55 JMR 472422 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted There's a spelling error there -W1 should be -Wl (that's a lower case L instead of the digit 1) share|improve this answer answered Nov 10 '15 at 14:59 nos 141k32240373 yes but wher
liberato83 Member Registered: 2013-05-24 Posts: 5 [SOLVED] gcc: error: unrecognized command line option '-V' Hi.. this is my first post but I g++ error unrecognized command line option always read the forum to solve my problem! ;) thank you g++ wl to all!!!! sorry for my bad english in advanced...This is my problem:I have Archlinux x86_64 with
Unrecognized Command Line Option ‘-std=c++14’
Gnome (last version).I try to install the driver for my printer epson sx218 but when I compile the bash show:.... checking for gcc... gcc checking for C http://stackoverflow.com/questions/33632870/gcc-soname-unrecognized-command-line compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. ....now, I see the config.log file and I see the line:gcc: error: unrecognized command line option '-V'my makepkg.conf:# # /etc/makepkg.conf # ######################################################################### # SOURCE ACQUISITION ######################################################################### # #-- The download utilities that makepkg should use to acquire https://bbs.archlinux.org/viewtopic.php?id=163913 sources # Format: 'protocol::agent' DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u' 'rsync::/usr/bin/rsync --no-motd -z %u %o' 'scp::/usr/bin/scp -C %u %o') # Other common tools: # /usr/bin/snarf # /usr/bin/lftpget -c # /usr/bin/wget ######################################################################### # ARCHITECTURE, COMPILE FLAGS ######################################################################### # CARCH="x86_64" CHOST="x86_64-unknown-linux-gnu" #-- Compiler and Linker Flags # -march (or -mcpu) builds exclusively for an architecture # -mtune optimizes for an architecture, but builds for whole processor family CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS="-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4" CXXFLAGS="${CFLAGS}" LDFLAGS="-Wl, -O1,--sort-common,--as-needed,-z,relro" #-- Make Flags: change this for DistCC/SMP systems MAKEFLAGS="-j2" #-- Debugging flags DEBUG_CFLAGS="-g -fvar-tracking-assignments" DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" ######################################################################### # BUILD ENVIRONMENT ######################################################################### # # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign) # A negated environment option will do the opposite of the comments below. # #-- fakeroot: Allow building packages as a non-root user #-- distcc: Use the Distributed C/C++/ObjC compiler
to compile a software project which uses BSD make and get an error like the one below: cc: error:
Sign in Pricing Blog Support Search GitHub This repository Watch 27 Star 96 Fork 53 Chronic-Dev/libirecovery Code Issues 8 Pull requests 0 Projects 0 Pulse Graphs New issue MakeFile will not compile on Arch Linux #13 Closed sirkingchase opened this Issue Apr 1, 2013 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants sirkingchase commented Apr 1, 2013 When trying to compile I get - Cloning into '/tmp/yaourt-tmp-samarch/aur-libirecovery-git/src/libirecovery-build'... done. gcc -c libirecovery.c -o libirecovery.o -m32 -fPIC -O3 -I./include -I/usr/include -I/usr/local/include gcc -o libirecovery.so libirecovery.o -L/usr/lib -L/usr/local/lib -shared -W1,-soname,libirecovery.so -m32 -lusb-1.0 gcc: error: unrecognized command line option ‘-W1,-soname,libirecovery.so’ make: *** [libirecovery.so] Error 1 Solution - I used an old Makefile from tokm's old fork and with some modification it worked. I cloned the git into a directory and executed these commands - gcc -o libirecovery.o -c libirecovery.c -g -I./include -lreadline -fPIC gcc -o libirecovery.so libirecovery.o -g -shared -Wl,-soname,libirecovery.so -lusb-1.0 gcc -o irecovery irecovery.c -g -I./include -L. -lirecovery -lreadline It successfully compiles and you get the executable, then you do - cp libirecovery.so /usr/lib/libirecovery.so cp include/libirecovery.h /usr/local/include/libirecovery.h cp irecovery /usr/local/bin/irecovery ldconfig Chronic-Dev Team member winocm commented Apr 12, 2013 Well, that makes sense since -Wl isn't -W1. sirkingchase commented Apr 14, 2013 I didn't even realize that was the reason it didn't work. Awesome. This turned out to be a dead end anyways I couldn't get idevicerestore to compile. Only thing Ievbeen able to use libirecovery for was to kick the iPhone out of a recovery loop DHowett closed this Apr 22, 2013 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blo