gccinstall.info 214 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007
  1. This is gccinstall.info, produced by makeinfo version 6.8 from
  2. install.texi.
  3. Copyright (C) 1988-2021 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, the Front-Cover texts being (a) (see below), and
  8. with the Back-Cover Texts being (b) (see below). A copy of the license
  9. is included in the section entitled "GNU Free Documentation License".
  10. (a) The FSF's Front-Cover Text is:
  11. A GNU Manual
  12. (b) The FSF's Back-Cover Text is:
  13. You have freedom to copy and modify this GNU Manual, like GNU
  14. software. Copies published by the Free Software Foundation raise funds
  15. for GNU development.
  16. INFO-DIR-SECTION Software development
  17. START-INFO-DIR-ENTRY
  18. * gccinstall: (gccinstall). Installing the GNU Compiler Collection.
  19. END-INFO-DIR-ENTRY
  20. Copyright (C) 1988-2021 Free Software Foundation, Inc.
  21. Permission is granted to copy, distribute and/or modify this document
  22. under the terms of the GNU Free Documentation License, Version 1.3 or
  23. any later version published by the Free Software Foundation; with no
  24. Invariant Sections, the Front-Cover texts being (a) (see below), and
  25. with the Back-Cover Texts being (b) (see below). A copy of the license
  26. is included in the section entitled "GNU Free Documentation License".
  27. (a) The FSF's Front-Cover Text is:
  28. A GNU Manual
  29. (b) The FSF's Back-Cover Text is:
  30. You have freedom to copy and modify this GNU Manual, like GNU
  31. software. Copies published by the Free Software Foundation raise funds
  32. for GNU development.
  33. 
  34. File: gccinstall.info, Node: Top, Up: (dir)
  35. * Menu:
  36. * Installing GCC:: This document describes the generic installation
  37. procedure for GCC as well as detailing some target
  38. specific installation instructions.
  39. * Specific:: Host/target specific installation notes for GCC.
  40. * Binaries:: Where to get pre-compiled binaries.
  41. * Old:: Old installation documentation.
  42. * GNU Free Documentation License:: How you can copy and share this manual.
  43. * Concept Index:: This index has two entries.
  44. 
  45. File: gccinstall.info, Node: Installing GCC, Next: Binaries, Up: Top
  46. 1 Installing GCC
  47. ****************
  48. The latest version of this document is always available at
  49. http://gcc.gnu.org/install/. It refers to the current development
  50. sources, instructions for specific released versions are included with
  51. the sources.
  52. This document describes the generic installation procedure for GCC as
  53. well as detailing some target specific installation instructions.
  54. GCC includes several components that previously were separate
  55. distributions with their own installation instructions. This document
  56. supersedes all package-specific installation instructions.
  57. _Before_ starting the build/install procedure please check the *note
  58. host/target specific installation notes: Specific. We recommend you
  59. browse the entire generic installation instructions before you proceed.
  60. Lists of successful builds for released versions of GCC are available
  61. at <http://gcc.gnu.org/buildstat.html>. These lists are updated as new
  62. information becomes available.
  63. The installation procedure itself is broken into five steps.
  64. * Menu:
  65. * Prerequisites::
  66. * Downloading the source::
  67. * Configuration::
  68. * Building::
  69. * Testing:: (optional)
  70. * Final install::
  71. Please note that GCC does not support 'make uninstall' and probably
  72. won't do so in the near future as this would open a can of worms.
  73. Instead, we suggest that you install GCC into a directory of its own and
  74. simply remove that directory when you do not need that specific version
  75. of GCC any longer, and, if shared libraries are installed there as well,
  76. no more binaries exist that use them.
  77. 
  78. File: gccinstall.info, Node: Prerequisites, Next: Downloading the source, Up: Installing GCC
  79. 2 Prerequisites
  80. ***************
  81. GCC requires that various tools and packages be available for use in the
  82. build procedure. Modifying GCC sources requires additional tools
  83. described below.
  84. Tools/packages necessary for building GCC
  85. =========================================
  86. ISO C++11 compiler
  87. Necessary to bootstrap GCC.
  88. Versions of GCC prior to 11 also allow bootstrapping with an ISO
  89. C++98 compiler, versions of GCC prior to 4.8 also allow
  90. bootstrapping with a ISO C89 compiler, and versions of GCC prior to
  91. 3.4 also allow bootstrapping with a traditional (K&R) C compiler.
  92. To build all languages in a cross-compiler or other configuration
  93. where 3-stage bootstrap is not performed, you need to start with an
  94. existing GCC binary (version 4.8 or later) because source code for
  95. language frontends other than C might use GCC extensions.
  96. Note that to bootstrap GCC with versions of GCC earlier than 4.8,
  97. you may need to use '--disable-stage1-checking', though
  98. bootstrapping the compiler with such earlier compilers is strongly
  99. discouraged.
  100. C standard library and headers
  101. In order to build GCC, the C standard library and headers must be
  102. present for all target variants for which target libraries will be
  103. built (and not only the variant of the host C++ compiler).
  104. This affects the popular 'x86_64-pc-linux-gnu' platform (among
  105. other multilib targets), for which 64-bit ('x86_64') and 32-bit
  106. ('i386') libc headers are usually packaged separately. If you do a
  107. build of a native compiler on 'x86_64-pc-linux-gnu', make sure you
  108. either have the 32-bit libc developer package properly installed
  109. (the exact name of the package depends on your distro) or you must
  110. build GCC as a 64-bit only compiler by configuring with the option
  111. '--disable-multilib'. Otherwise, you may encounter an error such
  112. as 'fatal error: gnu/stubs-32.h: No such file'
  113. GNAT
  114. In order to build GNAT, the Ada compiler, you need a working GNAT
  115. compiler (GCC version 4.7 or later).
  116. This includes GNAT tools such as 'gnatmake' and 'gnatlink', since
  117. the Ada front end is written in Ada and uses some GNAT-specific
  118. extensions.
  119. In order to build a cross compiler, it is strongly recommended to
  120. install the new compiler as native first, and then use it to build
  121. the cross compiler. Other native compiler versions may work but
  122. this is not guaranteed and will typically fail with hard to
  123. understand compilation errors during the build.
  124. Similarly, it is strongly recommended to use an older version of
  125. GNAT to build GNAT. More recent versions of GNAT than the version
  126. built are not guaranteed to work and will often fail during the
  127. build with compilation errors.
  128. Note that 'configure' does not test whether the GNAT installation
  129. works and has a sufficiently recent version; if too old a GNAT
  130. version is installed and '--enable-languages=ada' is used, the
  131. build will fail.
  132. 'ADA_INCLUDE_PATH' and 'ADA_OBJECT_PATH' environment variables must
  133. not be set when building the Ada compiler, the Ada tools, or the
  134. Ada runtime libraries. You can check that your build environment
  135. is clean by verifying that 'gnatls -v' lists only one explicit path
  136. in each section.
  137. A "working" POSIX compatible shell, or GNU bash
  138. Necessary when running 'configure' because some '/bin/sh' shells
  139. have bugs and may crash when configuring the target libraries. In
  140. other cases, '/bin/sh' or 'ksh' have disastrous corner-case
  141. performance problems. This can cause target 'configure' runs to
  142. literally take days to complete in some cases.
  143. So on some platforms '/bin/ksh' is sufficient, on others it isn't.
  144. See the host/target specific instructions for your platform, or use
  145. 'bash' to be sure. Then set 'CONFIG_SHELL' in your environment to
  146. your "good" shell prior to running 'configure'/'make'.
  147. 'zsh' is not a fully compliant POSIX shell and will not work when
  148. configuring GCC.
  149. A POSIX or SVR4 awk
  150. Necessary for creating some of the generated source files for GCC.
  151. If in doubt, use a recent GNU awk version, as some of the older
  152. ones are broken. GNU awk version 3.1.5 is known to work.
  153. GNU binutils
  154. Necessary in some circumstances, optional in others. See the
  155. host/target specific instructions for your platform for the exact
  156. requirements.
  157. gzip version 1.2.4 (or later) or
  158. bzip2 version 1.0.2 (or later)
  159. Necessary to uncompress GCC 'tar' files when source code is
  160. obtained via HTTPS mirror sites.
  161. GNU make version 3.80 (or later)
  162. You must have GNU make installed to build GCC.
  163. GNU tar version 1.14 (or later)
  164. Necessary (only on some platforms) to untar the source code. Many
  165. systems' 'tar' programs will also work, only try GNU 'tar' if you
  166. have problems.
  167. Perl version between 5.6.1 and 5.6.24
  168. Necessary when targeting Darwin, building 'libstdc++', and not
  169. using '--disable-symvers'. Necessary when targeting Solaris 2 with
  170. Solaris 'ld' and not using '--disable-symvers'.
  171. Necessary when regenerating 'Makefile' dependencies in libiberty.
  172. Necessary when regenerating 'libiberty/functions.texi'. Necessary
  173. when generating manpages from Texinfo manuals. Used by various
  174. scripts to generate some files included in the source repository
  175. (mainly Unicode-related and rarely changing) from source tables.
  176. Used by 'automake'.
  177. Several support libraries are necessary to build GCC, some are
  178. required, others optional. While any sufficiently new version of
  179. required tools usually work, library requirements are generally
  180. stricter. Newer versions may work in some cases, but it's safer to use
  181. the exact versions documented. We appreciate bug reports about problems
  182. with newer versions, though. If your OS vendor provides packages for
  183. the support libraries then using those packages may be the simplest way
  184. to install the libraries.
  185. GNU Multiple Precision Library (GMP) version 4.3.2 (or later)
  186. Necessary to build GCC. If a GMP source distribution is found in a
  187. subdirectory of your GCC sources named 'gmp', it will be built
  188. together with GCC. Alternatively, if GMP is already installed but
  189. it is not in your library search path, you will have to configure
  190. with the '--with-gmp' configure option. See also '--with-gmp-lib'
  191. and '--with-gmp-include'. The in-tree build is only supported with
  192. the GMP version that download_prerequisites installs.
  193. MPFR Library version 3.1.0 (or later)
  194. Necessary to build GCC. It can be downloaded from
  195. <https://www.mpfr.org>. If an MPFR source distribution is found in
  196. a subdirectory of your GCC sources named 'mpfr', it will be built
  197. together with GCC. Alternatively, if MPFR is already installed but
  198. it is not in your default library search path, the '--with-mpfr'
  199. configure option should be used. See also '--with-mpfr-lib' and
  200. '--with-mpfr-include'. The in-tree build is only supported with
  201. the MPFR version that download_prerequisites installs.
  202. MPC Library version 1.0.1 (or later)
  203. Necessary to build GCC. It can be downloaded from
  204. <http://www.multiprecision.org/mpc/>. If an MPC source
  205. distribution is found in a subdirectory of your GCC sources named
  206. 'mpc', it will be built together with GCC. Alternatively, if MPC is
  207. already installed but it is not in your default library search
  208. path, the '--with-mpc' configure option should be used. See also
  209. '--with-mpc-lib' and '--with-mpc-include'. The in-tree build is
  210. only supported with the MPC version that download_prerequisites
  211. installs.
  212. isl Library version 0.15 or later.
  213. Necessary to build GCC with the Graphite loop optimizations. It
  214. can be downloaded from
  215. <https://gcc.gnu.org/pub/gcc/infrastructure/>. If an isl source
  216. distribution is found in a subdirectory of your GCC sources named
  217. 'isl', it will be built together with GCC. Alternatively, the
  218. '--with-isl' configure option should be used if isl is not
  219. installed in your default library search path.
  220. zstd Library.
  221. Necessary to build GCC with zstd compression used for LTO bytecode.
  222. The library is searched in your default library patch search.
  223. Alternatively, the '--with-zstd' configure option should be used.
  224. Tools/packages necessary for modifying GCC
  225. ==========================================
  226. autoconf version 2.69
  227. GNU m4 version 1.4.6 (or later)
  228. Necessary when modifying 'configure.ac', 'aclocal.m4', etc. to
  229. regenerate 'configure' and 'config.in' files.
  230. automake version 1.15.1
  231. Necessary when modifying a 'Makefile.am' file to regenerate its
  232. associated 'Makefile.in'.
  233. Much of GCC does not use automake, so directly edit the
  234. 'Makefile.in' file. Specifically this applies to the 'gcc',
  235. 'intl', 'libcpp', 'libiberty', 'libobjc' directories as well as any
  236. of their subdirectories.
  237. For directories that use automake, GCC requires the latest release
  238. in the 1.15 series, which is currently 1.15.1. When regenerating a
  239. directory to a newer version, please update all the directories
  240. using an older 1.15 to the latest released version.
  241. gettext version 0.14.5 (or later)
  242. Needed to regenerate 'gcc.pot'.
  243. gperf version 2.7.2 (or later)
  244. Necessary when modifying 'gperf' input files, e.g.
  245. 'gcc/cp/cfns.gperf' to regenerate its associated header file, e.g.
  246. 'gcc/cp/cfns.h'.
  247. DejaGnu 1.4.4
  248. Expect
  249. Tcl
  250. Necessary to run the GCC testsuite; see the section on testing for
  251. details.
  252. autogen version 5.5.4 (or later) and
  253. guile version 1.4.1 (or later)
  254. Necessary to regenerate 'fixinc/fixincl.x' from
  255. 'fixinc/inclhack.def' and 'fixinc/*.tpl'.
  256. Necessary to run 'make check' for 'fixinc'.
  257. Necessary to regenerate the top level 'Makefile.in' file from
  258. 'Makefile.tpl' and 'Makefile.def'.
  259. Flex version 2.5.4 (or later)
  260. Necessary when modifying '*.l' files.
  261. Necessary to build GCC during development because the generated
  262. output files are not included in the version-controlled source
  263. repository. They are included in releases.
  264. Texinfo version 4.7 (or later)
  265. Necessary for running 'makeinfo' when modifying '*.texi' files to
  266. test your changes.
  267. Necessary for running 'make dvi' or 'make pdf' to create printable
  268. documentation in DVI or PDF format. Texinfo version 4.8 or later
  269. is required for 'make pdf'.
  270. Necessary to build GCC documentation during development because the
  271. generated output files are not included in the repository. They
  272. are included in releases.
  273. TeX (any working version)
  274. Necessary for running 'texi2dvi' and 'texi2pdf', which are used
  275. when running 'make dvi' or 'make pdf' to create DVI or PDF files,
  276. respectively.
  277. Sphinx version 1.0 (or later)
  278. Necessary to regenerate 'jit/docs/_build/texinfo' from the '.rst'
  279. files in the directories below 'jit/docs'.
  280. git (any version)
  281. SSH (any version)
  282. Necessary to access the source repository. Public releases and
  283. weekly snapshots of the development sources are also available via
  284. HTTPS.
  285. GNU diffutils version 2.7 (or later)
  286. Useful when submitting patches for the GCC source code.
  287. patch version 2.5.4 (or later)
  288. Necessary when applying patches, created with 'diff', to one's own
  289. sources.
  290. 
  291. File: gccinstall.info, Node: Downloading the source, Next: Configuration, Prev: Prerequisites, Up: Installing GCC
  292. 3 Downloading GCC
  293. *****************
  294. GCC is distributed via git and via HTTPS as tarballs compressed with
  295. 'gzip' or 'bzip2'.
  296. Please refer to the releases web page for information on how to
  297. obtain GCC.
  298. The source distribution includes the C, C++, Objective-C, Fortran,
  299. and Ada (in the case of GCC 3.1 and later) compilers, as well as runtime
  300. libraries for C++, Objective-C, and Fortran. For previous versions
  301. these were downloadable as separate components such as the core GCC
  302. distribution, which included the C language front end and shared
  303. components, and language-specific distributions including the language
  304. front end and the language runtime (where appropriate).
  305. If you also intend to build binutils (either to upgrade an existing
  306. installation or for use in place of the corresponding tools of your OS),
  307. unpack the binutils distribution either in the same directory or a
  308. separate one. In the latter case, add symbolic links to any components
  309. of the binutils you intend to build alongside the compiler ('bfd',
  310. 'binutils', 'gas', 'gprof', 'ld', 'opcodes', ...) to the directory
  311. containing the GCC sources.
  312. Likewise the GMP, MPFR and MPC libraries can be automatically built
  313. together with GCC. You may simply run the
  314. 'contrib/download_prerequisites' script in the GCC source directory to
  315. set up everything. Otherwise unpack the GMP, MPFR and/or MPC source
  316. distributions in the directory containing the GCC sources and rename
  317. their directories to 'gmp', 'mpfr' and 'mpc', respectively (or use
  318. symbolic links with the same name).
  319. 
  320. File: gccinstall.info, Node: Configuration, Next: Building, Prev: Downloading the source, Up: Installing GCC
  321. 4 Installing GCC: Configuration
  322. *******************************
  323. Like most GNU software, GCC must be configured before it can be built.
  324. This document describes the recommended configuration procedure for both
  325. native and cross targets.
  326. We use SRCDIR to refer to the toplevel source directory for GCC; we
  327. use OBJDIR to refer to the toplevel build/object directory.
  328. If you obtained the sources by cloning the repository, SRCDIR must
  329. refer to the top 'gcc' directory, the one where the 'MAINTAINERS' file
  330. can be found, and not its 'gcc' subdirectory, otherwise the build will
  331. fail.
  332. If either SRCDIR or OBJDIR is located on an automounted NFS file
  333. system, the shell's built-in 'pwd' command will return temporary
  334. pathnames. Using these can lead to various sorts of build problems. To
  335. avoid this issue, set the 'PWDCMD' environment variable to an
  336. automounter-aware 'pwd' command, e.g., 'pawd' or 'amq -w', during the
  337. configuration and build phases.
  338. First, we *highly* recommend that GCC be built into a separate
  339. directory from the sources which does *not* reside within the source
  340. tree. This is how we generally build GCC; building where SRCDIR ==
  341. OBJDIR should still work, but doesn't get extensive testing; building
  342. where OBJDIR is a subdirectory of SRCDIR is unsupported.
  343. If you have previously built GCC in the same directory for a
  344. different target machine, do 'make distclean' to delete all files that
  345. might be invalid. One of the files this deletes is 'Makefile'; if 'make
  346. distclean' complains that 'Makefile' does not exist or issues a message
  347. like "don't know how to make distclean" it probably means that the
  348. directory is already suitably clean. However, with the recommended
  349. method of building in a separate OBJDIR, you should simply use a
  350. different OBJDIR for each target.
  351. Second, when configuring a native system, either 'cc' or 'gcc' must
  352. be in your path or you must set 'CC' in your environment before running
  353. configure. Otherwise the configuration scripts may fail.
  354. To configure GCC:
  355. % mkdir OBJDIR
  356. % cd OBJDIR
  357. % SRCDIR/configure [OPTIONS] [TARGET]
  358. Distributor options
  359. ===================
  360. If you will be distributing binary versions of GCC, with modifications
  361. to the source code, you should use the options described in this section
  362. to make clear that your version contains modifications.
  363. '--with-pkgversion=VERSION'
  364. Specify a string that identifies your package. You may wish to
  365. include a build number or build date. This version string will be
  366. included in the output of 'gcc --version'. This suffix does not
  367. replace the default version string, only the 'GCC' part.
  368. The default value is 'GCC'.
  369. '--with-bugurl=URL'
  370. Specify the URL that users should visit if they wish to report a
  371. bug. You are of course welcome to forward bugs reported to you to
  372. the FSF, if you determine that they are not bugs in your
  373. modifications.
  374. The default value refers to the FSF's GCC bug tracker.
  375. '--with-documentation-root-url=URL'
  376. Specify the URL root that contains GCC option documentation. The
  377. URL should end with a '/' character.
  378. The default value is https://gcc.gnu.org/onlinedocs/.
  379. '--with-changes-root-url=URL'
  380. Specify the URL root that contains information about changes in GCC
  381. releases like 'gcc-VERSION/changes.html'. The URL should end with
  382. a '/' character.
  383. The default value is https://gcc.gnu.org/.
  384. Target specification
  385. ====================
  386. * GCC has code to correctly determine the correct value for TARGET
  387. for nearly all native systems. Therefore, we highly recommend you
  388. do not provide a configure target when configuring a native
  389. compiler.
  390. * TARGET must be specified as '--target=TARGET' when configuring a
  391. cross compiler; examples of valid targets would be m68k-elf,
  392. sh-elf, etc.
  393. * Specifying just TARGET instead of '--target=TARGET' implies that
  394. the host defaults to TARGET.
  395. Options specification
  396. =====================
  397. Use OPTIONS to override several configure time options for GCC. A list
  398. of supported OPTIONS follows; 'configure --help' may list other options,
  399. but those not listed below may not work and should not normally be used.
  400. Note that each '--enable' option has a corresponding '--disable'
  401. option and that each '--with' option has a corresponding '--without'
  402. option.
  403. '--prefix=DIRNAME'
  404. Specify the toplevel installation directory. This is the
  405. recommended way to install the tools into a directory other than
  406. the default. The toplevel installation directory defaults to
  407. '/usr/local'.
  408. We *highly* recommend against DIRNAME being the same or a
  409. subdirectory of OBJDIR or vice versa. If specifying a directory
  410. beneath a user's home directory tree, some shells will not expand
  411. DIRNAME correctly if it contains the '~' metacharacter; use '$HOME'
  412. instead.
  413. The following standard 'autoconf' options are supported. Normally
  414. you should not need to use these options.
  415. '--exec-prefix=DIRNAME'
  416. Specify the toplevel installation directory for
  417. architecture-dependent files. The default is 'PREFIX'.
  418. '--bindir=DIRNAME'
  419. Specify the installation directory for the executables called
  420. by users (such as 'gcc' and 'g++'). The default is
  421. 'EXEC-PREFIX/bin'.
  422. '--libdir=DIRNAME'
  423. Specify the installation directory for object code libraries
  424. and internal data files of GCC. The default is
  425. 'EXEC-PREFIX/lib'.
  426. '--libexecdir=DIRNAME'
  427. Specify the installation directory for internal executables of
  428. GCC. The default is 'EXEC-PREFIX/libexec'.
  429. '--with-slibdir=DIRNAME'
  430. Specify the installation directory for the shared libgcc
  431. library. The default is 'LIBDIR'.
  432. '--datarootdir=DIRNAME'
  433. Specify the root of the directory tree for read-only
  434. architecture-independent data files referenced by GCC. The
  435. default is 'PREFIX/share'.
  436. '--infodir=DIRNAME'
  437. Specify the installation directory for documentation in info
  438. format. The default is 'DATAROOTDIR/info'.
  439. '--datadir=DIRNAME'
  440. Specify the installation directory for some
  441. architecture-independent data files referenced by GCC. The
  442. default is 'DATAROOTDIR'.
  443. '--docdir=DIRNAME'
  444. Specify the installation directory for documentation files
  445. (other than Info) for GCC. The default is 'DATAROOTDIR/doc'.
  446. '--htmldir=DIRNAME'
  447. Specify the installation directory for HTML documentation
  448. files. The default is 'DOCDIR'.
  449. '--pdfdir=DIRNAME'
  450. Specify the installation directory for PDF documentation
  451. files. The default is 'DOCDIR'.
  452. '--mandir=DIRNAME'
  453. Specify the installation directory for manual pages. The
  454. default is 'DATAROOTDIR/man'. (Note that the manual pages are
  455. only extracts from the full GCC manuals, which are provided in
  456. Texinfo format. The manpages are derived by an automatic
  457. conversion process from parts of the full manual.)
  458. '--with-gxx-include-dir=DIRNAME'
  459. Specify the installation directory for G++ header files. The
  460. default depends on other configuration options, and differs
  461. between cross and native configurations.
  462. '--with-specs=SPECS'
  463. Specify additional command line driver SPECS. This can be
  464. useful if you need to turn on a non-standard feature by
  465. default without modifying the compiler's source code, for
  466. instance
  467. '--with-specs=%{!fcommon:%{!fno-common:-fno-common}}'. *Note
  468. Specifying subprocesses and the switches to pass to them:
  469. (gcc)Spec Files,
  470. '--program-prefix=PREFIX'
  471. GCC supports some transformations of the names of its programs when
  472. installing them. This option prepends PREFIX to the names of
  473. programs to install in BINDIR (see above). For example, specifying
  474. '--program-prefix=foo-' would result in 'gcc' being installed as
  475. '/usr/local/bin/foo-gcc'.
  476. '--program-suffix=SUFFIX'
  477. Appends SUFFIX to the names of programs to install in BINDIR (see
  478. above). For example, specifying '--program-suffix=-3.1' would
  479. result in 'gcc' being installed as '/usr/local/bin/gcc-3.1'.
  480. '--program-transform-name=PATTERN'
  481. Applies the 'sed' script PATTERN to be applied to the names of
  482. programs to install in BINDIR (see above). PATTERN has to consist
  483. of one or more basic 'sed' editing commands, separated by
  484. semicolons. For example, if you want the 'gcc' program name to be
  485. transformed to the installed program '/usr/local/bin/myowngcc' and
  486. the 'g++' program name to be transformed to
  487. '/usr/local/bin/gspecial++' without changing other program names,
  488. you could use the pattern
  489. '--program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/''
  490. to achieve this effect.
  491. All three options can be combined and used together, resulting in
  492. more complex conversion patterns. As a basic rule, PREFIX (and
  493. SUFFIX) are prepended (appended) before further transformations can
  494. happen with a special transformation script PATTERN.
  495. As currently implemented, this option only takes effect for native
  496. builds; cross compiler binaries' names are not transformed even
  497. when a transformation is explicitly asked for by one of these
  498. options.
  499. For native builds, some of the installed programs are also
  500. installed with the target alias in front of their name, as in
  501. 'i686-pc-linux-gnu-gcc'. All of the above transformations happen
  502. before the target alias is prepended to the name--so, specifying
  503. '--program-prefix=foo-' and 'program-suffix=-3.1', the resulting
  504. binary would be installed as
  505. '/usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1'.
  506. As a last shortcoming, none of the installed Ada programs are
  507. transformed yet, which will be fixed in some time.
  508. '--with-local-prefix=DIRNAME'
  509. Specify the installation directory for local include files. The
  510. default is '/usr/local'. Specify this option if you want the
  511. compiler to search directory 'DIRNAME/include' for locally
  512. installed header files _instead_ of '/usr/local/include'.
  513. You should specify '--with-local-prefix' *only* if your site has a
  514. different convention (not '/usr/local') for where to put
  515. site-specific files.
  516. The default value for '--with-local-prefix' is '/usr/local'
  517. regardless of the value of '--prefix'. Specifying '--prefix' has
  518. no effect on which directory GCC searches for local header files.
  519. This may seem counterintuitive, but actually it is logical.
  520. The purpose of '--prefix' is to specify where to _install GCC_. The
  521. local header files in '/usr/local/include'--if you put any in that
  522. directory--are not part of GCC. They are part of other
  523. programs--perhaps many others. (GCC installs its own header files
  524. in another directory which is based on the '--prefix' value.)
  525. Both the local-prefix include directory and the GCC-prefix include
  526. directory are part of GCC's "system include" directories. Although
  527. these two directories are not fixed, they need to be searched in
  528. the proper order for the correct processing of the include_next
  529. directive. The local-prefix include directory is searched before
  530. the GCC-prefix include directory. Another characteristic of system
  531. include directories is that pedantic warnings are turned off for
  532. headers in these directories.
  533. Some autoconf macros add '-I DIRECTORY' options to the compiler
  534. command line, to ensure that directories containing installed
  535. packages' headers are searched. When DIRECTORY is one of GCC's
  536. system include directories, GCC will ignore the option so that
  537. system directories continue to be processed in the correct order.
  538. This may result in a search order different from what was specified
  539. but the directory will still be searched.
  540. GCC automatically searches for ordinary libraries using
  541. 'GCC_EXEC_PREFIX'. Thus, when the same installation prefix is used
  542. for both GCC and packages, GCC will automatically search for both
  543. headers and libraries. This provides a configuration that is easy
  544. to use. GCC behaves in a manner similar to that when it is
  545. installed as a system compiler in '/usr'.
  546. Sites that need to install multiple versions of GCC may not want to
  547. use the above simple configuration. It is possible to use the
  548. '--program-prefix', '--program-suffix' and
  549. '--program-transform-name' options to install multiple versions
  550. into a single directory, but it may be simpler to use different
  551. prefixes and the '--with-local-prefix' option to specify the
  552. location of the site-specific files for each version. It will then
  553. be necessary for users to specify explicitly the location of local
  554. site libraries (e.g., with 'LIBRARY_PATH').
  555. The same value can be used for both '--with-local-prefix' and
  556. '--prefix' provided it is not '/usr'. This can be used to avoid
  557. the default search of '/usr/local/include'.
  558. *Do not* specify '/usr' as the '--with-local-prefix'! The
  559. directory you use for '--with-local-prefix' *must not* contain any
  560. of the system's standard header files. If it did contain them,
  561. certain programs would be miscompiled (including GNU Emacs, on
  562. certain targets), because this would override and nullify the
  563. header file corrections made by the 'fixincludes' script.
  564. Indications are that people who use this option use it based on
  565. mistaken ideas of what it is for. People use it as if it specified
  566. where to install part of GCC. Perhaps they make this assumption
  567. because installing GCC creates the directory.
  568. '--with-gcc-major-version-only'
  569. Specifies that GCC should use only the major number rather than
  570. MAJOR.MINOR.PATCHLEVEL in filesystem paths.
  571. '--with-native-system-header-dir=DIRNAME'
  572. Specifies that DIRNAME is the directory that contains native system
  573. header files, rather than '/usr/include'. This option is most
  574. useful if you are creating a compiler that should be isolated from
  575. the system as much as possible. It is most commonly used with the
  576. '--with-sysroot' option and will cause GCC to search DIRNAME inside
  577. the system root specified by that option.
  578. '--enable-shared[=PACKAGE[,...]]'
  579. Build shared versions of libraries, if shared libraries are
  580. supported on the target platform. Unlike GCC 2.95.x and earlier,
  581. shared libraries are enabled by default on all platforms that
  582. support shared libraries.
  583. If a list of packages is given as an argument, build shared
  584. libraries only for the listed packages. For other packages, only
  585. static libraries will be built. Package names currently recognized
  586. in the GCC tree are 'libgcc' (also known as 'gcc'), 'libstdc++'
  587. (not 'libstdc++-v3'), 'libffi', 'zlib', 'boehm-gc', 'ada',
  588. 'libada', 'libgo', 'libobjc', and 'libphobos'. Note 'libiberty'
  589. does not support shared libraries at all.
  590. Use '--disable-shared' to build only static libraries. Note that
  591. '--disable-shared' does not accept a list of package names as
  592. argument, only '--enable-shared' does.
  593. Contrast with '--enable-host-shared', which affects _host_ code.
  594. '--enable-host-shared'
  595. Specify that the _host_ code should be built into
  596. position-independent machine code (with -fPIC), allowing it to be
  597. used within shared libraries, but yielding a slightly slower
  598. compiler.
  599. This option is required when building the libgccjit.so library.
  600. Contrast with '--enable-shared', which affects _target_ libraries.
  601. '--with-gnu-as'
  602. Specify that the compiler should assume that the assembler it finds
  603. is the GNU assembler. However, this does not modify the rules to
  604. find an assembler and will result in confusion if the assembler
  605. found is not actually the GNU assembler. (Confusion may also
  606. result if the compiler finds the GNU assembler but has not been
  607. configured with '--with-gnu-as'.) If you have more than one
  608. assembler installed on your system, you may want to use this option
  609. in connection with '--with-as=PATHNAME' or
  610. '--with-build-time-tools=PATHNAME'.
  611. The following systems are the only ones where it makes a difference
  612. whether you use the GNU assembler. On any other system,
  613. '--with-gnu-as' has no effect.
  614. * 'hppa1.0-ANY-ANY'
  615. * 'hppa1.1-ANY-ANY'
  616. * 'sparc-sun-solaris2.ANY'
  617. * 'sparc64-ANY-solaris2.ANY'
  618. '--with-as=PATHNAME'
  619. Specify that the compiler should use the assembler pointed to by
  620. PATHNAME, rather than the one found by the standard rules to find
  621. an assembler, which are:
  622. * Unless GCC is being built with a cross compiler, check the
  623. 'LIBEXEC/gcc/TARGET/VERSION' directory. LIBEXEC defaults to
  624. 'EXEC-PREFIX/libexec'; EXEC-PREFIX defaults to PREFIX, which
  625. defaults to '/usr/local' unless overridden by the
  626. '--prefix=PATHNAME' switch described above. TARGET is the
  627. target system triple, such as 'sparc-sun-solaris2.7', and
  628. VERSION denotes the GCC version, such as 3.0.
  629. * If the target system is the same that you are building on,
  630. check operating system specific directories (e.g.
  631. '/usr/ccs/bin' on Solaris 2).
  632. * Check in the 'PATH' for a tool whose name is prefixed by the
  633. target system triple.
  634. * Check in the 'PATH' for a tool whose name is not prefixed by
  635. the target system triple, if the host and target system triple
  636. are the same (in other words, we use a host tool if it can be
  637. used for the target as well).
  638. You may want to use '--with-as' if no assembler is installed in the
  639. directories listed above, or if you have multiple assemblers
  640. installed and want to choose one that is not found by the above
  641. rules.
  642. '--with-gnu-ld'
  643. Same as '--with-gnu-as' but for the linker.
  644. '--with-ld=PATHNAME'
  645. Same as '--with-as' but for the linker.
  646. '--with-stabs'
  647. Specify that stabs debugging information should be used instead of
  648. whatever format the host normally uses. Normally GCC uses the same
  649. debug format as the host system.
  650. '--with-tls=DIALECT'
  651. Specify the default TLS dialect, for systems were there is a
  652. choice. For ARM targets, possible values for DIALECT are 'gnu' or
  653. 'gnu2', which select between the original GNU dialect and the GNU
  654. TLS descriptor-based dialect.
  655. '--enable-multiarch'
  656. Specify whether to enable or disable multiarch support. The
  657. default is to check for glibc start files in a multiarch location,
  658. and enable it if the files are found. The auto detection is
  659. enabled for native builds, and for cross builds configured with
  660. '--with-sysroot', and without '--with-native-system-header-dir'.
  661. More documentation about multiarch can be found at
  662. <https://wiki.debian.org/Multiarch>.
  663. '--enable-sjlj-exceptions'
  664. Force use of the 'setjmp'/'longjmp'-based scheme for exceptions.
  665. 'configure' ordinarily picks the correct value based on the
  666. platform. Only use this option if you are sure you need a
  667. different setting.
  668. '--enable-vtable-verify'
  669. Specify whether to enable or disable the vtable verification
  670. feature. Enabling this feature causes libstdc++ to be built with
  671. its virtual calls in verifiable mode. This means that, when linked
  672. with libvtv, every virtual call in libstdc++ will verify the vtable
  673. pointer through which the call will be made before actually making
  674. the call. If not linked with libvtv, the verifier will call stub
  675. functions (in libstdc++ itself) and do nothing. If vtable
  676. verification is disabled, then libstdc++ is not built with its
  677. virtual calls in verifiable mode at all. However the libvtv
  678. library will still be built (see '--disable-libvtv' to turn off
  679. building libvtv). '--disable-vtable-verify' is the default.
  680. '--disable-gcov'
  681. Specify that the run-time library used for coverage analysis and
  682. associated host tools should not be built.
  683. '--disable-multilib'
  684. Specify that multiple target libraries to support different target
  685. variants, calling conventions, etc. should not be built. The
  686. default is to build a predefined set of them.
  687. Some targets provide finer-grained control over which multilibs are
  688. built (e.g., '--disable-softfloat'):
  689. 'arm-*-*'
  690. fpu, 26bit, underscore, interwork, biendian, nofmult.
  691. 'm68*-*-*'
  692. softfloat, m68881, m68000, m68020.
  693. 'mips*-*-*'
  694. single-float, biendian, softfloat.
  695. 'msp430-*-*'
  696. no-exceptions
  697. 'powerpc*-*-*, rs6000*-*-*'
  698. aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos,
  699. biendian, sysv, aix.
  700. '--with-multilib-list=LIST'
  701. '--without-multilib-list'
  702. Specify what multilibs to build. LIST is a comma separated list of
  703. values, possibly consisting of a single value. Currently only
  704. implemented for aarch64*-*-*, arm*-*-*, riscv*-*-*, sh*-*-* and
  705. x86-64-*-linux*. The accepted values and meaning for each target
  706. is given below.
  707. 'aarch64*-*-*'
  708. LIST is a comma separated list of 'ilp32', and 'lp64' to
  709. enable ILP32 and LP64 run-time libraries, respectively. If
  710. LIST is empty, then there will be no multilibs and only the
  711. default run-time library will be built. If LIST is 'default'
  712. or -with-multilib-list= is not specified, then the default set
  713. of libraries is selected based on the value of '--target'.
  714. 'arm*-*-*'
  715. LIST is a comma separated list of 'aprofile' and 'rmprofile'
  716. to build multilibs for A or R and M architecture profiles
  717. respectively. Note that, due to some limitation of the
  718. current multilib framework, using the combined
  719. 'aprofile,rmprofile' multilibs selects in some cases a less
  720. optimal multilib than when using the multilib profile for the
  721. architecture targetted. The special value 'default' is also
  722. accepted and is equivalent to omitting the option, i.e., only
  723. the default run-time library will be enabled.
  724. LIST may instead contain '@name', to use the multilib
  725. configuration Makefile fragment 'name' in 'gcc/config/arm' in
  726. the source tree (it is part of the corresponding sources,
  727. after all). It is recommended, but not required, that files
  728. used for this purpose to be named starting with 't-ml-', to
  729. make their intended purpose self-evident, in line with GCC
  730. conventions. Such files enable custom, user-chosen multilib
  731. lists to be configured. Whether multiple such files can be
  732. used together depends on the contents of the supplied files.
  733. See 'gcc/config/arm/t-multilib' and its supplementary
  734. 'gcc/config/arm/t-*profile' files for an example of what such
  735. Makefile fragments might look like for this version of GCC.
  736. The macros expected to be defined in these fragments are not
  737. stable across GCC releases, so make sure they define the
  738. 'MULTILIB'-related macros expected by the version of GCC you
  739. are building. *Note Target Makefile Fragments: (gccint)Target
  740. Fragment.
  741. The table below gives the combination of ISAs, architectures,
  742. FPUs and floating-point ABIs for which multilibs are built for
  743. each predefined profile. The union of these options is
  744. considered when specifying both 'aprofile' and 'rmprofile'.
  745. Option aprofile rmprofile
  746. ISAs '-marm' and '-mthumb'
  747. '-mthumb'
  748. Architecturesdefault default architecture
  749. architecture '-march=armv6s-m'
  750. '-march=armv7-a' '-march=armv7-m'
  751. '-march=armv7ve' '-march=armv7e-m'
  752. '-march=armv8-a' '-march=armv8-m.base'
  753. '-march=armv8-m.main'
  754. '-march=armv7'
  755. FPUs none none
  756. '-mfpu=vfpv3-d16' '-mfpu=vfpv3-d16'
  757. '-mfpu=neon' '-mfpu=fpv4-sp-d16'
  758. '-mfpu=vfpv4-d16' '-mfpu=fpv5-sp-d16'
  759. '-mfpu=neon-vfpv4' '-mfpu=fpv5-d16'
  760. '-mfpu=neon-fp-armv8'
  761. floating-point'-mfloat-abi=soft' '-mfloat-abi=soft'
  762. ABIs '-mfloat-abi=softfp' '-mfloat-abi=softfp'
  763. '-mfloat-abi=hard' '-mfloat-abi=hard'
  764. 'riscv*-*-*'
  765. LIST is a single ABI name. The target architecture must be
  766. either 'rv32gc' or 'rv64gc'. This will build a single
  767. multilib for the specified architecture and ABI pair. If
  768. '--with-multilib-list' is not given, then a default set of
  769. multilibs is selected based on the value of '--target'. This
  770. is usually a large set of multilibs.
  771. 'sh*-*-*'
  772. LIST is a comma separated list of CPU names. These must be of
  773. the form 'sh*' or 'm*' (in which case they match the compiler
  774. option for that processor). The list should not contain any
  775. endian options - these are handled by '--with-endian'.
  776. If LIST is empty, then there will be no multilibs for extra
  777. processors. The multilib for the secondary endian remains
  778. enabled.
  779. As a special case, if an entry in the list starts with a '!'
  780. (exclamation point), then it is added to the list of excluded
  781. multilibs. Entries of this sort should be compatible with
  782. 'MULTILIB_EXCLUDES' (once the leading '!' has been stripped).
  783. If '--with-multilib-list' is not given, then a default set of
  784. multilibs is selected based on the value of '--target'. This
  785. is usually the complete set of libraries, but some targets
  786. imply a more specialized subset.
  787. Example 1: to configure a compiler for SH4A only, but
  788. supporting both endians, with little endian being the default:
  789. --with-cpu=sh4a --with-endian=little,big --with-multilib-list=
  790. Example 2: to configure a compiler for both SH4A and
  791. SH4AL-DSP, but with only little endian SH4AL:
  792. --with-cpu=sh4a --with-endian=little,big \
  793. --with-multilib-list=sh4al,!mb/m4al
  794. 'x86-64-*-linux*'
  795. LIST is a comma separated list of 'm32', 'm64' and 'mx32' to
  796. enable 32-bit, 64-bit and x32 run-time libraries,
  797. respectively. If LIST is empty, then there will be no
  798. multilibs and only the default run-time library will be
  799. enabled.
  800. If '--with-multilib-list' is not given, then only 32-bit and
  801. 64-bit run-time libraries will be enabled.
  802. '--with-multilib-generator=CONFIG'
  803. Specify what multilibs to build. CONFIG is a semicolon separated
  804. list of values, possibly consisting of a single value. Currently
  805. only implemented for riscv*-*-elf*. The accepted values and
  806. meanings are given below.
  807. Every config is constructed with four components: architecture
  808. string, ABI, reuse rule with architecture string and reuse rule
  809. with sub-extension.
  810. Example 1: Add multi-lib suppport for rv32i with ilp32.
  811. rv32i-ilp32--
  812. Example 2: Add multi-lib suppport for rv32i with ilp32 and
  813. rv32imafd with ilp32.
  814. rv32i-ilp32--;rv32imafd-ilp32--
  815. Example 3: Add multi-lib suppport for rv32i with ilp32; rv32im with
  816. ilp32 and rv32ic with ilp32 will reuse this multi-lib set.
  817. rv32i-ilp32-rv32im-c
  818. Example 4: Add multi-lib suppport for rv64ima with lp64; rv64imaf
  819. with lp64, rv64imac with lp64 and rv64imafc with lp64 will reuse
  820. this multi-lib set.
  821. rv64ima-lp64--f,c,fc
  822. '--with-endian=ENDIANS'
  823. Specify what endians to use. Currently only implemented for
  824. sh*-*-*.
  825. ENDIANS may be one of the following:
  826. 'big'
  827. Use big endian exclusively.
  828. 'little'
  829. Use little endian exclusively.
  830. 'big,little'
  831. Use big endian by default. Provide a multilib for little
  832. endian.
  833. 'little,big'
  834. Use little endian by default. Provide a multilib for big
  835. endian.
  836. '--enable-threads'
  837. Specify that the target supports threads. This affects the
  838. Objective-C compiler and runtime library, and exception handling
  839. for other languages like C++. On some systems, this is the
  840. default.
  841. In general, the best (and, in many cases, the only known) threading
  842. model available will be configured for use. Beware that on some
  843. systems, GCC has not been taught what threading models are
  844. generally available for the system. In this case,
  845. '--enable-threads' is an alias for '--enable-threads=single'.
  846. '--disable-threads'
  847. Specify that threading support should be disabled for the system.
  848. This is an alias for '--enable-threads=single'.
  849. '--enable-threads=LIB'
  850. Specify that LIB is the thread support library. This affects the
  851. Objective-C compiler and runtime library, and exception handling
  852. for other languages like C++. The possibilities for LIB are:
  853. 'aix'
  854. AIX thread support.
  855. 'dce'
  856. DCE thread support.
  857. 'lynx'
  858. LynxOS thread support.
  859. 'mipssde'
  860. MIPS SDE thread support.
  861. 'no'
  862. This is an alias for 'single'.
  863. 'posix'
  864. Generic POSIX/Unix98 thread support.
  865. 'rtems'
  866. RTEMS thread support.
  867. 'single'
  868. Disable thread support, should work for all platforms.
  869. 'tpf'
  870. TPF thread support.
  871. 'vxworks'
  872. VxWorks thread support.
  873. 'win32'
  874. Microsoft Win32 API thread support.
  875. '--enable-tls'
  876. Specify that the target supports TLS (Thread Local Storage).
  877. Usually configure can correctly determine if TLS is supported. In
  878. cases where it guesses incorrectly, TLS can be explicitly enabled
  879. or disabled with '--enable-tls' or '--disable-tls'. This can
  880. happen if the assembler supports TLS but the C library does not, or
  881. if the assumptions made by the configure test are incorrect.
  882. '--disable-tls'
  883. Specify that the target does not support TLS. This is an alias for
  884. '--enable-tls=no'.
  885. '--disable-tm-clone-registry'
  886. Disable TM clone registry in libgcc. It is enabled in libgcc by
  887. default. This option helps to reduce code size for embedded
  888. targets which do not use transactional memory.
  889. '--with-cpu=CPU'
  890. '--with-cpu-32=CPU'
  891. '--with-cpu-64=CPU'
  892. Specify which cpu variant the compiler should generate code for by
  893. default. CPU will be used as the default value of the '-mcpu='
  894. switch. This option is only supported on some targets, including
  895. ARC, ARM, i386, M68k, PowerPC, and SPARC. It is mandatory for ARC.
  896. The '--with-cpu-32' and '--with-cpu-64' options specify separate
  897. default CPUs for 32-bit and 64-bit modes; these options are only
  898. supported for aarch64, i386, x86-64, PowerPC, and SPARC.
  899. '--with-schedule=CPU'
  900. '--with-arch=CPU'
  901. '--with-arch-32=CPU'
  902. '--with-arch-64=CPU'
  903. '--with-tune=CPU'
  904. '--with-tune-32=CPU'
  905. '--with-tune-64=CPU'
  906. '--with-abi=ABI'
  907. '--with-fpu=TYPE'
  908. '--with-float=TYPE'
  909. These configure options provide default values for the
  910. '-mschedule=', '-march=', '-mtune=', '-mabi=', and '-mfpu=' options
  911. and for '-mhard-float' or '-msoft-float'. As with '--with-cpu',
  912. which switches will be accepted and acceptable values of the
  913. arguments depend on the target.
  914. '--with-mode=MODE'
  915. Specify if the compiler should default to '-marm' or '-mthumb'.
  916. This option is only supported on ARM targets.
  917. '--with-stack-offset=NUM'
  918. This option sets the default for the -mstack-offset=NUM option, and
  919. will thus generally also control the setting of this option for
  920. libraries. This option is only supported on Epiphany targets.
  921. '--with-fpmath=ISA'
  922. This options sets '-mfpmath=sse' by default and specifies the
  923. default ISA for floating-point arithmetics. You can select either
  924. 'sse' which enables '-msse2' or 'avx' which enables '-mavx' by
  925. default. This option is only supported on i386 and x86-64 targets.
  926. '--with-fp-32=MODE'
  927. On MIPS targets, set the default value for the '-mfp' option when
  928. using the o32 ABI. The possibilities for MODE are:
  929. '32'
  930. Use the o32 FP32 ABI extension, as with the '-mfp32'
  931. command-line option.
  932. 'xx'
  933. Use the o32 FPXX ABI extension, as with the '-mfpxx'
  934. command-line option.
  935. '64'
  936. Use the o32 FP64 ABI extension, as with the '-mfp64'
  937. command-line option.
  938. In the absence of this configuration option the default is to use
  939. the o32 FP32 ABI extension.
  940. '--with-odd-spreg-32'
  941. On MIPS targets, set the '-modd-spreg' option by default when using
  942. the o32 ABI.
  943. '--without-odd-spreg-32'
  944. On MIPS targets, set the '-mno-odd-spreg' option by default when
  945. using the o32 ABI. This is normally used in conjunction with
  946. '--with-fp-32=64' in order to target the o32 FP64A ABI extension.
  947. '--with-nan=ENCODING'
  948. On MIPS targets, set the default encoding convention to use for the
  949. special not-a-number (NaN) IEEE 754 floating-point data. The
  950. possibilities for ENCODING are:
  951. 'legacy'
  952. Use the legacy encoding, as with the '-mnan=legacy'
  953. command-line option.
  954. '2008'
  955. Use the 754-2008 encoding, as with the '-mnan=2008'
  956. command-line option.
  957. To use this configuration option you must have an assembler version
  958. installed that supports the '-mnan=' command-line option too. In
  959. the absence of this configuration option the default convention is
  960. the legacy encoding, as when neither of the '-mnan=2008' and
  961. '-mnan=legacy' command-line options has been used.
  962. '--with-divide=TYPE'
  963. Specify how the compiler should generate code for checking for
  964. division by zero. This option is only supported on the MIPS
  965. target. The possibilities for TYPE are:
  966. 'traps'
  967. Division by zero checks use conditional traps (this is the
  968. default on systems that support conditional traps).
  969. 'breaks'
  970. Division by zero checks use the break instruction.
  971. '--with-llsc'
  972. On MIPS targets, make '-mllsc' the default when no '-mno-llsc'
  973. option is passed. This is the default for Linux-based targets, as
  974. the kernel will emulate them if the ISA does not provide them.
  975. '--without-llsc'
  976. On MIPS targets, make '-mno-llsc' the default when no '-mllsc'
  977. option is passed.
  978. '--with-synci'
  979. On MIPS targets, make '-msynci' the default when no '-mno-synci'
  980. option is passed.
  981. '--without-synci'
  982. On MIPS targets, make '-mno-synci' the default when no '-msynci'
  983. option is passed. This is the default.
  984. '--with-lxc1-sxc1'
  985. On MIPS targets, make '-mlxc1-sxc1' the default when no
  986. '-mno-lxc1-sxc1' option is passed. This is the default.
  987. '--without-lxc1-sxc1'
  988. On MIPS targets, make '-mno-lxc1-sxc1' the default when no
  989. '-mlxc1-sxc1' option is passed. The indexed load/store
  990. instructions are not directly a problem but can lead to unexpected
  991. behaviour when deployed in an application intended for a 32-bit
  992. address space but run on a 64-bit processor. The issue is seen
  993. because all known MIPS 64-bit Linux kernels execute o32 and n32
  994. applications with 64-bit addressing enabled which affects the
  995. overflow behaviour of the indexed addressing mode. GCC will assume
  996. that ordinary 32-bit arithmetic overflow behaviour is the same
  997. whether performed as an 'addu' instruction or as part of the
  998. address calculation in 'lwxc1' type instructions. This assumption
  999. holds true in a pure 32-bit environment and can hold true in a
  1000. 64-bit environment if the address space is accurately set to be
  1001. 32-bit for o32 and n32.
  1002. '--with-madd4'
  1003. On MIPS targets, make '-mmadd4' the default when no '-mno-madd4'
  1004. option is passed. This is the default.
  1005. '--without-madd4'
  1006. On MIPS targets, make '-mno-madd4' the default when no '-mmadd4'
  1007. option is passed. The 'madd4' instruction family can be
  1008. problematic when targeting a combination of cores that implement
  1009. these instructions differently. There are two known cores that
  1010. implement these as fused operations instead of unfused (where
  1011. unfused is normally expected). Disabling these instructions is the
  1012. only way to ensure compatible code is generated; this will incur a
  1013. performance penalty.
  1014. '--with-mips-plt'
  1015. On MIPS targets, make use of copy relocations and PLTs. These
  1016. features are extensions to the traditional SVR4-based MIPS ABIs and
  1017. require support from GNU binutils and the runtime C library.
  1018. '--with-stack-clash-protection-guard-size=SIZE'
  1019. On certain targets this option sets the default stack clash
  1020. protection guard size as a power of two in bytes. On AArch64 SIZE
  1021. is required to be either 12 (4KB) or 16 (64KB).
  1022. '--enable-__cxa_atexit'
  1023. Define if you want to use __cxa_atexit, rather than atexit, to
  1024. register C++ destructors for local statics and global objects.
  1025. This is essential for fully standards-compliant handling of
  1026. destructors, but requires __cxa_atexit in libc. This option is
  1027. currently only available on systems with GNU libc. When enabled,
  1028. this will cause '-fuse-cxa-atexit' to be passed by default.
  1029. '--enable-gnu-indirect-function'
  1030. Define if you want to enable the 'ifunc' attribute. This option is
  1031. currently only available on systems with GNU libc on certain
  1032. targets.
  1033. '--enable-target-optspace'
  1034. Specify that target libraries should be optimized for code space
  1035. instead of code speed. This is the default for the m32r platform.
  1036. '--with-cpp-install-dir=DIRNAME'
  1037. Specify that the user visible 'cpp' program should be installed in
  1038. 'PREFIX/DIRNAME/cpp', in addition to BINDIR.
  1039. '--enable-comdat'
  1040. Enable COMDAT group support. This is primarily used to override
  1041. the automatically detected value.
  1042. '--enable-initfini-array'
  1043. Force the use of sections '.init_array' and '.fini_array' (instead
  1044. of '.init' and '.fini') for constructors and destructors. Option
  1045. '--disable-initfini-array' has the opposite effect. If neither
  1046. option is specified, the configure script will try to guess whether
  1047. the '.init_array' and '.fini_array' sections are supported and, if
  1048. they are, use them.
  1049. '--enable-link-mutex'
  1050. When building GCC, use a mutex to avoid linking the compilers for
  1051. multiple languages at the same time, to avoid thrashing on build
  1052. systems with limited free memory. The default is not to use such a
  1053. mutex.
  1054. '--enable-link-serialization'
  1055. When building GCC, use make dependencies to serialize linking the
  1056. compilers for multiple languages, to avoid thrashing on build
  1057. systems with limited free memory. The default is not to add such
  1058. dependencies and thus with parallel make potentially link different
  1059. compilers concurrently. If the argument is a positive integer,
  1060. allow that number of concurrent link processes for the large
  1061. binaries.
  1062. '--enable-maintainer-mode'
  1063. The build rules that regenerate the Autoconf and Automake output
  1064. files as well as the GCC master message catalog 'gcc.pot' are
  1065. normally disabled. This is because it can only be rebuilt if the
  1066. complete source tree is present. If you have changed the sources
  1067. and want to rebuild the catalog, configuring with
  1068. '--enable-maintainer-mode' will enable this. Note that you need a
  1069. recent version of the 'gettext' tools to do so.
  1070. '--disable-bootstrap'
  1071. For a native build, the default configuration is to perform a
  1072. 3-stage bootstrap of the compiler when 'make' is invoked, testing
  1073. that GCC can compile itself correctly. If you want to disable this
  1074. process, you can configure with '--disable-bootstrap'.
  1075. '--enable-bootstrap'
  1076. In special cases, you may want to perform a 3-stage build even if
  1077. the target and host triplets are different. This is possible when
  1078. the host can run code compiled for the target (e.g. host is
  1079. i686-linux, target is i486-linux). Starting from GCC 4.2, to do
  1080. this you have to configure explicitly with '--enable-bootstrap'.
  1081. '--enable-generated-files-in-srcdir'
  1082. Neither the .c and .h files that are generated from Bison and flex
  1083. nor the info manuals and man pages that are built from the .texi
  1084. files are present in the repository development tree. When
  1085. building GCC from that development tree, or from one of our
  1086. snapshots, those generated files are placed in your build
  1087. directory, which allows for the source to be in a readonly
  1088. directory.
  1089. If you configure with '--enable-generated-files-in-srcdir' then
  1090. those generated files will go into the source directory. This is
  1091. mainly intended for generating release or prerelease tarballs of
  1092. the GCC sources, since it is not a requirement that the users of
  1093. source releases to have flex, Bison, or makeinfo.
  1094. '--enable-version-specific-runtime-libs'
  1095. Specify that runtime libraries should be installed in the compiler
  1096. specific subdirectory ('LIBDIR/gcc') rather than the usual places.
  1097. In addition, 'libstdc++''s include files will be installed into
  1098. 'LIBDIR' unless you overruled it by using
  1099. '--with-gxx-include-dir=DIRNAME'. Using this option is
  1100. particularly useful if you intend to use several versions of GCC in
  1101. parallel. The default is 'yes' for 'libada', and 'no' for the
  1102. remaining libraries.
  1103. '--with-aix-soname='aix', 'svr4' or 'both''
  1104. Traditional AIX shared library versioning (versioned 'Shared
  1105. Object' files as members of unversioned 'Archive Library' files
  1106. named 'lib.a') causes numerous headaches for package managers.
  1107. However, 'Import Files' as members of 'Archive Library' files allow
  1108. for *filename-based versioning* of shared libraries as seen on
  1109. Linux/SVR4, where this is called the "SONAME". But as they prevent
  1110. static linking, 'Import Files' may be used with 'Runtime Linking'
  1111. only, where the linker does search for 'libNAME.so' before
  1112. 'libNAME.a' library filenames with the '-lNAME' linker flag.
  1113. For detailed information please refer to the AIX ld Command
  1114. reference.
  1115. As long as shared library creation is enabled, upon:
  1116. '--with-aix-soname=aix'
  1117. '--with-aix-soname=both'
  1118. A (traditional AIX) 'Shared Archive Library' file is created:
  1119. * using the 'libNAME.a' filename scheme
  1120. * with the 'Shared Object' file as archive member named
  1121. 'libNAME.so.V' (except for 'libgcc_s', where the 'Shared
  1122. Object' file is named 'shr.o' for backwards
  1123. compatibility), which
  1124. - is used for runtime loading from inside the
  1125. 'libNAME.a' file
  1126. - is used for dynamic loading via
  1127. 'dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)'
  1128. - is used for shared linking
  1129. - is used for static linking, so no separate 'Static
  1130. Archive Library' file is needed
  1131. '--with-aix-soname=both'
  1132. '--with-aix-soname=svr4'
  1133. A (second) 'Shared Archive Library' file is created:
  1134. * using the 'libNAME.so.V' filename scheme
  1135. * with the 'Shared Object' file as archive member named
  1136. 'shr.o', which
  1137. - is created with the '-G linker flag'
  1138. - has the 'F_LOADONLY' flag set
  1139. - is used for runtime loading from inside the
  1140. 'libNAME.so.V' file
  1141. - is used for dynamic loading via
  1142. 'dlopen("libNAME.so.V(shr.o)", RTLD_MEMBER)'
  1143. * with the 'Import File' as archive member named 'shr.imp',
  1144. which
  1145. - refers to 'libNAME.so.V(shr.o)' as the "SONAME", to
  1146. be recorded in the 'Loader Section' of subsequent
  1147. binaries
  1148. - indicates whether 'libNAME.so.V(shr.o)' is 32 or 64
  1149. bit
  1150. - lists all the public symbols exported by
  1151. 'lib.so.V(shr.o)', eventually decorated with the
  1152. ''weak' Keyword'
  1153. - is necessary for shared linking against
  1154. 'lib.so.V(shr.o)'
  1155. A symbolic link using the 'libNAME.so' filename scheme is
  1156. created:
  1157. * pointing to the 'libNAME.so.V' 'Shared Archive Library'
  1158. file
  1159. * to permit the 'ld Command' to find 'lib.so.V(shr.imp)'
  1160. via the '-lNAME' argument (requires 'Runtime Linking' to
  1161. be enabled)
  1162. * to permit dynamic loading of 'lib.so.V(shr.o)' without
  1163. the need to specify the version number via
  1164. 'dlopen("libNAME.so(shr.o)", RTLD_MEMBER)'
  1165. As long as static library creation is enabled, upon:
  1166. '--with-aix-soname=svr4'
  1167. A 'Static Archive Library' is created:
  1168. * using the 'libNAME.a' filename scheme
  1169. * with all the 'Static Object' files as archive members,
  1170. which
  1171. - are used for static linking
  1172. While the aix-soname='svr4' option does not create 'Shared Object'
  1173. files as members of unversioned 'Archive Library' files any more,
  1174. package managers still are responsible to transfer 'Shared Object'
  1175. files found as member of a previously installed unversioned
  1176. 'Archive Library' file into the newly installed 'Archive Library'
  1177. file with the same filename.
  1178. _WARNING:_ Creating 'Shared Object' files with 'Runtime Linking'
  1179. enabled may bloat the TOC, eventually leading to 'TOC overflow'
  1180. errors, requiring the use of either the '-Wl,-bbigtoc' linker flag
  1181. (seen to break with the 'GDB' debugger) or some of the TOC-related
  1182. compiler flags, *Note RS/6000 and PowerPC Options: (gcc)RS/6000 and
  1183. PowerPC Options.
  1184. '--with-aix-soname' is currently supported by 'libgcc_s' only, so
  1185. this option is still experimental and not for normal use yet.
  1186. Default is the traditional behavior '--with-aix-soname='aix''.
  1187. '--enable-languages=LANG1,LANG2,...'
  1188. Specify that only a particular subset of compilers and their
  1189. runtime libraries should be built. For a list of valid values for
  1190. LANGN you can issue the following command in the 'gcc' directory of
  1191. your GCC source tree:
  1192. grep ^language= */config-lang.in
  1193. Currently, you can use any of the following: 'all', 'default',
  1194. 'ada', 'c', 'c++', 'd', 'fortran', 'go', 'jit', 'lto', 'objc',
  1195. 'obj-c++'. Building the Ada compiler has special requirements, see
  1196. below. If you do not pass this flag, or specify the option
  1197. 'default', then the default languages available in the 'gcc'
  1198. sub-tree will be configured. Ada, D, Go, Jit, and Objective-C++
  1199. are not default languages. LTO is not a default language, but is
  1200. built by default because '--enable-lto' is enabled by default. The
  1201. other languages are default languages. If 'all' is specified, then
  1202. all available languages are built. An exception is 'jit' language,
  1203. which requires '--enable-host-shared' to be included with 'all'.
  1204. '--enable-stage1-languages=LANG1,LANG2,...'
  1205. Specify that a particular subset of compilers and their runtime
  1206. libraries should be built with the system C compiler during stage 1
  1207. of the bootstrap process, rather than only in later stages with the
  1208. bootstrapped C compiler. The list of valid values is the same as
  1209. for '--enable-languages', and the option 'all' will select all of
  1210. the languages enabled by '--enable-languages'. This option is
  1211. primarily useful for GCC development; for instance, when a
  1212. development version of the compiler cannot bootstrap due to
  1213. compiler bugs, or when one is debugging front ends other than the C
  1214. front end. When this option is used, one can then build the target
  1215. libraries for the specified languages with the stage-1 compiler by
  1216. using 'make stage1-bubble all-target', or run the testsuite on the
  1217. stage-1 compiler for the specified languages using 'make
  1218. stage1-start check-gcc'.
  1219. '--disable-libada'
  1220. Specify that the run-time libraries and tools used by GNAT should
  1221. not be built. This can be useful for debugging, or for
  1222. compatibility with previous Ada build procedures, when it was
  1223. required to explicitly do a 'make -C gcc gnatlib_and_tools'.
  1224. '--disable-libsanitizer'
  1225. Specify that the run-time libraries for the various sanitizers
  1226. should not be built.
  1227. '--disable-libssp'
  1228. Specify that the run-time libraries for stack smashing protection
  1229. should not be built or linked against. On many targets library
  1230. support is provided by the C library instead.
  1231. '--disable-libquadmath'
  1232. Specify that the GCC quad-precision math library should not be
  1233. built. On some systems, the library is required to be linkable
  1234. when building the Fortran front end, unless
  1235. '--disable-libquadmath-support' is used.
  1236. '--disable-libquadmath-support'
  1237. Specify that the Fortran front end and 'libgfortran' do not add
  1238. support for 'libquadmath' on systems supporting it.
  1239. '--disable-libgomp'
  1240. Specify that the GNU Offloading and Multi Processing Runtime
  1241. Library should not be built.
  1242. '--disable-libvtv'
  1243. Specify that the run-time libraries used by vtable verification
  1244. should not be built.
  1245. '--with-dwarf2'
  1246. Specify that the compiler should use DWARF 2 debugging information
  1247. as the default.
  1248. '--with-advance-toolchain=AT'
  1249. On 64-bit PowerPC Linux systems, configure the compiler to use the
  1250. header files, library files, and the dynamic linker from the
  1251. Advance Toolchain release AT instead of the default versions that
  1252. are provided by the Linux distribution. In general, this option is
  1253. intended for the developers of GCC, and it is not intended for
  1254. general use.
  1255. '--enable-targets=all'
  1256. '--enable-targets=TARGET_LIST'
  1257. Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers.
  1258. These are compilers that are able to generate either 64-bit or
  1259. 32-bit code. Typically, the corresponding 32-bit target, e.g.
  1260. powerpc-linux for powerpc64-linux, only generates 32-bit code.
  1261. This option enables the 32-bit target to be a bi-arch compiler,
  1262. which is useful when you want a bi-arch compiler that defaults to
  1263. 32-bit, and you are building a bi-arch or multi-arch binutils in a
  1264. combined tree. On mips-linux, this will build a tri-arch compiler
  1265. (ABI o32/n32/64), defaulted to o32. Currently, this option only
  1266. affects sparc-linux, powerpc-linux, x86-linux, mips-linux and
  1267. s390-linux.
  1268. '--enable-default-pie'
  1269. Turn on '-fPIE' and '-pie' by default.
  1270. '--enable-secureplt'
  1271. This option enables '-msecure-plt' by default for powerpc-linux.
  1272. *Note RS/6000 and PowerPC Options: (gcc)RS/6000 and PowerPC
  1273. Options,
  1274. '--enable-default-ssp'
  1275. Turn on '-fstack-protector-strong' by default.
  1276. '--enable-cld'
  1277. This option enables '-mcld' by default for 32-bit x86 targets.
  1278. *Note i386 and x86-64 Options: (gcc)i386 and x86-64 Options,
  1279. '--enable-large-address-aware'
  1280. The '--enable-large-address-aware' option arranges for MinGW
  1281. executables to be linked using the '--large-address-aware' option,
  1282. that enables the use of more than 2GB of memory. If GCC is
  1283. configured with this option, its effects can be reversed by passing
  1284. the '-Wl,--disable-large-address-aware' option to the so-configured
  1285. compiler driver.
  1286. '--enable-win32-registry'
  1287. '--enable-win32-registry=KEY'
  1288. '--disable-win32-registry'
  1289. The '--enable-win32-registry' option enables Microsoft
  1290. Windows-hosted GCC to look up installations paths in the registry
  1291. using the following key:
  1292. HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\KEY
  1293. KEY defaults to GCC version number, and can be overridden by the
  1294. '--enable-win32-registry=KEY' option. Vendors and distributors who
  1295. use custom installers are encouraged to provide a different key,
  1296. perhaps one comprised of vendor name and GCC version number, to
  1297. avoid conflict with existing installations. This feature is
  1298. enabled by default, and can be disabled by
  1299. '--disable-win32-registry' option. This option has no effect on
  1300. the other hosts.
  1301. '--nfp'
  1302. Specify that the machine does not have a floating point unit. This
  1303. option only applies to 'm68k-sun-sunosN'. On any other system,
  1304. '--nfp' has no effect.
  1305. '--enable-werror'
  1306. '--disable-werror'
  1307. '--enable-werror=yes'
  1308. '--enable-werror=no'
  1309. When you specify this option, it controls whether certain files in
  1310. the compiler are built with '-Werror' in bootstrap stage2 and
  1311. later. If you don't specify it, '-Werror' is turned on for the
  1312. main development trunk. However it defaults to off for release
  1313. branches and final releases. The specific files which get
  1314. '-Werror' are controlled by the Makefiles.
  1315. '--enable-checking'
  1316. '--disable-checking'
  1317. '--enable-checking=LIST'
  1318. This option controls performing internal consistency checks in the
  1319. compiler. It does not change the generated code, but adds error
  1320. checking of the requested complexity. This slows down the compiler
  1321. and may only work properly if you are building the compiler with
  1322. GCC.
  1323. When the option is not specified, the active set of checks depends
  1324. on context. Namely, bootstrap stage 1 defaults to
  1325. '--enable-checking=yes', builds from release branches or release
  1326. archives default to '--enable-checking=release', and otherwise
  1327. '--enable-checking=yes,extra' is used. When the option is
  1328. specified without a LIST, the result is the same as
  1329. '--enable-checking=yes'. Likewise, '--disable-checking' is
  1330. equivalent to '--enable-checking=no'.
  1331. The categories of checks available in LIST are 'yes' (most common
  1332. checks 'assert,misc,gc,gimple,rtlflag,runtime,tree,types'), 'no'
  1333. (no checks at all), 'all' (all but 'valgrind'), 'release' (cheapest
  1334. checks 'assert,runtime') or 'none' (same as 'no'). 'release'
  1335. checks are always on and to disable them '--disable-checking' or
  1336. '--enable-checking=no[,<other checks>]' must be explicitly
  1337. requested. Disabling assertions makes the compiler and runtime
  1338. slightly faster but increases the risk of undetected internal
  1339. errors causing wrong code to be generated.
  1340. Individual checks can be enabled with these flags: 'assert', 'df',
  1341. 'extra', 'fold', 'gc', 'gcac', 'gimple', 'misc', 'rtl', 'rtlflag',
  1342. 'runtime', 'tree', 'types' and 'valgrind'. 'extra' extends 'misc'
  1343. checking with extra checks that might affect code generation and
  1344. should therefore not differ between stage1 and later stages in
  1345. bootstrap.
  1346. The 'valgrind' check requires the external 'valgrind' simulator,
  1347. available from <https://valgrind.org>. The 'rtl' checks are
  1348. expensive and the 'df', 'gcac' and 'valgrind' checks are very
  1349. expensive.
  1350. '--disable-stage1-checking'
  1351. '--enable-stage1-checking'
  1352. '--enable-stage1-checking=LIST'
  1353. This option affects only bootstrap build. If no
  1354. '--enable-checking' option is specified the stage1 compiler is
  1355. built with 'yes' checking enabled, otherwise the stage1 checking
  1356. flags are the same as specified by '--enable-checking'. To build
  1357. the stage1 compiler with different checking options use
  1358. '--enable-stage1-checking'. The list of checking options is the
  1359. same as for '--enable-checking'. If your system is too slow or too
  1360. small to bootstrap a released compiler with checking for stage1
  1361. enabled, you can use '--disable-stage1-checking' to disable
  1362. checking for the stage1 compiler.
  1363. '--enable-coverage'
  1364. '--enable-coverage=LEVEL'
  1365. With this option, the compiler is built to collect self coverage
  1366. information, every time it is run. This is for internal
  1367. development purposes, and only works when the compiler is being
  1368. built with gcc. The LEVEL argument controls whether the compiler
  1369. is built optimized or not, values are 'opt' and 'noopt'. For
  1370. coverage analysis you want to disable optimization, for performance
  1371. analysis you want to enable optimization. When coverage is
  1372. enabled, the default level is without optimization.
  1373. '--enable-gather-detailed-mem-stats'
  1374. When this option is specified more detailed information on memory
  1375. allocation is gathered. This information is printed when using
  1376. '-fmem-report'.
  1377. '--enable-valgrind-annotations'
  1378. Mark selected memory related operations in the compiler when run
  1379. under valgrind to suppress false positives.
  1380. '--enable-nls'
  1381. '--disable-nls'
  1382. The '--enable-nls' option enables Native Language Support (NLS),
  1383. which lets GCC output diagnostics in languages other than American
  1384. English. Native Language Support is enabled by default if not
  1385. doing a canadian cross build. The '--disable-nls' option disables
  1386. NLS.
  1387. '--with-included-gettext'
  1388. If NLS is enabled, the '--with-included-gettext' option causes the
  1389. build procedure to prefer its copy of GNU 'gettext'.
  1390. '--with-catgets'
  1391. If NLS is enabled, and if the host lacks 'gettext' but has the
  1392. inferior 'catgets' interface, the GCC build procedure normally
  1393. ignores 'catgets' and instead uses GCC's copy of the GNU 'gettext'
  1394. library. The '--with-catgets' option causes the build procedure to
  1395. use the host's 'catgets' in this situation.
  1396. '--with-libiconv-prefix=DIR'
  1397. Search for libiconv header files in 'DIR/include' and libiconv
  1398. library files in 'DIR/lib'.
  1399. '--enable-obsolete'
  1400. Enable configuration for an obsoleted system. If you attempt to
  1401. configure GCC for a system (build, host, or target) which has been
  1402. obsoleted, and you do not specify this flag, configure will halt
  1403. with an error message.
  1404. All support for systems which have been obsoleted in one release of
  1405. GCC is removed entirely in the next major release, unless someone
  1406. steps forward to maintain the port.
  1407. '--enable-decimal-float'
  1408. '--enable-decimal-float=yes'
  1409. '--enable-decimal-float=no'
  1410. '--enable-decimal-float=bid'
  1411. '--enable-decimal-float=dpd'
  1412. '--disable-decimal-float'
  1413. Enable (or disable) support for the C decimal floating point
  1414. extension that is in the IEEE 754-2008 standard. This is enabled
  1415. by default only on PowerPC, i386, and x86_64 GNU/Linux systems.
  1416. Other systems may also support it, but require the user to
  1417. specifically enable it. You can optionally control which decimal
  1418. floating point format is used (either 'bid' or 'dpd'). The 'bid'
  1419. (binary integer decimal) format is default on i386 and x86_64
  1420. systems, and the 'dpd' (densely packed decimal) format is default
  1421. on PowerPC systems.
  1422. '--enable-fixed-point'
  1423. '--disable-fixed-point'
  1424. Enable (or disable) support for C fixed-point arithmetic. This
  1425. option is enabled by default for some targets (such as MIPS) which
  1426. have hardware-support for fixed-point operations. On other
  1427. targets, you may enable this option manually.
  1428. '--with-long-double-128'
  1429. Specify if 'long double' type should be 128-bit by default on
  1430. selected GNU/Linux architectures. If using
  1431. '--without-long-double-128', 'long double' will be by default
  1432. 64-bit, the same as 'double' type. When neither of these configure
  1433. options are used, the default will be 128-bit 'long double' when
  1434. built against GNU C Library 2.4 and later, 64-bit 'long double'
  1435. otherwise.
  1436. '--with-long-double-format=ibm'
  1437. '--with-long-double-format=ieee'
  1438. Specify whether 'long double' uses the IBM extended double format
  1439. or the IEEE 128-bit floating point format on PowerPC Linux systems.
  1440. This configuration switch will only work on little endian PowerPC
  1441. Linux systems and on big endian 64-bit systems where the default
  1442. cpu is at least power7 (i.e. '--with-cpu=power7',
  1443. '--with-cpu=power8', or '--with-cpu=power9' is used).
  1444. If you use the '--with-long-double-64' configuration option, the
  1445. '--with-long-double-format=ibm' and
  1446. '--with-long-double-format=ieee' options are ignored.
  1447. The default 'long double' format is to use IBM extended double.
  1448. Until all of the libraries are converted to use IEEE 128-bit
  1449. floating point, it is not recommended to use
  1450. '--with-long-double-format=ieee'.
  1451. On little endian PowerPC Linux systems, if you explicitly set the
  1452. 'long double' type, it will build multilibs to allow you to select
  1453. either 'long double' format, unless you disable multilibs with the
  1454. '--disable-multilib' option. At present, 'long double' multilibs
  1455. are not built on big endian PowerPC Linux systems. If you are
  1456. building multilibs, you will need to configure the compiler using
  1457. the '--with-system-zlib' option.
  1458. If you do not set the 'long double' type explicitly, no multilibs
  1459. will be generated.
  1460. '--enable-fdpic'
  1461. On SH Linux systems, generate ELF FDPIC code.
  1462. '--with-gmp=PATHNAME'
  1463. '--with-gmp-include=PATHNAME'
  1464. '--with-gmp-lib=PATHNAME'
  1465. '--with-mpfr=PATHNAME'
  1466. '--with-mpfr-include=PATHNAME'
  1467. '--with-mpfr-lib=PATHNAME'
  1468. '--with-mpc=PATHNAME'
  1469. '--with-mpc-include=PATHNAME'
  1470. '--with-mpc-lib=PATHNAME'
  1471. If you want to build GCC but do not have the GMP library, the MPFR
  1472. library and/or the MPC library installed in a standard location and
  1473. do not have their sources present in the GCC source tree then you
  1474. can explicitly specify the directory where they are installed
  1475. ('--with-gmp=GMPINSTALLDIR', '--with-mpfr=MPFRINSTALLDIR',
  1476. '--with-mpc=MPCINSTALLDIR'). The '--with-gmp=GMPINSTALLDIR' option
  1477. is shorthand for '--with-gmp-lib=GMPINSTALLDIR/lib' and
  1478. '--with-gmp-include=GMPINSTALLDIR/include'. Likewise the
  1479. '--with-mpfr=MPFRINSTALLDIR' option is shorthand for
  1480. '--with-mpfr-lib=MPFRINSTALLDIR/lib' and
  1481. '--with-mpfr-include=MPFRINSTALLDIR/include', also the
  1482. '--with-mpc=MPCINSTALLDIR' option is shorthand for
  1483. '--with-mpc-lib=MPCINSTALLDIR/lib' and
  1484. '--with-mpc-include=MPCINSTALLDIR/include'. If these shorthand
  1485. assumptions are not correct, you can use the explicit include and
  1486. lib options directly. You might also need to ensure the shared
  1487. libraries can be found by the dynamic linker when building and
  1488. using GCC, for example by setting the runtime shared library path
  1489. variable ('LD_LIBRARY_PATH' on GNU/Linux and Solaris systems).
  1490. These flags are applicable to the host platform only. When
  1491. building a cross compiler, they will not be used to configure
  1492. target libraries.
  1493. '--with-isl=PATHNAME'
  1494. '--with-isl-include=PATHNAME'
  1495. '--with-isl-lib=PATHNAME'
  1496. If you do not have the isl library installed in a standard location
  1497. and you want to build GCC, you can explicitly specify the directory
  1498. where it is installed ('--with-isl=ISLINSTALLDIR'). The
  1499. '--with-isl=ISLINSTALLDIR' option is shorthand for
  1500. '--with-isl-lib=ISLINSTALLDIR/lib' and
  1501. '--with-isl-include=ISLINSTALLDIR/include'. If this shorthand
  1502. assumption is not correct, you can use the explicit include and lib
  1503. options directly.
  1504. These flags are applicable to the host platform only. When
  1505. building a cross compiler, they will not be used to configure
  1506. target libraries.
  1507. '--with-stage1-ldflags=FLAGS'
  1508. This option may be used to set linker flags to be used when linking
  1509. stage 1 of GCC. These are also used when linking GCC if configured
  1510. with '--disable-bootstrap'. If '--with-stage1-libs' is not set to
  1511. a value, then the default is '-static-libstdc++ -static-libgcc', if
  1512. supported.
  1513. '--with-stage1-libs=LIBS'
  1514. This option may be used to set libraries to be used when linking
  1515. stage 1 of GCC. These are also used when linking GCC if configured
  1516. with '--disable-bootstrap'.
  1517. '--with-boot-ldflags=FLAGS'
  1518. This option may be used to set linker flags to be used when linking
  1519. stage 2 and later when bootstrapping GCC. If -with-boot-libs is not
  1520. is set to a value, then the default is '-static-libstdc++
  1521. -static-libgcc'.
  1522. '--with-boot-libs=LIBS'
  1523. This option may be used to set libraries to be used when linking
  1524. stage 2 and later when bootstrapping GCC.
  1525. '--with-debug-prefix-map=MAP'
  1526. Convert source directory names using '-fdebug-prefix-map' when
  1527. building runtime libraries. 'MAP' is a space-separated list of
  1528. maps of the form 'OLD=NEW'.
  1529. '--enable-linker-build-id'
  1530. Tells GCC to pass '--build-id' option to the linker for all final
  1531. links (links performed without the '-r' or '--relocatable' option),
  1532. if the linker supports it. If you specify
  1533. '--enable-linker-build-id', but your linker does not support
  1534. '--build-id' option, a warning is issued and the
  1535. '--enable-linker-build-id' option is ignored. The default is off.
  1536. '--with-linker-hash-style=CHOICE'
  1537. Tells GCC to pass '--hash-style=CHOICE' option to the linker for
  1538. all final links. CHOICE can be one of 'sysv', 'gnu', and 'both'
  1539. where 'sysv' is the default.
  1540. '--enable-gnu-unique-object'
  1541. '--disable-gnu-unique-object'
  1542. Tells GCC to use the gnu_unique_object relocation for C++ template
  1543. static data members and inline function local statics. Enabled by
  1544. default for a toolchain with an assembler that accepts it and GLIBC
  1545. 2.11 or above, otherwise disabled.
  1546. '--with-diagnostics-color=CHOICE'
  1547. Tells GCC to use CHOICE as the default for '-fdiagnostics-color='
  1548. option (if not used explicitly on the command line). CHOICE can be
  1549. one of 'never', 'auto', 'always', and 'auto-if-env' where 'auto' is
  1550. the default. 'auto-if-env' makes '-fdiagnostics-color=auto' the
  1551. default if 'GCC_COLORS' is present and non-empty in the environment
  1552. of the compiler, and '-fdiagnostics-color=never' otherwise.
  1553. '--with-diagnostics-urls=CHOICE'
  1554. Tells GCC to use CHOICE as the default for '-fdiagnostics-urls='
  1555. option (if not used explicitly on the command line). CHOICE can be
  1556. one of 'never', 'auto', 'always', and 'auto-if-env' where 'auto' is
  1557. the default. 'auto-if-env' makes '-fdiagnostics-urls=auto' the
  1558. default if 'GCC_URLS' or 'TERM_URLS' is present and non-empty in
  1559. the environment of the compiler, and '-fdiagnostics-urls=never'
  1560. otherwise.
  1561. '--enable-lto'
  1562. '--disable-lto'
  1563. Enable support for link-time optimization (LTO). This is enabled by
  1564. default, and may be disabled using '--disable-lto'.
  1565. '--enable-linker-plugin-configure-flags=FLAGS'
  1566. '--enable-linker-plugin-flags=FLAGS'
  1567. By default, linker plugins (such as the LTO plugin) are built for
  1568. the host system architecture. For the case that the linker has a
  1569. different (but run-time compatible) architecture, these flags can
  1570. be specified to build plugins that are compatible to the linker.
  1571. For example, if you are building GCC for a 64-bit x86_64
  1572. ('x86_64-pc-linux-gnu') host system, but have a 32-bit x86
  1573. GNU/Linux ('i686-pc-linux-gnu') linker executable (which is
  1574. executable on the former system), you can configure GCC as follows
  1575. for getting compatible linker plugins:
  1576. % SRCDIR/configure \
  1577. --host=x86_64-pc-linux-gnu \
  1578. --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \
  1579. --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'
  1580. '--with-plugin-ld=PATHNAME'
  1581. Enable an alternate linker to be used at link-time optimization
  1582. (LTO) link time when '-fuse-linker-plugin' is enabled. This linker
  1583. should have plugin support such as gold starting with version 2.20
  1584. or GNU ld starting with version 2.21. See '-fuse-linker-plugin'
  1585. for details.
  1586. '--enable-canonical-system-headers'
  1587. '--disable-canonical-system-headers'
  1588. Enable system header path canonicalization for 'libcpp'. This can
  1589. produce shorter header file paths in diagnostics and dependency
  1590. output files, but these changed header paths may conflict with some
  1591. compilation environments. Enabled by default, and may be disabled
  1592. using '--disable-canonical-system-headers'.
  1593. '--with-glibc-version=MAJOR.MINOR'
  1594. Tell GCC that when the GNU C Library (glibc) is used on the target
  1595. it will be version MAJOR.MINOR or later. Normally this can be
  1596. detected from the C library's header files, but this option may be
  1597. needed when bootstrapping a cross toolchain without the header
  1598. files available for building the initial bootstrap compiler.
  1599. If GCC is configured with some multilibs that use glibc and some
  1600. that do not, this option applies only to the multilibs that use
  1601. glibc. However, such configurations may not work well as not all
  1602. the relevant configuration in GCC is on a per-multilib basis.
  1603. '--enable-as-accelerator-for=TARGET'
  1604. Build as offload target compiler. Specify offload host triple by
  1605. TARGET.
  1606. '--enable-offload-targets=TARGET1[=PATH1],...,TARGETN[=PATHN]'
  1607. Enable offloading to targets TARGET1, ..., TARGETN. Offload
  1608. compilers are expected to be already installed. Default search
  1609. path for them is 'EXEC-PREFIX', but it can be changed by specifying
  1610. paths PATH1, ..., PATHN.
  1611. % SRCDIR/configure \
  1612. --enable-offload-targets=x86_64-intelmicemul-linux-gnu=/path/to/x86_64/compiler,nvptx-none
  1613. '--with-hsa-runtime=PATHNAME'
  1614. '--with-hsa-runtime-include=PATHNAME'
  1615. '--with-hsa-runtime-lib=PATHNAME'
  1616. If you configure GCC with offloading which uses an HSA run-time
  1617. such as AMDGCN but do not have the HSA run-time library installed
  1618. in a standard location then you can explicitly specify the
  1619. directory where they are installed. The
  1620. '--with-hsa-runtime=HSAINSTALLDIR' option is a shorthand for
  1621. '--with-hsa-runtime-lib=HSAINSTALLDIR/lib' and
  1622. '--with-hsa-runtime-include=HSAINSTALLDIR/include'.
  1623. '--enable-cet'
  1624. '--disable-cet'
  1625. Enable building target run-time libraries with control-flow
  1626. instrumentation, see '-fcf-protection' option. When '--enable-cet'
  1627. is specified target libraries are configured to add
  1628. '-fcf-protection' and, if needed, other target specific options to
  1629. a set of building options.
  1630. '--enable-cet=auto' is default. CET is enabled on Linux/x86 if
  1631. target binutils supports 'Intel CET' instructions and disabled
  1632. otherwise. In this case, the target libraries are configured to
  1633. get additional '-fcf-protection' option.
  1634. '--with-riscv-attribute='yes', 'no' or 'default''
  1635. Generate RISC-V attribute by default, in order to record extra
  1636. build information in object.
  1637. The option is disabled by default. It is enabled on RISC-V/ELF
  1638. (bare-metal) target if target binutils supported.
  1639. '--enable-s390-excess-float-precision'
  1640. '--disable-s390-excess-float-precision'
  1641. On s390(x) targets, enable treatment of float expressions with
  1642. double precision when in standards-compliant mode (e.g., when
  1643. '--std=c99' or '-fexcess-precision=standard' are given).
  1644. For a native build and cross compiles that have target headers, the
  1645. option's default is derived from glibc's behavior. When glibc
  1646. clamps float_t to double, GCC follows and enables the option. For
  1647. other cross compiles, the default is disabled.
  1648. Cross-Compiler-Specific Options
  1649. -------------------------------
  1650. The following options only apply to building cross compilers.
  1651. '--with-toolexeclibdir=DIR'
  1652. Specify the installation directory for libraries built with a cross
  1653. compiler. The default is '${gcc_tooldir}/lib'.
  1654. '--with-sysroot'
  1655. '--with-sysroot=DIR'
  1656. Tells GCC to consider DIR as the root of a tree that contains (a
  1657. subset of) the root filesystem of the target operating system.
  1658. Target system headers, libraries and run-time object files will be
  1659. searched for in there. More specifically, this acts as if
  1660. '--sysroot=DIR' was added to the default options of the built
  1661. compiler. The specified directory is not copied into the install
  1662. tree, unlike the options '--with-headers' and '--with-libs' that
  1663. this option obsoletes. The default value, in case '--with-sysroot'
  1664. is not given an argument, is '${gcc_tooldir}/sys-root'. If the
  1665. specified directory is a subdirectory of '${exec_prefix}', then it
  1666. will be found relative to the GCC binaries if the installation tree
  1667. is moved.
  1668. This option affects the system root for the compiler used to build
  1669. target libraries (which runs on the build system) and the compiler
  1670. newly installed with 'make install'; it does not affect the
  1671. compiler which is used to build GCC itself.
  1672. If you specify the '--with-native-system-header-dir=DIRNAME' option
  1673. then the compiler will search that directory within DIRNAME for
  1674. native system headers rather than the default '/usr/include'.
  1675. '--with-build-sysroot'
  1676. '--with-build-sysroot=DIR'
  1677. Tells GCC to consider DIR as the system root (see '--with-sysroot')
  1678. while building target libraries, instead of the directory specified
  1679. with '--with-sysroot'. This option is only useful when you are
  1680. already using '--with-sysroot'. You can use '--with-build-sysroot'
  1681. when you are configuring with '--prefix' set to a directory that is
  1682. different from the one in which you are installing GCC and your
  1683. target libraries.
  1684. This option affects the system root for the compiler used to build
  1685. target libraries (which runs on the build system); it does not
  1686. affect the compiler which is used to build GCC itself.
  1687. If you specify the '--with-native-system-header-dir=DIRNAME' option
  1688. then the compiler will search that directory within DIRNAME for
  1689. native system headers rather than the default '/usr/include'.
  1690. '--with-headers'
  1691. '--with-headers=DIR'
  1692. Deprecated in favor of '--with-sysroot'. Specifies that target
  1693. headers are available when building a cross compiler. The DIR
  1694. argument specifies a directory which has the target include files.
  1695. These include files will be copied into the 'gcc' install
  1696. directory. _This option with the DIR argument is required_ when
  1697. building a cross compiler, if 'PREFIX/TARGET/sys-include' doesn't
  1698. pre-exist. If 'PREFIX/TARGET/sys-include' does pre-exist, the DIR
  1699. argument may be omitted. 'fixincludes' will be run on these files
  1700. to make them compatible with GCC.
  1701. '--without-headers'
  1702. Tells GCC not use any target headers from a libc when building a
  1703. cross compiler. When crossing to GNU/Linux, you need the headers
  1704. so GCC can build the exception handling for libgcc.
  1705. '--with-libs'
  1706. '--with-libs="DIR1 DIR2 ... DIRN"'
  1707. Deprecated in favor of '--with-sysroot'. Specifies a list of
  1708. directories which contain the target runtime libraries. These
  1709. libraries will be copied into the 'gcc' install directory. If the
  1710. directory list is omitted, this option has no effect.
  1711. '--with-newlib'
  1712. Specifies that 'newlib' is being used as the target C library.
  1713. This causes '__eprintf' to be omitted from 'libgcc.a' on the
  1714. assumption that it will be provided by 'newlib'.
  1715. '--with-avrlibc'
  1716. Only supported for the AVR target. Specifies that 'AVR-Libc' is
  1717. being used as the target C library. This causes float support
  1718. functions like '__addsf3' to be omitted from 'libgcc.a' on the
  1719. assumption that it will be provided by 'libm.a'. For more
  1720. technical details, cf. PR54461. It is not supported for RTEMS
  1721. configurations, which currently use newlib. The option is
  1722. supported since version 4.7.2 and is the default in 4.8.0 and
  1723. newer.
  1724. '--with-double={32|64|32,64|64,32}'
  1725. '--with-long-double={32|64|32,64|64,32|double}'
  1726. Only supported for the AVR target since version 10. Specify the
  1727. default layout available for the C/C++ 'double' and 'long double'
  1728. type, respectively. The following rules apply:
  1729. * The first value after the '=' specifies the default layout (in
  1730. bits) of the type and also the default for the '-mdouble='
  1731. resp. '-mlong-double=' compiler option.
  1732. * If more than one value is specified, respective multilib
  1733. variants are available, and '-mdouble=' resp.
  1734. '-mlong-double=' acts as a multilib option.
  1735. * If '--with-long-double=double' is specified, 'double' and
  1736. 'long double' will have the same layout.
  1737. * The defaults are '--with-long-double=64,32' and
  1738. '--with-double=32,64'. The default 'double' layout imposed by
  1739. the latter is compatible with older versions of the compiler
  1740. that implement 'double' as a 32-bit type, which does not
  1741. comply to the language standard.
  1742. Not all combinations of '--with-double=' and '--with-long-double='
  1743. are valid. For example, the combination '--with-double=32,64'
  1744. '--with-long-double=32' will be rejected because the first option
  1745. specifies the availability of multilibs for 'double', whereas the
  1746. second option implies that 'long double' -- and hence also 'double'
  1747. -- is always 32 bits wide.
  1748. '--with-double-comparison={tristate|bool|libf7}'
  1749. Only supported for the AVR target since version 10. Specify what
  1750. result format is returned by library functions that compare 64-bit
  1751. floating point values ('DFmode'). The GCC default is 'tristate'.
  1752. If the floating point implementation returns a boolean instead, set
  1753. it to 'bool'.
  1754. '--with-libf7={libgcc|math|math-symbols|no}'
  1755. Only supported for the AVR target since version 10. Specify to
  1756. which degree code from LibF7 is included in libgcc. LibF7 is an
  1757. ad-hoc, AVR-specific, 64-bit floating point emulation written in C
  1758. and (inline) assembly. 'libgcc' adds support for functions that
  1759. one would usually expect in libgcc like double addition, double
  1760. comparisons and double conversions. 'math' also adds routines that
  1761. one would expect in 'libm.a', but with '__' (two underscores)
  1762. prepended to the symbol names as specified by 'math.h'.
  1763. 'math-symbols' also defines weak aliases for the functions declared
  1764. in 'math.h'. However, '--with-libf7' won't install no 'math.h'
  1765. header file whatsoever, this file must come from elsewhere. This
  1766. option sets '--with-double-comparison' to 'bool'.
  1767. '--with-nds32-lib=LIBRARY'
  1768. Specifies that LIBRARY setting is used for building 'libgcc.a'.
  1769. Currently, the valid LIBRARY is 'newlib' or 'mculib'. This option
  1770. is only supported for the NDS32 target.
  1771. '--with-build-time-tools=DIR'
  1772. Specifies where to find the set of target tools (assembler, linker,
  1773. etc.) that will be used while building GCC itself. This option
  1774. can be useful if the directory layouts are different between the
  1775. system you are building GCC on, and the system where you will
  1776. deploy it.
  1777. For example, on an 'ia64-hp-hpux' system, you may have the GNU
  1778. assembler and linker in '/usr/bin', and the native tools in a
  1779. different path, and build a toolchain that expects to find the
  1780. native tools in '/usr/bin'.
  1781. When you use this option, you should ensure that DIR includes 'ar',
  1782. 'as', 'ld', 'nm', 'ranlib' and 'strip' if necessary, and possibly
  1783. 'objdump'. Otherwise, GCC may use an inconsistent set of tools.
  1784. Overriding 'configure' test results
  1785. ...................................
  1786. Sometimes, it might be necessary to override the result of some
  1787. 'configure' test, for example in order to ease porting to a new system
  1788. or work around a bug in a test. The toplevel 'configure' script
  1789. provides three variables for this:
  1790. 'build_configargs'
  1791. The contents of this variable is passed to all build 'configure'
  1792. scripts.
  1793. 'host_configargs'
  1794. The contents of this variable is passed to all host 'configure'
  1795. scripts.
  1796. 'target_configargs'
  1797. The contents of this variable is passed to all target 'configure'
  1798. scripts.
  1799. In order to avoid shell and 'make' quoting issues for complex
  1800. overrides, you can pass a setting for 'CONFIG_SITE' and set variables in
  1801. the site file.
  1802. Objective-C-Specific Options
  1803. ----------------------------
  1804. The following options apply to the build of the Objective-C runtime
  1805. library.
  1806. '--enable-objc-gc'
  1807. Specify that an additional variant of the GNU Objective-C runtime
  1808. library is built, using an external build of the
  1809. Boehm-Demers-Weiser garbage collector
  1810. (<https://www.hboehm.info/gc/>). This library needs to be
  1811. available for each multilib variant, unless configured with
  1812. '--enable-objc-gc='auto'' in which case the build of the additional
  1813. runtime library is skipped when not available and the build
  1814. continues.
  1815. '--with-target-bdw-gc=LIST'
  1816. '--with-target-bdw-gc-include=LIST'
  1817. '--with-target-bdw-gc-lib=LIST'
  1818. Specify search directories for the garbage collector header files
  1819. and libraries. LIST is a comma separated list of key value pairs
  1820. of the form 'MULTILIBDIR=PATH', where the default multilib key is
  1821. named as '.' (dot), or is omitted (e.g.
  1822. '--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32').
  1823. The options '--with-target-bdw-gc-include' and
  1824. '--with-target-bdw-gc-lib' must always be specified together for
  1825. each multilib variant and they take precedence over
  1826. '--with-target-bdw-gc'. If '--with-target-bdw-gc-include' is
  1827. missing values for a multilib, then the value for the default
  1828. multilib is used (e.g.
  1829. '--with-target-bdw-gc-include=/opt/bdw-gc/include'
  1830. '--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32').
  1831. If none of these options are specified, the library is assumed in
  1832. default locations.
  1833. D-Specific Options
  1834. ------------------
  1835. The following options apply to the build of the D runtime library.
  1836. '--enable-libphobos-checking'
  1837. '--disable-libphobos-checking'
  1838. '--enable-libphobos-checking=LIST'
  1839. This option controls whether run-time checks and contracts are
  1840. compiled into the D runtime library. When the option is not
  1841. specified, the library is built with 'release' checking. When the
  1842. option is specified without a LIST, the result is the same as
  1843. '--enable-libphobos-checking=yes'. Likewise,
  1844. '--disable-libphobos-checking' is equivalent to
  1845. '--enable-libphobos-checking=no'.
  1846. The categories of checks available in LIST are 'yes' (compiles
  1847. libphobos with '-fno-release'), 'no' (compiles libphobos with
  1848. '-frelease'), 'all' (same as 'yes'), 'none' or 'release' (same as
  1849. 'no').
  1850. Individual checks available in LIST are 'assert' (compiles
  1851. libphobos with an extra option '-fassert').
  1852. '--with-libphobos-druntime-only'
  1853. '--with-libphobos-druntime-only=CHOICE'
  1854. Specify whether to build only the core D runtime library
  1855. (druntime), or both the core and standard library (phobos) into
  1856. libphobos. This is useful for targets that have full support in
  1857. druntime, but no or incomplete support in phobos. CHOICE can be
  1858. one of 'auto', 'yes', and 'no' where 'auto' is the default.
  1859. When the option is not specified, the default choice 'auto' means
  1860. that it is inferred whether the target has support for the phobos
  1861. standard library. When the option is specified without a CHOICE,
  1862. the result is the same as '--with-libphobos-druntime-only=yes'.
  1863. '--with-target-system-zlib'
  1864. Use installed 'zlib' rather than that included with GCC. This
  1865. needs to be available for each multilib variant, unless configured
  1866. with '--with-target-system-zlib='auto'' in which case the
  1867. GCC included 'zlib' is only used when the system installed library
  1868. is not available.
  1869. 
  1870. File: gccinstall.info, Node: Building, Next: Testing, Prev: Configuration, Up: Installing GCC
  1871. 5 Building
  1872. **********
  1873. Now that GCC is configured, you are ready to build the compiler and
  1874. runtime libraries.
  1875. Some commands executed when making the compiler may fail (return a
  1876. nonzero status) and be ignored by 'make'. These failures, which are
  1877. often due to files that were not found, are expected, and can safely be
  1878. ignored.
  1879. It is normal to have compiler warnings when compiling certain files.
  1880. Unless you are a GCC developer, you can generally ignore these warnings
  1881. unless they cause compilation to fail. Developers should attempt to fix
  1882. any warnings encountered, however they can temporarily continue past
  1883. warnings-as-errors by specifying the configure flag '--disable-werror'.
  1884. On certain old systems, defining certain environment variables such
  1885. as 'CC' can interfere with the functioning of 'make'.
  1886. If you encounter seemingly strange errors when trying to build the
  1887. compiler in a directory other than the source directory, it could be
  1888. because you have previously configured the compiler in the source
  1889. directory. Make sure you have done all the necessary preparations.
  1890. If you build GCC on a BSD system using a directory stored in an old
  1891. System V file system, problems may occur in running 'fixincludes' if the
  1892. System V file system doesn't support symbolic links. These problems
  1893. result in a failure to fix the declaration of 'size_t' in 'sys/types.h'.
  1894. If you find that 'size_t' is a signed type and that type mismatches
  1895. occur, this could be the cause.
  1896. The solution is not to use such a directory for building GCC.
  1897. Similarly, when building from the source repository or snapshots, or
  1898. if you modify '*.l' files, you need the Flex lexical analyzer generator
  1899. installed. If you do not modify '*.l' files, releases contain the
  1900. Flex-generated files and you do not need Flex installed to build them.
  1901. There is still one Flex-based lexical analyzer (part of the build
  1902. machinery, not of GCC itself) that is used even if you only build the C
  1903. front end.
  1904. When building from the source repository or snapshots, or if you
  1905. modify Texinfo documentation, you need version 4.7 or later of Texinfo
  1906. installed if you want Info documentation to be regenerated. Releases
  1907. contain Info documentation pre-built for the unmodified documentation in
  1908. the release.
  1909. 5.1 Building a native compiler
  1910. ==============================
  1911. For a native build, the default configuration is to perform a 3-stage
  1912. bootstrap of the compiler when 'make' is invoked. This will build the
  1913. entire GCC system and ensure that it compiles itself correctly. It can
  1914. be disabled with the '--disable-bootstrap' parameter to 'configure', but
  1915. bootstrapping is suggested because the compiler will be tested more
  1916. completely and could also have better performance.
  1917. The bootstrapping process will complete the following steps:
  1918. * Build tools necessary to build the compiler.
  1919. * Perform a 3-stage bootstrap of the compiler. This includes
  1920. building three times the target tools for use by the compiler such
  1921. as binutils (bfd, binutils, gas, gprof, ld, and opcodes) if they
  1922. have been individually linked or moved into the top level GCC
  1923. source tree before configuring.
  1924. * Perform a comparison test of the stage2 and stage3 compilers.
  1925. * Build runtime libraries using the stage3 compiler from the previous
  1926. step.
  1927. If you are short on disk space you might consider 'make
  1928. bootstrap-lean' instead. The sequence of compilation is the same
  1929. described above, but object files from the stage1 and stage2 of the
  1930. 3-stage bootstrap of the compiler are deleted as soon as they are no
  1931. longer needed.
  1932. If you wish to use non-default GCC flags when compiling the stage2
  1933. and stage3 compilers, set 'BOOT_CFLAGS' on the command line when doing
  1934. 'make'. For example, if you want to save additional space during the
  1935. bootstrap and in the final installation as well, you can build the
  1936. compiler binaries without debugging information as in the following
  1937. example. This will save roughly 40% of disk space both for the
  1938. bootstrap and the final installation. (Libraries will still contain
  1939. debugging information.)
  1940. make BOOT_CFLAGS='-O' bootstrap
  1941. You can place non-default optimization flags into 'BOOT_CFLAGS'; they
  1942. are less well tested here than the default of '-g -O2', but should still
  1943. work. In a few cases, you may find that you need to specify special
  1944. flags such as '-msoft-float' here to complete the bootstrap; or, if the
  1945. native compiler miscompiles the stage1 compiler, you may need to work
  1946. around this, by choosing 'BOOT_CFLAGS' to avoid the parts of the stage1
  1947. compiler that were miscompiled, or by using 'make bootstrap4' to
  1948. increase the number of stages of bootstrap.
  1949. 'BOOT_CFLAGS' does not apply to bootstrapped target libraries. Since
  1950. these are always compiled with the compiler currently being
  1951. bootstrapped, you can use 'CFLAGS_FOR_TARGET' to modify their
  1952. compilation flags, as for non-bootstrapped target libraries. Again, if
  1953. the native compiler miscompiles the stage1 compiler, you may need to
  1954. work around this by avoiding non-working parts of the stage1 compiler.
  1955. Use 'STAGE1_TFLAGS' to this end.
  1956. If you used the flag '--enable-languages=...' to restrict the
  1957. compilers to be built, only those you've actually enabled will be built.
  1958. This will of course only build those runtime libraries, for which the
  1959. particular compiler has been built. Please note, that re-defining
  1960. 'LANGUAGES' when calling 'make' *does not* work anymore!
  1961. If the comparison of stage2 and stage3 fails, this normally indicates
  1962. that the stage2 compiler has compiled GCC incorrectly, and is therefore
  1963. a potentially serious bug which you should investigate and report. (On
  1964. a few systems, meaningful comparison of object files is impossible; they
  1965. always appear "different". If you encounter this problem, you will need
  1966. to disable comparison in the 'Makefile'.)
  1967. If you do not want to bootstrap your compiler, you can configure with
  1968. '--disable-bootstrap'. In particular cases, you may want to bootstrap
  1969. your compiler even if the target system is not the same as the one you
  1970. are building on: for example, you could build a
  1971. 'powerpc-unknown-linux-gnu' toolchain on a 'powerpc64-unknown-linux-gnu'
  1972. host. In this case, pass '--enable-bootstrap' to the configure script.
  1973. 'BUILD_CONFIG' can be used to bring in additional customization to
  1974. the build. It can be set to a whitespace-separated list of names. For
  1975. each such 'NAME', top-level 'config/NAME.mk' will be included by the
  1976. top-level 'Makefile', bringing in any settings it contains. The default
  1977. 'BUILD_CONFIG' can be set using the configure option
  1978. '--with-build-config=NAME...'. Some examples of supported build
  1979. configurations are:
  1980. 'bootstrap-O1'
  1981. Removes any '-O'-started option from 'BOOT_CFLAGS', and adds '-O1'
  1982. to it. 'BUILD_CONFIG=bootstrap-O1' is equivalent to
  1983. 'BOOT_CFLAGS='-g -O1''.
  1984. 'bootstrap-O3'
  1985. 'bootstrap-Og'
  1986. Analogous to 'bootstrap-O1'.
  1987. 'bootstrap-lto'
  1988. Enables Link-Time Optimization for host tools during bootstrapping.
  1989. 'BUILD_CONFIG=bootstrap-lto' is equivalent to adding '-flto' to
  1990. 'BOOT_CFLAGS'. This option assumes that the host supports the
  1991. linker plugin (e.g. GNU ld version 2.21 or later or GNU gold
  1992. version 2.21 or later).
  1993. 'bootstrap-lto-noplugin'
  1994. This option is similar to 'bootstrap-lto', but is intended for
  1995. hosts that do not support the linker plugin. Without the linker
  1996. plugin static libraries are not compiled with link-time
  1997. optimizations. Since the GCC middle end and back end are in
  1998. 'libbackend.a' this means that only the front end is actually LTO
  1999. optimized.
  2000. 'bootstrap-lto-lean'
  2001. This option is similar to 'bootstrap-lto', but is intended for
  2002. faster build by only using LTO in the final bootstrap stage. With
  2003. 'make profiledbootstrap' the LTO frontend is trained only on
  2004. generator files.
  2005. 'bootstrap-debug'
  2006. Verifies that the compiler generates the same executable code,
  2007. whether or not it is asked to emit debug information. To this end,
  2008. this option builds stage2 host programs without debug information,
  2009. and uses 'contrib/compare-debug' to compare them with the stripped
  2010. stage3 object files. If 'BOOT_CFLAGS' is overridden so as to not
  2011. enable debug information, stage2 will have it, and stage3 won't.
  2012. This option is enabled by default when GCC bootstrapping is
  2013. enabled, if 'strip' can turn object files compiled with and without
  2014. debug info into identical object files. In addition to better test
  2015. coverage, this option makes default bootstraps faster and leaner.
  2016. 'bootstrap-debug-big'
  2017. Rather than comparing stripped object files, as in
  2018. 'bootstrap-debug', this option saves internal compiler dumps during
  2019. stage2 and stage3 and compares them as well, which helps catch
  2020. additional potential problems, but at a great cost in terms of disk
  2021. space. It can be specified in addition to 'bootstrap-debug'.
  2022. 'bootstrap-debug-lean'
  2023. This option saves disk space compared with 'bootstrap-debug-big',
  2024. but at the expense of some recompilation. Instead of saving the
  2025. dumps of stage2 and stage3 until the final compare, it uses
  2026. '-fcompare-debug' to generate, compare and remove the dumps during
  2027. stage3, repeating the compilation that already took place in
  2028. stage2, whose dumps were not saved.
  2029. 'bootstrap-debug-lib'
  2030. This option tests executable code invariance over debug information
  2031. generation on target libraries, just like 'bootstrap-debug-lean'
  2032. tests it on host programs. It builds stage3 libraries with
  2033. '-fcompare-debug', and it can be used along with any of the
  2034. 'bootstrap-debug' options above.
  2035. There aren't '-lean' or '-big' counterparts to this option because
  2036. most libraries are only build in stage3, so bootstrap compares
  2037. would not get significant coverage. Moreover, the few libraries
  2038. built in stage2 are used in stage3 host programs, so we wouldn't
  2039. want to compile stage2 libraries with different options for
  2040. comparison purposes.
  2041. 'bootstrap-debug-ckovw'
  2042. Arranges for error messages to be issued if the compiler built on
  2043. any stage is run without the option '-fcompare-debug'. This is
  2044. useful to verify the full '-fcompare-debug' testing coverage. It
  2045. must be used along with 'bootstrap-debug-lean' and
  2046. 'bootstrap-debug-lib'.
  2047. 'bootstrap-cet'
  2048. This option enables Intel CET for host tools during bootstrapping.
  2049. 'BUILD_CONFIG=bootstrap-cet' is equivalent to adding
  2050. '-fcf-protection' to 'BOOT_CFLAGS'. This option assumes that the
  2051. host supports Intel CET (e.g. GNU assembler version 2.30 or later).
  2052. 'bootstrap-time'
  2053. Arranges for the run time of each program started by the GCC
  2054. driver, built in any stage, to be logged to 'time.log', in the top
  2055. level of the build tree.
  2056. 'bootstrap-asan'
  2057. Compiles GCC itself using Address Sanitization in order to catch
  2058. invalid memory accesses within the GCC code.
  2059. 'bootstrap-hwasan'
  2060. Compiles GCC itself using HWAddress Sanitization in order to catch
  2061. invalid memory accesses within the GCC code. This option is only
  2062. available on AArch64 systems that are running Linux kernel version
  2063. 5.4 or later.
  2064. 5.2 Building a cross compiler
  2065. =============================
  2066. When building a cross compiler, it is not generally possible to do a
  2067. 3-stage bootstrap of the compiler. This makes for an interesting
  2068. problem as parts of GCC can only be built with GCC.
  2069. To build a cross compiler, we recommend first building and installing
  2070. a native compiler. You can then use the native GCC compiler to build
  2071. the cross compiler. The installed native compiler needs to be GCC
  2072. version 2.95 or later.
  2073. Assuming you have already installed a native copy of GCC and
  2074. configured your cross compiler, issue the command 'make', which performs
  2075. the following steps:
  2076. * Build host tools necessary to build the compiler.
  2077. * Build target tools for use by the compiler such as binutils (bfd,
  2078. binutils, gas, gprof, ld, and opcodes) if they have been
  2079. individually linked or moved into the top level GCC source tree
  2080. before configuring.
  2081. * Build the compiler (single stage only).
  2082. * Build runtime libraries using the compiler from the previous step.
  2083. Note that if an error occurs in any step the make process will exit.
  2084. If you are not building GNU binutils in the same source tree as GCC,
  2085. you will need a cross-assembler and cross-linker installed before
  2086. configuring GCC. Put them in the directory 'PREFIX/TARGET/bin'. Here
  2087. is a table of the tools you should put in this directory:
  2088. 'as'
  2089. This should be the cross-assembler.
  2090. 'ld'
  2091. This should be the cross-linker.
  2092. 'ar'
  2093. This should be the cross-archiver: a program which can manipulate
  2094. archive files (linker libraries) in the target machine's format.
  2095. 'ranlib'
  2096. This should be a program to construct a symbol table in an archive
  2097. file.
  2098. The installation of GCC will find these programs in that directory,
  2099. and copy or link them to the proper place to for the cross-compiler to
  2100. find them when run later.
  2101. The easiest way to provide these files is to build the Binutils
  2102. package. Configure it with the same '--host' and '--target' options
  2103. that you use for configuring GCC, then build and install them. They
  2104. install their executables automatically into the proper directory.
  2105. Alas, they do not support all the targets that GCC supports.
  2106. If you are not building a C library in the same source tree as GCC,
  2107. you should also provide the target libraries and headers before
  2108. configuring GCC, specifying the directories with '--with-sysroot' or
  2109. '--with-headers' and '--with-libs'. Many targets also require "start
  2110. files" such as 'crt0.o' and 'crtn.o' which are linked into each
  2111. executable. There may be several alternatives for 'crt0.o', for use
  2112. with profiling or other compilation options. Check your target's
  2113. definition of 'STARTFILE_SPEC' to find out what start files it uses.
  2114. 5.3 Building in parallel
  2115. ========================
  2116. GNU Make 3.80 and above, which is necessary to build GCC, support
  2117. building in parallel. To activate this, you can use 'make -j 2' instead
  2118. of 'make'. You can also specify a bigger number, and in most cases
  2119. using a value greater than the number of processors in your machine will
  2120. result in fewer and shorter I/O latency hits, thus improving overall
  2121. throughput; this is especially true for slow drives and network
  2122. filesystems.
  2123. 5.4 Building the Ada compiler
  2124. =============================
  2125. *note GNAT-prerequisite::.
  2126. 5.5 Building with profile feedback
  2127. ==================================
  2128. It is possible to use profile feedback to optimize the compiler itself.
  2129. This should result in a faster compiler binary. Experiments done on x86
  2130. using gcc 3.3 showed approximately 7 percent speedup on compiling C
  2131. programs. To bootstrap the compiler with profile feedback, use 'make
  2132. profiledbootstrap'.
  2133. When 'make profiledbootstrap' is run, it will first build a 'stage1'
  2134. compiler. This compiler is used to build a 'stageprofile' compiler
  2135. instrumented to collect execution counts of instruction and branch
  2136. probabilities. Training run is done by building 'stagetrain' compiler.
  2137. Finally a 'stagefeedback' compiler is built using the information
  2138. collected.
  2139. Unlike standard bootstrap, several additional restrictions apply.
  2140. The compiler used to build 'stage1' needs to support a 64-bit integral
  2141. type. It is recommended to only use GCC for this.
  2142. On Linux/x86_64 hosts with some restrictions (no virtualization) it
  2143. is also possible to do autofdo build with 'make autoprofiledback'. This
  2144. uses Linux perf to sample branches in the binary and then rebuild it
  2145. with feedback derived from the profile. Linux perf and the 'autofdo'
  2146. toolkit needs to be installed for this.
  2147. Only the profile from the current build is used, so when an error
  2148. occurs it is recommended to clean before restarting. Otherwise the code
  2149. quality may be much worse.
  2150. 
  2151. File: gccinstall.info, Node: Testing, Next: Final install, Prev: Building, Up: Installing GCC
  2152. 6 Installing GCC: Testing
  2153. *************************
  2154. Before you install GCC, we encourage you to run the testsuites and to
  2155. compare your results with results from a similar configuration that have
  2156. been submitted to the gcc-testresults mailing list. Some of these
  2157. archived results are linked from the build status lists at
  2158. <http://gcc.gnu.org/buildstat.html>, although not everyone who reports a
  2159. successful build runs the testsuites and submits the results. This step
  2160. is optional and may require you to download additional software, but it
  2161. can give you confidence in your new GCC installation or point out
  2162. problems before you install and start using your new GCC.
  2163. First, you must have downloaded the testsuites. These are part of
  2164. the full distribution, but if you downloaded the "core" compiler plus
  2165. any front ends, you must download the testsuites separately.
  2166. Second, you must have the testing tools installed. This includes
  2167. DejaGnu, Tcl, and Expect; the DejaGnu site has links to these. For
  2168. running the BRIG frontend tests, a tool to assemble the binary BRIGs
  2169. from HSAIL text, HSAILasm must be installed. Some optional tests also
  2170. require Python3 and pytest module.
  2171. If the directories where 'runtest' and 'expect' were installed are
  2172. not in the 'PATH', you may need to set the following environment
  2173. variables appropriately, as in the following example (which assumes that
  2174. DejaGnu has been installed under '/usr/local'):
  2175. TCL_LIBRARY = /usr/local/share/tcl8.0
  2176. DEJAGNULIBS = /usr/local/share/dejagnu
  2177. (On systems such as Cygwin, these paths are required to be actual
  2178. paths, not mounts or links; presumably this is due to some lack of
  2179. portability in the DejaGnu code.)
  2180. Finally, you can run the testsuite (which may take a long time):
  2181. cd OBJDIR; make -k check
  2182. This will test various components of GCC, such as compiler front ends
  2183. and runtime libraries. While running the testsuite, DejaGnu might emit
  2184. some harmless messages resembling 'WARNING: Couldn't find the global
  2185. config file.' or 'WARNING: Couldn't find tool init file' that can be
  2186. ignored.
  2187. If you are testing a cross-compiler, you may want to run the
  2188. testsuite on a simulator as described at
  2189. <http://gcc.gnu.org/simtest-howto.html>.
  2190. 6.1 How can you run the testsuite on selected tests?
  2191. ====================================================
  2192. In order to run sets of tests selectively, there are targets 'make
  2193. check-gcc' and language specific 'make check-c', 'make check-c++', 'make
  2194. check-d' 'make check-fortran', 'make check-ada', 'make check-objc',
  2195. 'make check-obj-c++', 'make check-lto' in the 'gcc' subdirectory of the
  2196. object directory. You can also just run 'make check' in a subdirectory
  2197. of the object directory.
  2198. A more selective way to just run all 'gcc' execute tests in the
  2199. testsuite is to use
  2200. make check-gcc RUNTESTFLAGS="execute.exp OTHER-OPTIONS"
  2201. Likewise, in order to run only the 'g++' "old-deja" tests in the
  2202. testsuite with filenames matching '9805*', you would use
  2203. make check-g++ RUNTESTFLAGS="old-deja.exp=9805* OTHER-OPTIONS"
  2204. The file-matching expression following FILENAME'.exp=' is treated as
  2205. a series of whitespace-delimited glob expressions so that multiple
  2206. patterns may be passed, although any whitespace must either be escaped
  2207. or surrounded by single quotes if multiple expressions are desired. For
  2208. example,
  2209. make check-g++ RUNTESTFLAGS="old-deja.exp=9805*\ virtual2.c OTHER-OPTIONS"
  2210. make check-g++ RUNTESTFLAGS="'old-deja.exp=9805* virtual2.c' OTHER-OPTIONS"
  2211. The '*.exp' files are located in the testsuite directories of the GCC
  2212. source, the most important ones being 'compile.exp', 'execute.exp',
  2213. 'dg.exp' and 'old-deja.exp'. To get a list of the possible '*.exp'
  2214. files, pipe the output of 'make check' into a file and look at the
  2215. 'Running ... .exp' lines.
  2216. 6.2 Passing options and running multiple testsuites
  2217. ===================================================
  2218. You can pass multiple options to the testsuite using the
  2219. '--target_board' option of DejaGNU, either passed as part of
  2220. 'RUNTESTFLAGS', or directly to 'runtest' if you prefer to work outside
  2221. the makefiles. For example,
  2222. make check-g++ RUNTESTFLAGS="--target_board=unix/-O3/-fmerge-constants"
  2223. will run the standard 'g++' testsuites ("unix" is the target name for
  2224. a standard native testsuite situation), passing '-O3 -fmerge-constants'
  2225. to the compiler on every test, i.e., slashes separate options.
  2226. You can run the testsuites multiple times using combinations of
  2227. options with a syntax similar to the brace expansion of popular shells:
  2228. ..."--target_board=arm-sim\{-mhard-float,-msoft-float\}\{-O1,-O2,-O3,\}"
  2229. (Note the empty option caused by the trailing comma in the final
  2230. group.) The following will run each testsuite eight times using the
  2231. 'arm-sim' target, as if you had specified all possible combinations
  2232. yourself:
  2233. --target_board='arm-sim/-mhard-float/-O1 \
  2234. arm-sim/-mhard-float/-O2 \
  2235. arm-sim/-mhard-float/-O3 \
  2236. arm-sim/-mhard-float \
  2237. arm-sim/-msoft-float/-O1 \
  2238. arm-sim/-msoft-float/-O2 \
  2239. arm-sim/-msoft-float/-O3 \
  2240. arm-sim/-msoft-float'
  2241. They can be combined as many times as you wish, in arbitrary ways.
  2242. This list:
  2243. ..."--target_board=unix/-Wextra\{-O3,-fno-strength\}\{-fomit-frame,\}"
  2244. will generate four combinations, all involving '-Wextra'.
  2245. The disadvantage to this method is that the testsuites are run in
  2246. serial, which is a waste on multiprocessor systems. For users with GNU
  2247. Make and a shell which performs brace expansion, you can run the
  2248. testsuites in parallel by having the shell perform the combinations and
  2249. 'make' do the parallel runs. Instead of using '--target_board', use a
  2250. special makefile target:
  2251. make -jN check-TESTSUITE//TEST-TARGET/OPTION1/OPTION2/...
  2252. For example,
  2253. make -j3 check-gcc//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
  2254. will run three concurrent "make-gcc" testsuites, eventually testing
  2255. all ten combinations as described above. Note that this is currently
  2256. only supported in the 'gcc' subdirectory. (To see how this works, try
  2257. typing 'echo' before the example given here.)
  2258. 6.3 How to interpret test results
  2259. =================================
  2260. The result of running the testsuite are various '*.sum' and '*.log'
  2261. files in the testsuite subdirectories. The '*.log' files contain a
  2262. detailed log of the compiler invocations and the corresponding results,
  2263. the '*.sum' files summarize the results. These summaries contain status
  2264. codes for all tests:
  2265. * PASS: the test passed as expected
  2266. * XPASS: the test unexpectedly passed
  2267. * FAIL: the test unexpectedly failed
  2268. * XFAIL: the test failed as expected
  2269. * UNSUPPORTED: the test is not supported on this platform
  2270. * ERROR: the testsuite detected an error
  2271. * WARNING: the testsuite detected a possible problem
  2272. It is normal for some tests to report unexpected failures. At the
  2273. current time the testing harness does not allow fine grained control
  2274. over whether or not a test is expected to fail. This problem should be
  2275. fixed in future releases.
  2276. 6.4 Submitting test results
  2277. ===========================
  2278. If you want to report the results to the GCC project, use the
  2279. 'contrib/test_summary' shell script. Start it in the OBJDIR with
  2280. SRCDIR/contrib/test_summary -p your_commentary.txt \
  2281. -m gcc-testresults@gcc.gnu.org |sh
  2282. This script uses the 'Mail' program to send the results, so make sure
  2283. it is in your 'PATH'. The file 'your_commentary.txt' is prepended to
  2284. the testsuite summary and should contain any special remarks you have on
  2285. your results or your build environment. Please do not edit the
  2286. testsuite result block or the subject line, as these messages may be
  2287. automatically processed.
  2288. 
  2289. File: gccinstall.info, Node: Final install, Prev: Testing, Up: Installing GCC
  2290. 7 Installing GCC: Final installation
  2291. ************************************
  2292. Now that GCC has been built (and optionally tested), you can install it
  2293. with
  2294. cd OBJDIR && make install
  2295. We strongly recommend to install into a target directory where there
  2296. is no previous version of GCC present. Also, the GNAT runtime should
  2297. not be stripped, as this would break certain features of the debugger
  2298. that depend on this debugging information (catching Ada exceptions for
  2299. instance).
  2300. That step completes the installation of GCC; user level binaries can
  2301. be found in 'PREFIX/bin' where PREFIX is the value you specified with
  2302. the '--prefix' to configure (or '/usr/local' by default). (If you
  2303. specified '--bindir', that directory will be used instead; otherwise, if
  2304. you specified '--exec-prefix', 'EXEC-PREFIX/bin' will be used.) Headers
  2305. for the C++ library are installed in 'PREFIX/include'; libraries in
  2306. 'LIBDIR' (normally 'PREFIX/lib'); internal parts of the compiler in
  2307. 'LIBDIR/gcc' and 'LIBEXECDIR/gcc'; documentation in info format in
  2308. 'INFODIR' (normally 'PREFIX/info').
  2309. When installing cross-compilers, GCC's executables are not only
  2310. installed into 'BINDIR', that is, 'EXEC-PREFIX/bin', but additionally
  2311. into 'EXEC-PREFIX/TARGET-ALIAS/bin', if that directory exists.
  2312. Typically, such "tooldirs" hold target-specific binutils, including
  2313. assembler and linker.
  2314. Installation into a temporary staging area or into a 'chroot' jail
  2315. can be achieved with the command
  2316. make DESTDIR=PATH-TO-ROOTDIR install
  2317. where PATH-TO-ROOTDIR is the absolute path of a directory relative to
  2318. which all installation paths will be interpreted. Note that the
  2319. directory specified by 'DESTDIR' need not exist yet; it will be created
  2320. if necessary.
  2321. There is a subtle point with tooldirs and 'DESTDIR': If you relocate
  2322. a cross-compiler installation with e.g. 'DESTDIR=ROOTDIR', then the
  2323. directory 'ROOTDIR/EXEC-PREFIX/TARGET-ALIAS/bin' will be filled with
  2324. duplicated GCC executables only if it already exists, it will not be
  2325. created otherwise. This is regarded as a feature, not as a bug, because
  2326. it gives slightly more control to the packagers using the 'DESTDIR'
  2327. feature.
  2328. You can install stripped programs and libraries with
  2329. make install-strip
  2330. If you are bootstrapping a released version of GCC then please
  2331. quickly review the build status page for your release, available from
  2332. <http://gcc.gnu.org/buildstat.html>. If your system is not listed for
  2333. the version of GCC that you built, send a note to <gcc@gcc.gnu.org>
  2334. indicating that you successfully built and installed GCC. Include the
  2335. following information:
  2336. * Output from running 'SRCDIR/config.guess'. Do not send that file
  2337. itself, just the one-line output from running it.
  2338. * The output of 'gcc -v' for your newly installed 'gcc'. This tells
  2339. us which version of GCC you built and the options you passed to
  2340. configure.
  2341. * Whether you enabled all languages or a subset of them. If you used
  2342. a full distribution then this information is part of the configure
  2343. options in the output of 'gcc -v', but if you downloaded the "core"
  2344. compiler plus additional front ends then it isn't apparent which
  2345. ones you built unless you tell us about it.
  2346. * If the build was for GNU/Linux, also include:
  2347. * The distribution name and version (e.g., Red Hat 7.1 or Debian
  2348. 2.2.3); this information should be available from
  2349. '/etc/issue'.
  2350. * The version of the Linux kernel, available from 'uname
  2351. --version' or 'uname -a'.
  2352. * The version of glibc you used; for RPM-based systems like Red
  2353. Hat, Mandrake, and SuSE type 'rpm -q glibc' to get the glibc
  2354. version, and on systems like Debian and Progeny use 'dpkg -l
  2355. libc6'.
  2356. For other systems, you can include similar information if you think
  2357. it is relevant.
  2358. * Any other information that you think would be useful to people
  2359. building GCC on the same configuration. The new entry in the build
  2360. status list will include a link to the archived copy of your
  2361. message.
  2362. We'd also like to know if the *note host/target specific installation
  2363. notes: Specific. didn't include your host/target information or if that
  2364. information is incomplete or out of date. Send a note to
  2365. <gcc@gcc.gnu.org> detailing how the information should be changed.
  2366. If you find a bug, please report it following the bug reporting
  2367. guidelines.
  2368. If you want to print the GCC manuals, do 'cd OBJDIR; make dvi'. You
  2369. will need to have 'texi2dvi' (version at least 4.7) and TeX installed.
  2370. This creates a number of '.dvi' files in subdirectories of 'OBJDIR';
  2371. these may be converted for printing with programs such as 'dvips'.
  2372. Alternately, by using 'make pdf' in place of 'make dvi', you can create
  2373. documentation in the form of '.pdf' files; this requires 'texi2pdf',
  2374. which is included with Texinfo version 4.8 and later. You can also buy
  2375. printed manuals from the Free Software Foundation, though such manuals
  2376. may not be for the most recent version of GCC.
  2377. If you would like to generate online HTML documentation, do 'cd
  2378. OBJDIR; make html' and HTML will be generated for the gcc manuals in
  2379. 'OBJDIR/gcc/HTML'.
  2380. 
  2381. File: gccinstall.info, Node: Binaries, Next: Specific, Prev: Installing GCC, Up: Top
  2382. 8 Installing GCC: Binaries
  2383. **************************
  2384. We are often asked about pre-compiled versions of GCC. While we cannot
  2385. provide these for all platforms, below you'll find links to binaries for
  2386. various platforms where creating them by yourself is not easy due to
  2387. various reasons.
  2388. Please note that we did not create these binaries, nor do we support
  2389. them. If you have any problems installing them, please contact their
  2390. makers.
  2391. * AIX:
  2392. * Bull's Open Source Software Archive for for AIX 6 and AIX 7;
  2393. * AIX Open Source Packages (AIX5L AIX 6.1 AIX 7.1).
  2394. * DOS--DJGPP.
  2395. * HP-UX:
  2396. * HP-UX Porting Center;
  2397. * Solaris 2 (SPARC, Intel):
  2398. * OpenCSW
  2399. * macOS:
  2400. * The Homebrew package manager;
  2401. * MacPorts.
  2402. * Microsoft Windows:
  2403. * The Cygwin project;
  2404. * The MinGW and mingw-w64 projects.
  2405. * OpenPKG offers binaries for quite a number of platforms.
  2406. * The GFortran Wiki has links to GNU Fortran binaries for several
  2407. platforms.
  2408. 
  2409. File: gccinstall.info, Node: Specific, Next: Old, Prev: Binaries, Up: Top
  2410. 9 Host/target specific installation notes for GCC
  2411. *************************************************
  2412. Please read this document carefully _before_ installing the GNU Compiler
  2413. Collection on your machine.
  2414. Note that this list of install notes is _not_ a list of supported
  2415. hosts or targets. Not all supported hosts and targets are listed here,
  2416. only the ones that require host-specific or target-specific information
  2417. have to.
  2418. aarch64*-*-*
  2419. ============
  2420. Binutils pre 2.24 does not have support for selecting '-mabi' and does
  2421. not support ILP32. If it is used to build GCC 4.9 or later, GCC will
  2422. not support option '-mabi=ilp32'.
  2423. To enable a workaround for the Cortex-A53 erratum number 835769 by
  2424. default (for all CPUs regardless of -mcpu option given) at configure
  2425. time use the '--enable-fix-cortex-a53-835769' option. This will enable
  2426. the fix by default and can be explicitly disabled during compilation by
  2427. passing the '-mno-fix-cortex-a53-835769' option. Conversely,
  2428. '--disable-fix-cortex-a53-835769' will disable the workaround by
  2429. default. The workaround is disabled by default if neither of
  2430. '--enable-fix-cortex-a53-835769' or '--disable-fix-cortex-a53-835769' is
  2431. given at configure time.
  2432. To enable a workaround for the Cortex-A53 erratum number 843419 by
  2433. default (for all CPUs regardless of -mcpu option given) at configure
  2434. time use the '--enable-fix-cortex-a53-843419' option. This workaround
  2435. is applied at link time. Enabling the workaround will cause GCC to pass
  2436. the relevant option to the linker. It can be explicitly disabled during
  2437. compilation by passing the '-mno-fix-cortex-a53-843419' option.
  2438. Conversely, '--disable-fix-cortex-a53-843419' will disable the
  2439. workaround by default. The workaround is disabled by default if neither
  2440. of '--enable-fix-cortex-a53-843419' or '--disable-fix-cortex-a53-843419'
  2441. is given at configure time.
  2442. To enable Branch Target Identification Mechanism and Return Address
  2443. Signing by default at configure time use the
  2444. '--enable-standard-branch-protection' option. This is equivalent to
  2445. having '-mbranch-protection=standard' during compilation. This can be
  2446. explicitly disabled during compilation by passing the
  2447. '-mbranch-protection=none' option which turns off all types of branch
  2448. protections. Conversely, '--disable-standard-branch-protection' will
  2449. disable both the protections by default. This mechanism is turned off
  2450. by default if neither of the options are given at configure time.
  2451. alpha*-*-*
  2452. ==========
  2453. This section contains general configuration information for all
  2454. Alpha-based platforms using ELF. In addition to reading this section,
  2455. please read all other sections that match your target.
  2456. amd64-*-solaris2*
  2457. =================
  2458. This is a synonym for 'x86_64-*-solaris2*'.
  2459. amdgcn-*-amdhsa
  2460. ===============
  2461. AMD GCN GPU target.
  2462. Instead of GNU Binutils, you will need to install LLVM 6, or later,
  2463. and copy 'bin/llvm-mc' to 'amdgcn-amdhsa/bin/as', 'bin/lld' to
  2464. 'amdgcn-amdhsa/bin/ld', 'bin/llvm-nm' to 'amdgcn-amdhsa/bin/nm', and
  2465. 'bin/llvm-ar' to both 'bin/amdgcn-amdhsa-ar' and
  2466. 'bin/amdgcn-amdhsa-ranlib'.
  2467. Use Newlib (2019-01-16, or newer).
  2468. To run the binaries, install the HSA Runtime from the ROCm Platform,
  2469. and use 'libexec/gcc/amdhsa-amdhsa/VERSION/gcn-run' to launch them on
  2470. the GPU.
  2471. arc-*-elf32
  2472. ===========
  2473. Use 'configure --target=arc-elf32 --with-cpu=CPU
  2474. --enable-languages="c,c++"' to configure GCC, with CPU being one of
  2475. 'arc600', 'arc601', or 'arc700'.
  2476. arc-linux-uclibc
  2477. ================
  2478. Use 'configure --target=arc-linux-uclibc --with-cpu=arc700
  2479. --enable-languages="c,c++"' to configure GCC.
  2480. arm-*-eabi
  2481. ==========
  2482. ARM-family processors.
  2483. Building the Ada frontend commonly fails (an infinite loop executing
  2484. 'xsinfo') if the host compiler is GNAT 4.8. Host compilers built from
  2485. the GNAT 4.6, 4.9 or 5 release branches are known to succeed.
  2486. avr
  2487. ===
  2488. ATMEL AVR-family micro controllers. These are used in embedded
  2489. applications. There are no standard Unix configurations. *Note AVR
  2490. Options: (gcc)AVR Options, for the list of supported MCU types.
  2491. Use 'configure --target=avr --enable-languages="c"' to configure GCC.
  2492. Further installation notes and other useful information about AVR
  2493. tools can also be obtained from:
  2494. * http://www.nongnu.org/avr/
  2495. * http://www.amelek.gda.pl/avr/
  2496. The following error:
  2497. Error: register required
  2498. indicates that you should upgrade to a newer version of the binutils.
  2499. Blackfin
  2500. ========
  2501. The Blackfin processor, an Analog Devices DSP. *Note Blackfin Options:
  2502. (gcc)Blackfin Options,
  2503. More information, and a version of binutils with support for this
  2504. processor, are available at
  2505. <https://sourceforge.net/projects/adi-toolchain/>.
  2506. CR16
  2507. ====
  2508. The CR16 CompactRISC architecture is a 16-bit architecture. This
  2509. architecture is used in embedded applications.
  2510. *Note CR16 Options: (gcc)CR16 Options,
  2511. Use 'configure --target=cr16-elf --enable-languages=c,c++' to
  2512. configure GCC for building a CR16 elf cross-compiler.
  2513. Use 'configure --target=cr16-uclinux --enable-languages=c,c++' to
  2514. configure GCC for building a CR16 uclinux cross-compiler.
  2515. CRIS
  2516. ====
  2517. CRIS is the CPU architecture in Axis Communications ETRAX
  2518. system-on-a-chip series. These are used in embedded applications.
  2519. *Note CRIS Options: (gcc)CRIS Options, for a list of CRIS-specific
  2520. options.
  2521. There are a few different CRIS targets:
  2522. 'cris-axis-elf'
  2523. Mainly for monolithic embedded systems. Includes a multilib for
  2524. the 'v10' core used in 'ETRAX 100 LX'.
  2525. 'cris-axis-linux-gnu'
  2526. A GNU/Linux port for the CRIS architecture, currently targeting
  2527. 'ETRAX 100 LX' by default.
  2528. Pre-packaged tools can be obtained from
  2529. <ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/>. More
  2530. information about this platform is available at
  2531. <http://developer.axis.com/>.
  2532. DOS
  2533. ===
  2534. Please have a look at the binaries page.
  2535. You cannot install GCC by itself on MSDOS; it will not compile under
  2536. any MSDOS compiler except itself. You need to get the complete
  2537. compilation package DJGPP, which includes binaries as well as sources,
  2538. and includes all the necessary compilation tools and libraries.
  2539. epiphany-*-elf
  2540. ==============
  2541. Adapteva Epiphany. This configuration is intended for embedded systems.
  2542. *-*-freebsd*
  2543. ============
  2544. Support for FreeBSD 1 was discontinued in GCC 3.2. Support for FreeBSD
  2545. 2 (and any mutant a.out variants of FreeBSD 3) was discontinued in GCC
  2546. 4.0.
  2547. In order to better utilize FreeBSD base system functionality and
  2548. match the configuration of the system compiler, GCC 4.5 and above as
  2549. well as GCC 4.4 past 2010-06-20 leverage SSP support in libc (which is
  2550. present on FreeBSD 7 or later) and the use of '__cxa_atexit' by default
  2551. (on FreeBSD 6 or later). The use of 'dl_iterate_phdr' inside
  2552. 'libgcc_s.so.1' and boehm-gc (on FreeBSD 7 or later) is enabled by GCC
  2553. 4.5 and above.
  2554. We support FreeBSD using the ELF file format with DWARF 2 debugging
  2555. for all CPU architectures. You may use '-gstabs' instead of '-g', if
  2556. you really want the old debugging format. There are no known issues
  2557. with mixing object files and libraries with different debugging formats.
  2558. Otherwise, this release of GCC should now match more of the
  2559. configuration used in the stock FreeBSD configuration of GCC. In
  2560. particular, '--enable-threads' is now configured by default. However,
  2561. as a general user, do not attempt to replace the system compiler with
  2562. this release. Known to bootstrap and check with good results on FreeBSD
  2563. 7.2-STABLE. In the past, known to bootstrap and check with good results
  2564. on FreeBSD 3.0, 3.4, 4.0, 4.2, 4.3, 4.4, 4.5, 4.8, 4.9 and 5-CURRENT.
  2565. The version of binutils installed in '/usr/bin' probably works with
  2566. this release of GCC. Bootstrapping against the latest GNU binutils
  2567. and/or the version found in '/usr/ports/devel/binutils' has been known
  2568. to enable additional features and improve overall testsuite results.
  2569. However, it is currently known that boehm-gc may not configure properly
  2570. on FreeBSD prior to the FreeBSD 7.0 release with GNU binutils after
  2571. 2.16.1.
  2572. ft32-*-elf
  2573. ==========
  2574. The FT32 processor. This configuration is intended for embedded
  2575. systems.
  2576. h8300-hms
  2577. =========
  2578. Renesas H8/300 series of processors.
  2579. Please have a look at the binaries page.
  2580. The calling convention and structure layout has changed in release
  2581. 2.6. All code must be recompiled. The calling convention now passes
  2582. the first three arguments in function calls in registers. Structures
  2583. are no longer a multiple of 2 bytes.
  2584. hppa*-hp-hpux*
  2585. ==============
  2586. Support for HP-UX version 9 and older was discontinued in GCC 3.4.
  2587. We require using gas/binutils on all hppa platforms. Version 2.19 or
  2588. later is recommended.
  2589. It may be helpful to configure GCC with the '--with-gnu-as' and
  2590. '--with-as=...' options to ensure that GCC can find GAS.
  2591. The HP assembler should not be used with GCC. It is rarely tested and
  2592. may not work. It shouldn't be used with any languages other than C due
  2593. to its many limitations.
  2594. Specifically, '-g' does not work (HP-UX uses a peculiar debugging
  2595. format which GCC does not know about). It also inserts timestamps into
  2596. each object file it creates, causing the 3-stage comparison test to fail
  2597. during a bootstrap. You should be able to continue by saying 'make
  2598. all-host all-target' after getting the failure from 'make'.
  2599. Various GCC features are not supported. For example, it does not
  2600. support weak symbols or alias definitions. As a result, explicit
  2601. template instantiations are required when using C++. This makes it
  2602. difficult if not impossible to build many C++ applications.
  2603. There are two default scheduling models for instructions. These are
  2604. PROCESSOR_7100LC and PROCESSOR_8000. They are selected from the pa-risc
  2605. architecture specified for the target machine when configuring.
  2606. PROCESSOR_8000 is the default. PROCESSOR_7100LC is selected when the
  2607. target is a 'hppa1*' machine.
  2608. The PROCESSOR_8000 model is not well suited to older processors.
  2609. Thus, it is important to completely specify the machine architecture
  2610. when configuring if you want a model other than PROCESSOR_8000. The
  2611. macro TARGET_SCHED_DEFAULT can be defined in BOOT_CFLAGS if a different
  2612. default scheduling model is desired.
  2613. As of GCC 4.0, GCC uses the UNIX 95 namespace for HP-UX 10.10 through
  2614. 11.00, and the UNIX 98 namespace for HP-UX 11.11 and later. This
  2615. namespace change might cause problems when bootstrapping with an earlier
  2616. version of GCC or the HP compiler as essentially the same namespace is
  2617. required for an entire build. This problem can be avoided in a number
  2618. of ways. With HP cc, 'UNIX_STD' can be set to '95' or '98'. Another
  2619. way is to add an appropriate set of predefines to 'CC'. The description
  2620. for the 'munix=' option contains a list of the predefines used with each
  2621. standard.
  2622. More specific information to 'hppa*-hp-hpux*' targets follows.
  2623. hppa*-hp-hpux10
  2624. ===============
  2625. For hpux10.20, we _highly_ recommend you pick up the latest sed patch
  2626. 'PHCO_19798' from HP.
  2627. The C++ ABI has changed incompatibly in GCC 4.0. COMDAT subspaces
  2628. are used for one-only code and data. This resolves many of the previous
  2629. problems in using C++ on this target. However, the ABI is not
  2630. compatible with the one implemented under HP-UX 11 using secondary
  2631. definitions.
  2632. hppa*-hp-hpux11
  2633. ===============
  2634. GCC 3.0 and up support HP-UX 11. GCC 2.95.x is not supported and cannot
  2635. be used to compile GCC 3.0 and up.
  2636. The libffi library haven't been ported to 64-bit HP-UX and doesn't
  2637. build.
  2638. Refer to binaries for information about obtaining precompiled GCC
  2639. binaries for HP-UX. Precompiled binaries must be obtained to build the
  2640. Ada language as it cannot be bootstrapped using C. Ada is only
  2641. available for the 32-bit PA-RISC runtime.
  2642. Starting with GCC 3.4 an ISO C compiler is required to bootstrap.
  2643. The bundled compiler supports only traditional C; you will need either
  2644. HP's unbundled compiler, or a binary distribution of GCC.
  2645. It is possible to build GCC 3.3 starting with the bundled HP
  2646. compiler, but the process requires several steps. GCC 3.3 can then be
  2647. used to build later versions.
  2648. There are several possible approaches to building the distribution.
  2649. Binutils can be built first using the HP tools. Then, the GCC
  2650. distribution can be built. The second approach is to build GCC first
  2651. using the HP tools, then build binutils, then rebuild GCC. There have
  2652. been problems with various binary distributions, so it is best not to
  2653. start from a binary distribution.
  2654. On 64-bit capable systems, there are two distinct targets. Different
  2655. installation prefixes must be used if both are to be installed on the
  2656. same system. The 'hppa[1-2]*-hp-hpux11*' target generates code for the
  2657. 32-bit PA-RISC runtime architecture and uses the HP linker. The
  2658. 'hppa64-hp-hpux11*' target generates 64-bit code for the PA-RISC 2.0
  2659. architecture.
  2660. The script config.guess now selects the target type based on the
  2661. compiler detected during configuration. You must define 'PATH' or 'CC'
  2662. so that configure finds an appropriate compiler for the initial
  2663. bootstrap. When 'CC' is used, the definition should contain the options
  2664. that are needed whenever 'CC' is used.
  2665. Specifically, options that determine the runtime architecture must be
  2666. in 'CC' to correctly select the target for the build. It is also
  2667. convenient to place many other compiler options in 'CC'. For example,
  2668. 'CC="cc -Ac +DA2.0W -Wp,-H16376 -D_CLASSIC_TYPES -D_HPUX_SOURCE"' can be
  2669. used to bootstrap the GCC 3.3 branch with the HP compiler in 64-bit
  2670. K&R/bundled mode. The '+DA2.0W' option will result in the automatic
  2671. selection of the 'hppa64-hp-hpux11*' target. The macro definition table
  2672. of cpp needs to be increased for a successful build with the HP
  2673. compiler. _CLASSIC_TYPES and _HPUX_SOURCE need to be defined when
  2674. building with the bundled compiler, or when using the '-Ac' option.
  2675. These defines aren't necessary with '-Ae'.
  2676. It is best to explicitly configure the 'hppa64-hp-hpux11*' target
  2677. with the '--with-ld=...' option. This overrides the standard search for
  2678. ld. The two linkers supported on this target require different
  2679. commands. The default linker is determined during configuration. As a
  2680. result, it's not possible to switch linkers in the middle of a GCC
  2681. build. This has been reported to sometimes occur in unified builds of
  2682. binutils and GCC.
  2683. A recent linker patch must be installed for the correct operation of
  2684. GCC 3.3 and later. 'PHSS_26559' and 'PHSS_24304' are the oldest linker
  2685. patches that are known to work. They are for HP-UX 11.00 and 11.11,
  2686. respectively. 'PHSS_24303', the companion to 'PHSS_24304', might be
  2687. usable but it hasn't been tested. These patches have been superseded.
  2688. Consult the HP patch database to obtain the currently recommended linker
  2689. patch for your system.
  2690. The patches are necessary for the support of weak symbols on the
  2691. 32-bit port, and for the running of initializers and finalizers. Weak
  2692. symbols are implemented using SOM secondary definition symbols. Prior
  2693. to HP-UX 11, there are bugs in the linker support for secondary symbols.
  2694. The patches correct a problem of linker core dumps creating shared
  2695. libraries containing secondary symbols, as well as various other linking
  2696. issues involving secondary symbols.
  2697. GCC 3.3 uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capabilities to
  2698. run initializers and finalizers on the 64-bit port. The 32-bit port
  2699. uses the linker '+init' and '+fini' options for the same purpose. The
  2700. patches correct various problems with the +init/+fini options, including
  2701. program core dumps. Binutils 2.14 corrects a problem on the 64-bit port
  2702. resulting from HP's non-standard use of the .init and .fini sections for
  2703. array initializers and finalizers.
  2704. Although the HP and GNU linkers are both supported for the
  2705. 'hppa64-hp-hpux11*' target, it is strongly recommended that the HP
  2706. linker be used for link editing on this target.
  2707. At this time, the GNU linker does not support the creation of long
  2708. branch stubs. As a result, it cannot successfully link binaries
  2709. containing branch offsets larger than 8 megabytes. In addition, there
  2710. are problems linking shared libraries, linking executables with
  2711. '-static', and with dwarf2 unwind and exception support. It also
  2712. doesn't provide stubs for internal calls to global functions in shared
  2713. libraries, so these calls cannot be overloaded.
  2714. The HP dynamic loader does not support GNU symbol versioning, so
  2715. symbol versioning is not supported. It may be necessary to disable
  2716. symbol versioning with '--disable-symvers' when using GNU ld.
  2717. POSIX threads are the default. The optional DCE thread library is
  2718. not supported, so '--enable-threads=dce' does not work.
  2719. *-*-linux-gnu
  2720. =============
  2721. Versions of libstdc++-v3 starting with 3.2.1 require bug fixes present
  2722. in glibc 2.2.5 and later. More information is available in the
  2723. libstdc++-v3 documentation.
  2724. i?86-*-linux*
  2725. =============
  2726. As of GCC 3.3, binutils 2.13.1 or later is required for this platform.
  2727. See bug 10877 for more information.
  2728. If you receive Signal 11 errors when building on GNU/Linux, then it
  2729. is possible you have a hardware problem. Further information on this
  2730. can be found on www.bitwizard.nl.
  2731. i?86-*-solaris2*
  2732. ================
  2733. Use this for Solaris 11.3 or later on x86 and x86-64 systems. Starting
  2734. with GCC 4.7, there is also a 64-bit 'amd64-*-solaris2*' or
  2735. 'x86_64-*-solaris2*' configuration that corresponds to
  2736. 'sparcv9-sun-solaris2*'.
  2737. It is recommended that you configure GCC to use the GNU assembler.
  2738. The versions included in Solaris 11.3, from GNU binutils 2.23.1 or newer
  2739. (available as '/usr/bin/gas' and '/usr/gnu/bin/as'), work fine. The
  2740. current version, from GNU binutils 2.34, is known to work. Recent
  2741. versions of the Solaris assembler in '/usr/bin/as' work almost as well,
  2742. though.
  2743. For linking, the Solaris linker is preferred. If you want to use the
  2744. GNU linker instead, the version in Solaris 11.3, from GNU binutils
  2745. 2.23.1 or newer (in '/usr/gnu/bin/ld' and '/usr/bin/gld'), works, as
  2746. does the latest version, from GNU binutils 2.34.
  2747. To use GNU 'as', configure with the options '--with-gnu-as
  2748. --with-as=/usr/gnu/bin/as'. It may be necessary to configure with
  2749. '--without-gnu-ld --with-ld=/usr/ccs/bin/ld' to guarantee use of Solaris
  2750. 'ld'.
  2751. ia64-*-linux
  2752. ============
  2753. IA-64 processor (also known as IPF, or Itanium Processor Family) running
  2754. GNU/Linux.
  2755. If you are using the installed system libunwind library with
  2756. '--with-system-libunwind', then you must use libunwind 0.98 or later.
  2757. None of the following versions of GCC has an ABI that is compatible
  2758. with any of the other versions in this list, with the exception that Red
  2759. Hat 2.96 and Trillian 000171 are compatible with each other: 3.1, 3.0.2,
  2760. 3.0.1, 3.0, Red Hat 2.96, and Trillian 000717. This primarily affects
  2761. C++ programs and programs that create shared libraries. GCC 3.1 or
  2762. later is recommended for compiling linux, the kernel. As of version 3.1
  2763. GCC is believed to be fully ABI compliant, and hence no more major ABI
  2764. changes are expected.
  2765. ia64-*-hpux*
  2766. ============
  2767. Building GCC on this target requires the GNU Assembler. The bundled HP
  2768. assembler will not work. To prevent GCC from using the wrong assembler,
  2769. the option '--with-gnu-as' may be necessary.
  2770. The GCC libunwind library has not been ported to HPUX. This means
  2771. that for GCC versions 3.2.3 and earlier, '--enable-libunwind-exceptions'
  2772. is required to build GCC. For GCC 3.3 and later, this is the default.
  2773. For gcc 3.4.3 and later, '--enable-libunwind-exceptions' is removed and
  2774. the system libunwind library will always be used.
  2775. *-ibm-aix*
  2776. ==========
  2777. Support for AIX version 3 and older was discontinued in GCC 3.4.
  2778. Support for AIX version 4.2 and older was discontinued in GCC 4.5.
  2779. "out of memory" bootstrap failures may indicate a problem with
  2780. process resource limits (ulimit). Hard limits are configured in the
  2781. '/etc/security/limits' system configuration file.
  2782. GCC 4.9 and above require a C++ compiler for bootstrap. IBM VAC++ /
  2783. xlC cannot bootstrap GCC. xlc can bootstrap an older version of GCC and
  2784. G++ can bootstrap recent releases of GCC.
  2785. GCC can bootstrap with recent versions of IBM XLC, but bootstrapping
  2786. with an earlier release of GCC is recommended. Bootstrapping with XLC
  2787. requires a larger data segment, which can be enabled through the
  2788. LDR_CNTRL environment variable, e.g.,
  2789. % LDR_CNTRL=MAXDATA=0x50000000
  2790. % export LDR_CNTRL
  2791. One can start with a pre-compiled version of GCC to build from
  2792. sources. One may delete GCC's "fixed" header files when starting with a
  2793. version of GCC built for an earlier release of AIX.
  2794. To speed up the configuration phases of bootstrapping and installing
  2795. GCC, one may use GNU Bash instead of AIX '/bin/sh', e.g.,
  2796. % CONFIG_SHELL=/opt/freeware/bin/bash
  2797. % export CONFIG_SHELL
  2798. and then proceed as described in the build instructions, where we
  2799. strongly recommend specifying an absolute path to invoke
  2800. SRCDIR/configure.
  2801. Because GCC on AIX is built as a 32-bit executable by default,
  2802. (although it can generate 64-bit programs) the GMP and MPFR libraries
  2803. required by gfortran must be 32-bit libraries. Building GMP and MPFR as
  2804. static archive libraries works better than shared libraries.
  2805. Errors involving 'alloca' when building GCC generally are due to an
  2806. incorrect definition of 'CC' in the Makefile or mixing files compiled
  2807. with the native C compiler and GCC. During the stage1 phase of the
  2808. build, the native AIX compiler *must* be invoked as 'cc' (not 'xlc').
  2809. Once 'configure' has been informed of 'xlc', one needs to use 'make
  2810. distclean' to remove the configure cache files and ensure that 'CC'
  2811. environment variable does not provide a definition that will confuse
  2812. 'configure'. If this error occurs during stage2 or later, then the
  2813. problem most likely is the version of Make (see above).
  2814. The native 'as' and 'ld' are recommended for bootstrapping on AIX.
  2815. The GNU Assembler, GNU Linker, and GNU Binutils version 2.20 is the
  2816. minimum level that supports bootstrap on AIX 5. The GNU Assembler has
  2817. not been updated to support AIX 6 or AIX 7. The native AIX tools do
  2818. interoperate with GCC.
  2819. AIX 7.1 added partial support for DWARF debugging, but full support
  2820. requires AIX 7.1 TL03 SP7 that supports additional DWARF sections and
  2821. fixes a bug in the assembler. AIX 7.1 TL03 SP5 distributed a version of
  2822. libm.a missing important symbols; a fix for IV77796 will be included in
  2823. SP6.
  2824. AIX 5.3 TL10, AIX 6.1 TL05 and AIX 7.1 TL00 introduced an AIX
  2825. assembler change that sometimes produces corrupt assembly files causing
  2826. AIX linker errors. The bug breaks GCC bootstrap on AIX and can cause
  2827. compilation failures with existing GCC installations. An AIX iFix for
  2828. AIX 5.3 is available (APAR IZ98385 for AIX 5.3 TL10, APAR IZ98477 for
  2829. AIX 5.3 TL11 and IZ98134 for AIX 5.3 TL12). AIX 5.3 TL11 SP8, AIX 5.3
  2830. TL12 SP5, AIX 6.1 TL04 SP11, AIX 6.1 TL05 SP7, AIX 6.1 TL06 SP6, AIX 6.1
  2831. TL07 and AIX 7.1 TL01 should include the fix.
  2832. Building 'libstdc++.a' requires a fix for an AIX Assembler bug APAR
  2833. IY26685 (AIX 4.3) or APAR IY25528 (AIX 5.1). It also requires a fix for
  2834. another AIX Assembler bug and a co-dependent AIX Archiver fix referenced
  2835. as APAR IY53606 (AIX 5.2) or as APAR IY54774 (AIX 5.1)
  2836. 'libstdc++' in GCC 3.4 increments the major version number of the
  2837. shared object and GCC installation places the 'libstdc++.a' shared
  2838. library in a common location which will overwrite the and GCC 3.3
  2839. version of the shared library. Applications either need to be re-linked
  2840. against the new shared library or the GCC 3.1 and GCC 3.3 versions of
  2841. the 'libstdc++' shared object needs to be available to the AIX runtime
  2842. loader. The GCC 3.1 'libstdc++.so.4', if present, and GCC 3.3
  2843. 'libstdc++.so.5' shared objects can be installed for runtime dynamic
  2844. loading using the following steps to set the 'F_LOADONLY' flag in the
  2845. shared object for _each_ multilib 'libstdc++.a' installed:
  2846. Extract the shared objects from the currently installed 'libstdc++.a'
  2847. archive:
  2848. % ar -x libstdc++.a libstdc++.so.4 libstdc++.so.5
  2849. Enable the 'F_LOADONLY' flag so that the shared object will be
  2850. available for runtime dynamic loading, but not linking:
  2851. % strip -e libstdc++.so.4 libstdc++.so.5
  2852. Archive the runtime-only shared object in the GCC 3.4 'libstdc++.a'
  2853. archive:
  2854. % ar -q libstdc++.a libstdc++.so.4 libstdc++.so.5
  2855. Eventually, the '--with-aix-soname=svr4' configure option may drop
  2856. the need for this procedure for libraries that support it.
  2857. Linking executables and shared libraries may produce warnings of
  2858. duplicate symbols. The assembly files generated by GCC for AIX always
  2859. have included multiple symbol definitions for certain global variable
  2860. and function declarations in the original program. The warnings should
  2861. not prevent the linker from producing a correct library or runnable
  2862. executable.
  2863. AIX 4.3 utilizes a "large format" archive to support both 32-bit and
  2864. 64-bit object modules. The routines provided in AIX 4.3.0 and AIX 4.3.1
  2865. to parse archive libraries did not handle the new format correctly.
  2866. These routines are used by GCC and result in error messages during
  2867. linking such as "not a COFF file". The version of the routines shipped
  2868. with AIX 4.3.1 should work for a 32-bit environment. The '-g' option of
  2869. the archive command may be used to create archives of 32-bit objects
  2870. using the original "small format". A correct version of the routines is
  2871. shipped with AIX 4.3.2 and above.
  2872. Some versions of the AIX binder (linker) can fail with a relocation
  2873. overflow severe error when the '-bbigtoc' option is used to link
  2874. GCC-produced object files into an executable that overflows the TOC. A
  2875. fix for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC)
  2876. is available from IBM Customer Support and from its
  2877. techsupport.services.ibm.com website as PTF U455193.
  2878. The AIX 4.3.2.1 linker (bos.rte.bind_cmds Level 4.3.2.1) will dump
  2879. core with a segmentation fault when invoked by any version of GCC. A
  2880. fix for APAR IX87327 is available from IBM Customer Support and from its
  2881. techsupport.services.ibm.com website as PTF U461879. This fix is
  2882. incorporated in AIX 4.3.3 and above.
  2883. The initial assembler shipped with AIX 4.3.0 generates incorrect
  2884. object files. A fix for APAR IX74254 (64BIT DISASSEMBLED OUTPUT FROM
  2885. COMPILER FAILS TO ASSEMBLE/BIND) is available from IBM Customer Support
  2886. and from its techsupport.services.ibm.com website as PTF U453956. This
  2887. fix is incorporated in AIX 4.3.1 and above.
  2888. AIX provides National Language Support (NLS). Compilers and
  2889. assemblers use NLS to support locale-specific representations of various
  2890. data formats including floating-point numbers (e.g., '.' vs ',' for
  2891. separating decimal fractions). There have been problems reported where
  2892. GCC does not produce the same floating-point formats that the assembler
  2893. expects. If one encounters this problem, set the 'LANG' environment
  2894. variable to 'C' or 'En_US'.
  2895. A default can be specified with the '-mcpu=CPU_TYPE' switch and using
  2896. the configure option '--with-cpu-CPU_TYPE'.
  2897. iq2000-*-elf
  2898. ============
  2899. Vitesse IQ2000 processors. These are used in embedded applications.
  2900. There are no standard Unix configurations.
  2901. lm32-*-elf
  2902. ==========
  2903. Lattice Mico32 processor. This configuration is intended for embedded
  2904. systems.
  2905. lm32-*-uclinux
  2906. ==============
  2907. Lattice Mico32 processor. This configuration is intended for embedded
  2908. systems running uClinux.
  2909. m32c-*-elf
  2910. ==========
  2911. Renesas M32C processor. This configuration is intended for embedded
  2912. systems.
  2913. m32r-*-elf
  2914. ==========
  2915. Renesas M32R processor. This configuration is intended for embedded
  2916. systems.
  2917. m68k-*-*
  2918. ========
  2919. By default, 'm68k-*-elf*', 'm68k-*-rtems', 'm68k-*-uclinux' and
  2920. 'm68k-*-linux' build libraries for both M680x0 and ColdFire processors.
  2921. If you only need the M680x0 libraries, you can omit the ColdFire ones by
  2922. passing '--with-arch=m68k' to 'configure'. Alternatively, you can omit
  2923. the M680x0 libraries by passing '--with-arch=cf' to 'configure'. These
  2924. targets default to 5206 or 5475 code as appropriate for the target
  2925. system when configured with '--with-arch=cf' and 68020 code otherwise.
  2926. The 'm68k-*-netbsd' and 'm68k-*-openbsd' targets also support the
  2927. '--with-arch' option. They will generate ColdFire CFV4e code when
  2928. configured with '--with-arch=cf' and 68020 code otherwise.
  2929. You can override the default processors listed above by configuring
  2930. with '--with-cpu=TARGET'. This TARGET can either be a '-mcpu' argument
  2931. or one of the following values: 'm68000', 'm68010', 'm68020', 'm68030',
  2932. 'm68040', 'm68060', 'm68020-40' and 'm68020-60'.
  2933. GCC requires at least binutils version 2.17 on these targets.
  2934. m68k-*-uclinux
  2935. ==============
  2936. GCC 4.3 changed the uClinux configuration so that it uses the
  2937. 'm68k-linux-gnu' ABI rather than the 'm68k-elf' ABI. It also added
  2938. improved support for C++ and flat shared libraries, both of which were
  2939. ABI changes.
  2940. microblaze-*-elf
  2941. ================
  2942. Xilinx MicroBlaze processor. This configuration is intended for
  2943. embedded systems.
  2944. mips-*-*
  2945. ========
  2946. If on a MIPS system you get an error message saying "does not have gp
  2947. sections for all it's [sic] sectons [sic]", don't worry about it. This
  2948. happens whenever you use GAS with the MIPS linker, but there is not
  2949. really anything wrong, and it is okay to use the output file. You can
  2950. stop such warnings by installing the GNU linker.
  2951. It would be nice to extend GAS to produce the gp tables, but they are
  2952. optional, and there should not be a warning about their absence.
  2953. The libstdc++ atomic locking routines for MIPS targets requires MIPS
  2954. II and later. A patch went in just after the GCC 3.3 release to make
  2955. 'mips*-*-*' use the generic implementation instead. You can also
  2956. configure for 'mipsel-elf' as a workaround. The 'mips*-*-linux*' target
  2957. continues to use the MIPS II routines. More work on this is expected in
  2958. future releases.
  2959. The built-in '__sync_*' functions are available on MIPS II and later
  2960. systems and others that support the 'll', 'sc' and 'sync' instructions.
  2961. This can be overridden by passing '--with-llsc' or '--without-llsc' when
  2962. configuring GCC. Since the Linux kernel emulates these instructions if
  2963. they are missing, the default for 'mips*-*-linux*' targets is
  2964. '--with-llsc'. The '--with-llsc' and '--without-llsc' configure options
  2965. may be overridden at compile time by passing the '-mllsc' or '-mno-llsc'
  2966. options to the compiler.
  2967. MIPS systems check for division by zero (unless
  2968. '-mno-check-zero-division' is passed to the compiler) by generating
  2969. either a conditional trap or a break instruction. Using trap results in
  2970. smaller code, but is only supported on MIPS II and later. Also, some
  2971. versions of the Linux kernel have a bug that prevents trap from
  2972. generating the proper signal ('SIGFPE'). To enable the use of break,
  2973. use the '--with-divide=breaks' 'configure' option when configuring GCC.
  2974. The default is to use traps on systems that support them.
  2975. moxie-*-elf
  2976. ===========
  2977. The moxie processor.
  2978. msp430-*-elf*
  2979. =============
  2980. TI MSP430 processor. This configuration is intended for embedded
  2981. systems.
  2982. 'msp430-*-elf' is the standard configuration with most GCC features
  2983. enabled by default.
  2984. 'msp430-*-elfbare' is tuned for a bare-metal environment, and
  2985. disables features related to shared libraries and other functionality
  2986. not used for this device. This reduces code and data usage of the GCC
  2987. libraries, resulting in a minimal run-time environment by default.
  2988. Features disabled by default include:
  2989. * transactional memory
  2990. * __cxa_atexit
  2991. nds32le-*-elf
  2992. =============
  2993. Andes NDS32 target in little endian mode.
  2994. nds32be-*-elf
  2995. =============
  2996. Andes NDS32 target in big endian mode.
  2997. nvptx-*-none
  2998. ============
  2999. Nvidia PTX target.
  3000. Instead of GNU binutils, you will need to install nvptx-tools. Tell
  3001. GCC where to find it:
  3002. '--with-build-time-tools=[install-nvptx-tools]/nvptx-none/bin'.
  3003. You will need newlib 3.0 git revision
  3004. cd31fbb2aea25f94d7ecedc9db16dfc87ab0c316 or later. It can be
  3005. automatically built together with GCC. For this, add a symbolic link to
  3006. nvptx-newlib's 'newlib' directory to the directory containing the GCC
  3007. sources.
  3008. Use the '--disable-sjlj-exceptions' and
  3009. '--enable-newlib-io-long-long' options when configuring.
  3010. or1k-*-elf
  3011. ==========
  3012. The OpenRISC 1000 32-bit processor with delay slots. This configuration
  3013. is intended for embedded systems.
  3014. or1k-*-linux
  3015. ============
  3016. The OpenRISC 1000 32-bit processor with delay slots.
  3017. powerpc-*-*
  3018. ===========
  3019. You can specify a default version for the '-mcpu=CPU_TYPE' switch by
  3020. using the configure option '--with-cpu-CPU_TYPE'.
  3021. You will need GNU binutils 2.20 or newer.
  3022. powerpc-*-darwin*
  3023. =================
  3024. PowerPC running Darwin (Mac OS X kernel).
  3025. Pre-installed versions of Mac OS X may not include any developer
  3026. tools, meaning that you will not be able to build GCC from source. Tool
  3027. binaries are available at <https://opensource.apple.com>.
  3028. This version of GCC requires at least cctools-590.36. The
  3029. cctools-590.36 package referenced from
  3030. <http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html> will not work on
  3031. systems older than 10.3.9 (aka darwin7.9.0).
  3032. powerpc-*-elf
  3033. =============
  3034. PowerPC system in big endian mode, running System V.4.
  3035. powerpc*-*-linux-gnu*
  3036. =====================
  3037. PowerPC system in big endian mode running Linux.
  3038. powerpc-*-netbsd*
  3039. =================
  3040. PowerPC system in big endian mode running NetBSD.
  3041. powerpc-*-eabisim
  3042. =================
  3043. Embedded PowerPC system in big endian mode for use in running under the
  3044. PSIM simulator.
  3045. powerpc-*-eabi
  3046. ==============
  3047. Embedded PowerPC system in big endian mode.
  3048. powerpcle-*-elf
  3049. ===============
  3050. PowerPC system in little endian mode, running System V.4.
  3051. powerpcle-*-eabisim
  3052. ===================
  3053. Embedded PowerPC system in little endian mode for use in running under
  3054. the PSIM simulator.
  3055. powerpcle-*-eabi
  3056. ================
  3057. Embedded PowerPC system in little endian mode.
  3058. rl78-*-elf
  3059. ==========
  3060. The Renesas RL78 processor. This configuration is intended for embedded
  3061. systems.
  3062. riscv32-*-elf
  3063. =============
  3064. The RISC-V RV32 instruction set. This configuration is intended for
  3065. embedded systems. This (and all other RISC-V) targets require the
  3066. binutils 2.30 release.
  3067. riscv32-*-linux
  3068. ===============
  3069. The RISC-V RV32 instruction set running GNU/Linux. This (and all other
  3070. RISC-V) targets require the binutils 2.30 release.
  3071. riscv64-*-elf
  3072. =============
  3073. The RISC-V RV64 instruction set. This configuration is intended for
  3074. embedded systems. This (and all other RISC-V) targets require the
  3075. binutils 2.30 release.
  3076. riscv64-*-linux
  3077. ===============
  3078. The RISC-V RV64 instruction set running GNU/Linux. This (and all other
  3079. RISC-V) targets require the binutils 2.30 release.
  3080. rx-*-elf
  3081. ========
  3082. The Renesas RX processor.
  3083. s390-*-linux*
  3084. =============
  3085. S/390 system running GNU/Linux for S/390.
  3086. s390x-*-linux*
  3087. ==============
  3088. zSeries system (64-bit) running GNU/Linux for zSeries.
  3089. s390x-ibm-tpf*
  3090. ==============
  3091. zSeries system (64-bit) running TPF. This platform is supported as
  3092. cross-compilation target only.
  3093. *-*-solaris2*
  3094. =============
  3095. Support for Solaris 10 has been removed in GCC 10. Support for Solaris
  3096. 9 has been removed in GCC 5. Support for Solaris 8 has been removed in
  3097. GCC 4.8. Support for Solaris 7 has been removed in GCC 4.6.
  3098. Solaris 11.3 provides GCC 4.5.2, 4.7.3, and 4.8.2 as
  3099. '/usr/gcc/4.5/bin/gcc' or similar. Newer Solaris versions provide one
  3100. or more of GCC 5, 7, and 9. Alternatively, you can install a pre-built
  3101. GCC to bootstrap and install GCC. See the binaries page for details.
  3102. The Solaris 2 '/bin/sh' will often fail to configure 'libstdc++-v3'.
  3103. We therefore recommend using the following initial sequence of commands
  3104. % CONFIG_SHELL=/bin/ksh
  3105. % export CONFIG_SHELL
  3106. and proceed as described in the configure instructions. In addition we
  3107. strongly recommend specifying an absolute path to invoke
  3108. 'SRCDIR/configure'.
  3109. In Solaris 11, you need to check for 'system/header',
  3110. 'system/linker', and 'developer/assembler' packages.
  3111. Trying to use the linker and other tools in '/usr/ucb' to install GCC
  3112. has been observed to cause trouble. For example, the linker may hang
  3113. indefinitely. The fix is to remove '/usr/ucb' from your 'PATH'.
  3114. The build process works more smoothly with the legacy Solaris tools
  3115. so, if you have '/usr/xpg4/bin' in your 'PATH', we recommend that you
  3116. place '/usr/bin' before '/usr/xpg4/bin' for the duration of the build.
  3117. We recommend the use of the Solaris assembler or the GNU assembler,
  3118. in conjunction with the Solaris linker. The GNU 'as' versions included
  3119. in Solaris 11.3, from GNU binutils 2.23.1 or newer (in '/usr/bin/gas'
  3120. and '/usr/gnu/bin/as'), are known to work. The current version, from
  3121. GNU binutils 2.34, is known to work as well. Note that your mileage may
  3122. vary if you use a combination of the GNU tools and the Solaris tools:
  3123. while the combination GNU 'as' + Solaris 'ld' should reasonably work,
  3124. the reverse combination Solaris 'as' + GNU 'ld' may fail to build or
  3125. cause memory corruption at runtime in some cases for C++ programs. GNU
  3126. 'ld' usually works as well. Again, the current version (2.34) is known
  3127. to work, but generally lacks platform specific features, so better stay
  3128. with Solaris 'ld'. To use the LTO linker plugin ('-fuse-linker-plugin')
  3129. with GNU 'ld', GNU binutils _must_ be configured with
  3130. '--enable-largefile'.
  3131. To enable symbol versioning in 'libstdc++' with the Solaris linker,
  3132. you need to have any version of GNU 'c++filt', which is part of GNU
  3133. binutils. 'libstdc++' symbol versioning will be disabled if no
  3134. appropriate version is found. Solaris 'c++filt' from the Solaris Studio
  3135. compilers does _not_ work.
  3136. The versions of the GNU Multiple Precision Library (GMP), the MPFR
  3137. library and the MPC library bundled with Solaris 11.3 and later are
  3138. usually recent enough to match GCC's requirements. There are two
  3139. caveats:
  3140. * While the version of the GMP library in Solaris 11.3 works with
  3141. GCC, you need to configure with
  3142. '--with-gmp-include=/usr/include/gmp'.
  3143. * The version of the MPFR libary included in Solaris 11.3 is too old;
  3144. you need to provide a more recent one.
  3145. sparc*-*-*
  3146. ==========
  3147. This section contains general configuration information for all
  3148. SPARC-based platforms. In addition to reading this section, please read
  3149. all other sections that match your target.
  3150. Newer versions of the GNU Multiple Precision Library (GMP), the MPFR
  3151. library and the MPC library are known to be miscompiled by earlier
  3152. versions of GCC on these platforms. We therefore recommend the use of
  3153. the exact versions of these libraries listed as minimal versions in the
  3154. prerequisites.
  3155. sparc-sun-solaris2*
  3156. ===================
  3157. When GCC is configured to use GNU binutils 2.14 or later, the binaries
  3158. produced are smaller than the ones produced using Solaris native tools;
  3159. this difference is quite significant for binaries containing debugging
  3160. information.
  3161. Starting with Solaris 7, the operating system is capable of executing
  3162. 64-bit SPARC V9 binaries. GCC 3.1 and later properly supports this; the
  3163. '-m64' option enables 64-bit code generation. However, if all you want
  3164. is code tuned for the UltraSPARC CPU, you should try the
  3165. '-mtune=ultrasparc' option instead, which produces code that, unlike
  3166. full 64-bit code, can still run on non-UltraSPARC machines.
  3167. When configuring the GNU Multiple Precision Library (GMP), the MPFR
  3168. library or the MPC library on a Solaris 7 or later system, the canonical
  3169. target triplet must be specified as the 'build' parameter on the
  3170. configure line. This target triplet can be obtained by invoking
  3171. './config.guess' in the toplevel source directory of GCC (and not that
  3172. of GMP or MPFR or MPC). For example on a Solaris 11 system:
  3173. % ./configure --build=sparc-sun-solaris2.11 --prefix=xxx
  3174. sparc-*-linux*
  3175. ==============
  3176. sparc64-*-solaris2*
  3177. ===================
  3178. When configuring a 64-bit-default GCC on Solaris/SPARC, you must use a
  3179. build compiler that generates 64-bit code, either by default or by
  3180. specifying 'CC='gcc -m64' CXX='gcc-m64'' to 'configure'. Additionally,
  3181. you _must_ pass '--build=sparc64-sun-solaris2.11' or
  3182. '--build=sparcv9-sun-solaris2.11' because 'config.guess' misdetects this
  3183. situation, which can cause build failures.
  3184. When configuring the GNU Multiple Precision Library (GMP), the MPFR
  3185. library or the MPC library, the canonical target triplet must be
  3186. specified as the 'build' parameter on the configure line. For example
  3187. on a Solaris 11 system:
  3188. % ./configure --build=sparc64-sun-solaris2.11 --prefix=xxx
  3189. sparcv9-*-solaris2*
  3190. ===================
  3191. This is a synonym for 'sparc64-*-solaris2*'.
  3192. c6x-*-*
  3193. =======
  3194. The C6X family of processors. This port requires binutils-2.22 or
  3195. newer.
  3196. tilegx-*-linux*
  3197. ===============
  3198. The TILE-Gx processor in little endian mode, running GNU/Linux. This
  3199. port requires binutils-2.22 or newer.
  3200. tilegxbe-*-linux*
  3201. =================
  3202. The TILE-Gx processor in big endian mode, running GNU/Linux. This port
  3203. requires binutils-2.23 or newer.
  3204. tilepro-*-linux*
  3205. ================
  3206. The TILEPro processor running GNU/Linux. This port requires
  3207. binutils-2.22 or newer.
  3208. visium-*-elf
  3209. ============
  3210. CDS VISIUMcore processor. This configuration is intended for embedded
  3211. systems.
  3212. *-*-vxworks*
  3213. ============
  3214. Support for VxWorks is in flux. At present GCC supports _only_ the very
  3215. recent VxWorks 5.5 (aka Tornado 2.2) release, and only on PowerPC. We
  3216. welcome patches for other architectures supported by VxWorks 5.5.
  3217. Support for VxWorks AE would also be welcome; we believe this is merely
  3218. a matter of writing an appropriate "configlette" (see below). We are
  3219. not interested in supporting older, a.out or COFF-based, versions of
  3220. VxWorks in GCC 3.
  3221. VxWorks comes with an older version of GCC installed in
  3222. '$WIND_BASE/host'; we recommend you do not overwrite it. Choose an
  3223. installation PREFIX entirely outside $WIND_BASE. Before running
  3224. 'configure', create the directories 'PREFIX' and 'PREFIX/bin'. Link or
  3225. copy the appropriate assembler, linker, etc. into 'PREFIX/bin', and set
  3226. your PATH to include that directory while running both 'configure' and
  3227. 'make'.
  3228. You must give 'configure' the '--with-headers=$WIND_BASE/target/h'
  3229. switch so that it can find the VxWorks system headers. Since VxWorks is
  3230. a cross compilation target only, you must also specify
  3231. '--target=TARGET'. 'configure' will attempt to create the directory
  3232. 'PREFIX/TARGET/sys-include' and copy files into it; make sure the user
  3233. running 'configure' has sufficient privilege to do so.
  3234. GCC's exception handling runtime requires a special "configlette"
  3235. module, 'contrib/gthr_supp_vxw_5x.c'. Follow the instructions in that
  3236. file to add the module to your kernel build. (Future versions of
  3237. VxWorks will incorporate this module.)
  3238. x86_64-*-*, amd64-*-*
  3239. =====================
  3240. GCC supports the x86-64 architecture implemented by the AMD64 processor
  3241. (amd64-*-* is an alias for x86_64-*-*) on GNU/Linux, FreeBSD and NetBSD.
  3242. On GNU/Linux the default is a bi-arch compiler which is able to generate
  3243. both 64-bit x86-64 and 32-bit x86 code (via the '-m32' switch).
  3244. x86_64-*-solaris2*
  3245. ==================
  3246. GCC also supports the x86-64 architecture implemented by the AMD64
  3247. processor ('amd64-*-*' is an alias for 'x86_64-*-*') on Solaris 10 or
  3248. later. Unlike other systems, without special options a bi-arch compiler
  3249. is built which generates 32-bit code by default, but can generate 64-bit
  3250. x86-64 code with the '-m64' switch. Since GCC 4.7, there is also a
  3251. configuration that defaults to 64-bit code, but can generate 32-bit code
  3252. with '-m32'. To configure and build this way, you have to provide all
  3253. support libraries like 'libgmp' as 64-bit code, configure with
  3254. '--target=x86_64-pc-solaris2.11' and 'CC=gcc -m64'.
  3255. xtensa*-*-elf
  3256. =============
  3257. This target is intended for embedded Xtensa systems using the 'newlib' C
  3258. library. It uses ELF but does not support shared objects.
  3259. Designed-defined instructions specified via the Tensilica Instruction
  3260. Extension (TIE) language are only supported through inline assembly.
  3261. The Xtensa configuration information must be specified prior to
  3262. building GCC. The 'include/xtensa-config.h' header file contains the
  3263. configuration information. If you created your own Xtensa configuration
  3264. with the Xtensa Processor Generator, the downloaded files include a
  3265. customized copy of this header file, which you can use to replace the
  3266. default header file.
  3267. xtensa*-*-linux*
  3268. ================
  3269. This target is for Xtensa systems running GNU/Linux. It supports ELF
  3270. shared objects and the GNU C library (glibc). It also generates
  3271. position-independent code (PIC) regardless of whether the '-fpic' or
  3272. '-fPIC' options are used. In other respects, this target is the same as
  3273. the 'xtensa*-*-elf' target.
  3274. Microsoft Windows
  3275. =================
  3276. Intel 16-bit versions
  3277. ---------------------
  3278. The 16-bit versions of Microsoft Windows, such as Windows 3.1, are not
  3279. supported.
  3280. However, the 32-bit port has limited support for Microsoft Windows
  3281. 3.11 in the Win32s environment, as a target only. See below.
  3282. Intel 32-bit versions
  3283. ---------------------
  3284. The 32-bit versions of Windows, including Windows 95, Windows NT,
  3285. Windows XP, and Windows Vista, are supported by several different target
  3286. platforms. These targets differ in which Windows subsystem they target
  3287. and which C libraries are used.
  3288. * Cygwin *-*-cygwin: Cygwin provides a user-space Linux API emulation
  3289. layer in the Win32 subsystem.
  3290. * MinGW *-*-mingw32: MinGW is a native GCC port for the Win32
  3291. subsystem that provides a subset of POSIX.
  3292. * MKS i386-pc-mks: NuTCracker from MKS. See
  3293. <https://www.mkssoftware.com> for more information.
  3294. Intel 64-bit versions
  3295. ---------------------
  3296. GCC contains support for x86-64 using the mingw-w64 runtime library,
  3297. available from <http://mingw-w64.org/doku.php>. This library should be
  3298. used with the target triple x86_64-pc-mingw32.
  3299. Presently Windows for Itanium is not supported.
  3300. Windows CE
  3301. ----------
  3302. Windows CE is supported as a target only on Hitachi SuperH
  3303. (sh-wince-pe), and MIPS (mips-wince-pe).
  3304. Other Windows Platforms
  3305. -----------------------
  3306. GCC no longer supports Windows NT on the Alpha or PowerPC.
  3307. GCC no longer supports the Windows POSIX subsystem. However, it does
  3308. support the Interix subsystem. See above.
  3309. Old target names including *-*-winnt and *-*-windowsnt are no longer
  3310. used.
  3311. PW32 (i386-pc-pw32) support was never completed, and the project
  3312. seems to be inactive. See <http://pw32.sourceforge.net/> for more
  3313. information.
  3314. UWIN support has been removed due to a lack of maintenance.
  3315. *-*-cygwin
  3316. ==========
  3317. Ports of GCC are included with the Cygwin environment.
  3318. GCC will build under Cygwin without modification; it does not build
  3319. with Microsoft's C++ compiler and there are no plans to make it do so.
  3320. The Cygwin native compiler can be configured to target any 32-bit x86
  3321. cpu architecture desired; the default is i686-pc-cygwin. It should be
  3322. used with as up-to-date a version of binutils as possible; use either
  3323. the latest official GNU binutils release in the Cygwin distribution, or
  3324. version 2.20 or above if building your own.
  3325. *-*-mingw32
  3326. ===========
  3327. GCC will build with and support only MinGW runtime 3.12 and later.
  3328. Earlier versions of headers are incompatible with the new default
  3329. semantics of 'extern inline' in '-std=c99' and '-std=gnu99' modes.
  3330. Older systems
  3331. =============
  3332. GCC contains support files for many older (1980s and early 1990s) Unix
  3333. variants. For the most part, support for these systems has not been
  3334. deliberately removed, but it has not been maintained for several years
  3335. and may suffer from bitrot.
  3336. Starting with GCC 3.1, each release has a list of "obsoleted"
  3337. systems. Support for these systems is still present in that release,
  3338. but 'configure' will fail unless the '--enable-obsolete' option is
  3339. given. Unless a maintainer steps forward, support for these systems
  3340. will be removed from the next release of GCC.
  3341. Support for old systems as hosts for GCC can cause problems if the
  3342. workarounds for compiler, library and operating system bugs affect the
  3343. cleanliness or maintainability of the rest of GCC. In some cases, to
  3344. bring GCC up on such a system, if still possible with current GCC, may
  3345. require first installing an old version of GCC which did work on that
  3346. system, and using it to compile a more recent GCC, to avoid bugs in the
  3347. vendor compiler. Old releases of GCC 1 and GCC 2 are available in the
  3348. 'old-releases' directory on the GCC mirror sites. Header bugs may
  3349. generally be avoided using 'fixincludes', but bugs or deficiencies in
  3350. libraries and the operating system may still cause problems.
  3351. Support for older systems as targets for cross-compilation is less
  3352. problematic than support for them as hosts for GCC; if an enthusiast
  3353. wishes to make such a target work again (including resurrecting any of
  3354. the targets that never worked with GCC 2, starting from the last version
  3355. before they were removed), patches following the usual requirements
  3356. would be likely to be accepted, since they should not affect the support
  3357. for more modern targets.
  3358. For some systems, old versions of GNU binutils may also be useful,
  3359. and are available from 'pub/binutils/old-releases' on sourceware.org
  3360. mirror sites.
  3361. Some of the information on specific systems above relates to such
  3362. older systems, but much of the information about GCC on such systems
  3363. (which may no longer be applicable to current GCC) is to be found in the
  3364. GCC texinfo manual.
  3365. all ELF targets (SVR4, Solaris 2, etc.)
  3366. =======================================
  3367. C++ support is significantly better on ELF targets if you use the GNU
  3368. linker; duplicate copies of inlines, vtables and template instantiations
  3369. will be discarded automatically.
  3370. 
  3371. File: gccinstall.info, Node: Old, Next: GNU Free Documentation License, Prev: Specific, Up: Top
  3372. 10 Old installation documentation
  3373. *********************************
  3374. Note most of this information is out of date and superseded by the
  3375. previous chapters of this manual. It is provided for historical
  3376. reference only, because of a lack of volunteers to merge it into the
  3377. main manual.
  3378. * Menu:
  3379. * Configurations:: Configurations Supported by GCC.
  3380. Here is the procedure for installing GCC on a GNU or Unix system.
  3381. 1. If you have chosen a configuration for GCC which requires other GNU
  3382. tools (such as GAS or the GNU linker) instead of the standard
  3383. system tools, install the required tools in the build directory
  3384. under the names 'as', 'ld' or whatever is appropriate.
  3385. Alternatively, you can do subsequent compilation using a value of
  3386. the 'PATH' environment variable such that the necessary GNU tools
  3387. come before the standard system tools.
  3388. 2. Specify the host, build and target machine configurations. You do
  3389. this when you run the 'configure' script.
  3390. The "build" machine is the system which you are using, the "host"
  3391. machine is the system where you want to run the resulting compiler
  3392. (normally the build machine), and the "target" machine is the
  3393. system for which you want the compiler to generate code.
  3394. If you are building a compiler to produce code for the machine it
  3395. runs on (a native compiler), you normally do not need to specify
  3396. any operands to 'configure'; it will try to guess the type of
  3397. machine you are on and use that as the build, host and target
  3398. machines. So you don't need to specify a configuration when
  3399. building a native compiler unless 'configure' cannot figure out
  3400. what your configuration is or guesses wrong.
  3401. In those cases, specify the build machine's "configuration name"
  3402. with the '--host' option; the host and target will default to be
  3403. the same as the host machine.
  3404. Here is an example:
  3405. ./configure --host=sparc-sun-sunos4.1
  3406. A configuration name may be canonical or it may be more or less
  3407. abbreviated.
  3408. A canonical configuration name has three parts, separated by
  3409. dashes. It looks like this: 'CPU-COMPANY-SYSTEM'. (The three
  3410. parts may themselves contain dashes; 'configure' can figure out
  3411. which dashes serve which purpose.) For example,
  3412. 'm68k-sun-sunos4.1' specifies a Sun 3.
  3413. You can also replace parts of the configuration by nicknames or
  3414. aliases. For example, 'sun3' stands for 'm68k-sun', so
  3415. 'sun3-sunos4.1' is another way to specify a Sun 3.
  3416. You can specify a version number after any of the system types, and
  3417. some of the CPU types. In most cases, the version is irrelevant,
  3418. and will be ignored. So you might as well specify the version if
  3419. you know it.
  3420. See *note Configurations::, for a list of supported configuration
  3421. names and notes on many of the configurations. You should check
  3422. the notes in that section before proceeding any further with the
  3423. installation of GCC.
  3424. 
  3425. File: gccinstall.info, Node: Configurations, Up: Old
  3426. 10.1 Configurations Supported by GCC
  3427. ====================================
  3428. Here are the possible CPU types:
  3429. 1750a, a29k, alpha, arm, avr, cN, clipper, dsp16xx, elxsi, fr30,
  3430. h8300, hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860,
  3431. i960, ip2k, m32r, m68000, m68k, m88k, mcore, mips, mipsel, mips64,
  3432. mips64el, mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle, romp,
  3433. rs6000, sh, sparc, sparclite, sparc64, v850, vax, we32k.
  3434. Here are the recognized company names. As you can see, customary
  3435. abbreviations are used rather than the longer official names.
  3436. acorn, alliant, altos, apollo, apple, att, bull, cbm, convergent,
  3437. convex, crds, dec, dg, dolphin, elxsi, encore, harris, hitachi, hp,
  3438. ibm, intergraph, isi, mips, motorola, ncr, next, ns, omron, plexus,
  3439. sequent, sgi, sony, sun, tti, unicom, wrs.
  3440. The company name is meaningful only to disambiguate when the rest of
  3441. the information supplied is insufficient. You can omit it, writing just
  3442. 'CPU-SYSTEM', if it is not needed. For example, 'vax-ultrix4.2' is
  3443. equivalent to 'vax-dec-ultrix4.2'.
  3444. Here is a list of system types:
  3445. 386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff,
  3446. ctix, cxux, dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms,
  3447. genix, gnu, linux, linux-gnu, hiux, hpux, iris, irix, isc, luna,
  3448. lynxos, mach, minix, msdos, mvs, netbsd, newsos, nindy, ns, osf,
  3449. osfrose, ptx, riscix, riscos, rtu, sco, sim, solaris, sunos, sym,
  3450. sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta, vxworks,
  3451. winnt, xenix.
  3452. You can omit the system type; then 'configure' guesses the operating
  3453. system from the CPU and company.
  3454. You can add a version number to the system type; this may or may not
  3455. make a difference. For example, you can write 'bsd4.3' or 'bsd4.4' to
  3456. distinguish versions of BSD. In practice, the version number is most
  3457. needed for 'sysv3' and 'sysv4', which are often treated differently.
  3458. 'linux-gnu' is the canonical name for the GNU/Linux target; however
  3459. GCC will also accept 'linux'. The version of the kernel in use is not
  3460. relevant on these systems. A suffix such as 'libc1' or 'aout'
  3461. distinguishes major versions of the C library; all of the suffixed
  3462. versions are obsolete.
  3463. If you specify an impossible combination such as 'i860-dg-vms', then
  3464. you may get an error message from 'configure', or it may ignore part of
  3465. the information and do the best it can with the rest. 'configure'
  3466. always prints the canonical name for the alternative that it used. GCC
  3467. does not support all possible alternatives.
  3468. Often a particular model of machine has a name. Many machine names
  3469. are recognized as aliases for CPU/company combinations. Thus, the
  3470. machine name 'sun3', mentioned above, is an alias for 'm68k-sun'.
  3471. Sometimes we accept a company name as a machine name, when the name is
  3472. popularly used for a particular machine. Here is a table of the known
  3473. machine names:
  3474. 3300, 3b1, 3bN, 7300, altos3068, altos, apollo68, att-7300,
  3475. balance, convex-cN, crds, decstation-3100, decstation, delta,
  3476. encore, fx2800, gmicro, hp7NN, hp8NN, hp9k2NN, hp9k3NN, hp9k7NN,
  3477. hp9k8NN, iris4d, iris, isi68, m3230, magnum, merlin, miniframe,
  3478. mmax, news-3600, news800, news, next, pbd, pc532, pmax, powerpc,
  3479. powerpcle, ps2, risc-news, rtpc, sun2, sun386i, sun386, sun3, sun4,
  3480. symmetry, tower-32, tower.
  3481. Remember that a machine name specifies both the cpu type and the company
  3482. name.
  3483. 
  3484. File: gccinstall.info, Node: GNU Free Documentation License, Next: Concept Index, Prev: Old, Up: Top
  3485. GNU Free Documentation License
  3486. ******************************
  3487. Version 1.3, 3 November 2008
  3488. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  3489. <http://fsf.org/>
  3490. Everyone is permitted to copy and distribute verbatim copies
  3491. of this license document, but changing it is not allowed.
  3492. 0. PREAMBLE
  3493. The purpose of this License is to make a manual, textbook, or other
  3494. functional and useful document "free" in the sense of freedom: to
  3495. assure everyone the effective freedom to copy and redistribute it,
  3496. with or without modifying it, either commercially or
  3497. noncommercially. Secondarily, this License preserves for the
  3498. author and publisher a way to get credit for their work, while not
  3499. being considered responsible for modifications made by others.
  3500. This License is a kind of "copyleft", which means that derivative
  3501. works of the document must themselves be free in the same sense.
  3502. It complements the GNU General Public License, which is a copyleft
  3503. license designed for free software.
  3504. We have designed this License in order to use it for manuals for
  3505. free software, because free software needs free documentation: a
  3506. free program should come with manuals providing the same freedoms
  3507. that the software does. But this License is not limited to
  3508. software manuals; it can be used for any textual work, regardless
  3509. of subject matter or whether it is published as a printed book. We
  3510. recommend this License principally for works whose purpose is
  3511. instruction or reference.
  3512. 1. APPLICABILITY AND DEFINITIONS
  3513. This License applies to any manual or other work, in any medium,
  3514. that contains a notice placed by the copyright holder saying it can
  3515. be distributed under the terms of this License. Such a notice
  3516. grants a world-wide, royalty-free license, unlimited in duration,
  3517. to use that work under the conditions stated herein. The
  3518. "Document", below, refers to any such manual or work. Any member
  3519. of the public is a licensee, and is addressed as "you". You accept
  3520. the license if you copy, modify or distribute the work in a way
  3521. requiring permission under copyright law.
  3522. A "Modified Version" of the Document means any work containing the
  3523. Document or a portion of it, either copied verbatim, or with
  3524. modifications and/or translated into another language.
  3525. A "Secondary Section" is a named appendix or a front-matter section
  3526. of the Document that deals exclusively with the relationship of the
  3527. publishers or authors of the Document to the Document's overall
  3528. subject (or to related matters) and contains nothing that could
  3529. fall directly within that overall subject. (Thus, if the Document
  3530. is in part a textbook of mathematics, a Secondary Section may not
  3531. explain any mathematics.) The relationship could be a matter of
  3532. historical connection with the subject or with related matters, or
  3533. of legal, commercial, philosophical, ethical or political position
  3534. regarding them.
  3535. The "Invariant Sections" are certain Secondary Sections whose
  3536. titles are designated, as being those of Invariant Sections, in the
  3537. notice that says that the Document is released under this License.
  3538. If a section does not fit the above definition of Secondary then it
  3539. is not allowed to be designated as Invariant. The Document may
  3540. contain zero Invariant Sections. If the Document does not identify
  3541. any Invariant Sections then there are none.
  3542. The "Cover Texts" are certain short passages of text that are
  3543. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  3544. that says that the Document is released under this License. A
  3545. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  3546. be at most 25 words.
  3547. A "Transparent" copy of the Document means a machine-readable copy,
  3548. represented in a format whose specification is available to the
  3549. general public, that is suitable for revising the document
  3550. straightforwardly with generic text editors or (for images composed
  3551. of pixels) generic paint programs or (for drawings) some widely
  3552. available drawing editor, and that is suitable for input to text
  3553. formatters or for automatic translation to a variety of formats
  3554. suitable for input to text formatters. A copy made in an otherwise
  3555. Transparent file format whose markup, or absence of markup, has
  3556. been arranged to thwart or discourage subsequent modification by
  3557. readers is not Transparent. An image format is not Transparent if
  3558. used for any substantial amount of text. A copy that is not
  3559. "Transparent" is called "Opaque".
  3560. Examples of suitable formats for Transparent copies include plain
  3561. ASCII without markup, Texinfo input format, LaTeX input format,
  3562. SGML or XML using a publicly available DTD, and standard-conforming
  3563. simple HTML, PostScript or PDF designed for human modification.
  3564. Examples of transparent image formats include PNG, XCF and JPG.
  3565. Opaque formats include proprietary formats that can be read and
  3566. edited only by proprietary word processors, SGML or XML for which
  3567. the DTD and/or processing tools are not generally available, and
  3568. the machine-generated HTML, PostScript or PDF produced by some word
  3569. processors for output purposes only.
  3570. The "Title Page" means, for a printed book, the title page itself,
  3571. plus such following pages as are needed to hold, legibly, the
  3572. material this License requires to appear in the title page. For
  3573. works in formats which do not have any title page as such, "Title
  3574. Page" means the text near the most prominent appearance of the
  3575. work's title, preceding the beginning of the body of the text.
  3576. The "publisher" means any person or entity that distributes copies
  3577. of the Document to the public.
  3578. A section "Entitled XYZ" means a named subunit of the Document
  3579. whose title either is precisely XYZ or contains XYZ in parentheses
  3580. following text that translates XYZ in another language. (Here XYZ
  3581. stands for a specific section name mentioned below, such as
  3582. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  3583. To "Preserve the Title" of such a section when you modify the
  3584. Document means that it remains a section "Entitled XYZ" according
  3585. to this definition.
  3586. The Document may include Warranty Disclaimers next to the notice
  3587. which states that this License applies to the Document. These
  3588. Warranty Disclaimers are considered to be included by reference in
  3589. this License, but only as regards disclaiming warranties: any other
  3590. implication that these Warranty Disclaimers may have is void and
  3591. has no effect on the meaning of this License.
  3592. 2. VERBATIM COPYING
  3593. You may copy and distribute the Document in any medium, either
  3594. commercially or noncommercially, provided that this License, the
  3595. copyright notices, and the license notice saying this License
  3596. applies to the Document are reproduced in all copies, and that you
  3597. add no other conditions whatsoever to those of this License. You
  3598. may not use technical measures to obstruct or control the reading
  3599. or further copying of the copies you make or distribute. However,
  3600. you may accept compensation in exchange for copies. If you
  3601. distribute a large enough number of copies you must also follow the
  3602. conditions in section 3.
  3603. You may also lend copies, under the same conditions stated above,
  3604. and you may publicly display copies.
  3605. 3. COPYING IN QUANTITY
  3606. If you publish printed copies (or copies in media that commonly
  3607. have printed covers) of the Document, numbering more than 100, and
  3608. the Document's license notice requires Cover Texts, you must
  3609. enclose the copies in covers that carry, clearly and legibly, all
  3610. these Cover Texts: Front-Cover Texts on the front cover, and
  3611. Back-Cover Texts on the back cover. Both covers must also clearly
  3612. and legibly identify you as the publisher of these copies. The
  3613. front cover must present the full title with all words of the title
  3614. equally prominent and visible. You may add other material on the
  3615. covers in addition. Copying with changes limited to the covers, as
  3616. long as they preserve the title of the Document and satisfy these
  3617. conditions, can be treated as verbatim copying in other respects.
  3618. If the required texts for either cover are too voluminous to fit
  3619. legibly, you should put the first ones listed (as many as fit
  3620. reasonably) on the actual cover, and continue the rest onto
  3621. adjacent pages.
  3622. If you publish or distribute Opaque copies of the Document
  3623. numbering more than 100, you must either include a machine-readable
  3624. Transparent copy along with each Opaque copy, or state in or with
  3625. each Opaque copy a computer-network location from which the general
  3626. network-using public has access to download using public-standard
  3627. network protocols a complete Transparent copy of the Document, free
  3628. of added material. If you use the latter option, you must take
  3629. reasonably prudent steps, when you begin distribution of Opaque
  3630. copies in quantity, to ensure that this Transparent copy will
  3631. remain thus accessible at the stated location until at least one
  3632. year after the last time you distribute an Opaque copy (directly or
  3633. through your agents or retailers) of that edition to the public.
  3634. It is requested, but not required, that you contact the authors of
  3635. the Document well before redistributing any large number of copies,
  3636. to give them a chance to provide you with an updated version of the
  3637. Document.
  3638. 4. MODIFICATIONS
  3639. You may copy and distribute a Modified Version of the Document
  3640. under the conditions of sections 2 and 3 above, provided that you
  3641. release the Modified Version under precisely this License, with the
  3642. Modified Version filling the role of the Document, thus licensing
  3643. distribution and modification of the Modified Version to whoever
  3644. possesses a copy of it. In addition, you must do these things in
  3645. the Modified Version:
  3646. A. Use in the Title Page (and on the covers, if any) a title
  3647. distinct from that of the Document, and from those of previous
  3648. versions (which should, if there were any, be listed in the
  3649. History section of the Document). You may use the same title
  3650. as a previous version if the original publisher of that
  3651. version gives permission.
  3652. B. List on the Title Page, as authors, one or more persons or
  3653. entities responsible for authorship of the modifications in
  3654. the Modified Version, together with at least five of the
  3655. principal authors of the Document (all of its principal
  3656. authors, if it has fewer than five), unless they release you
  3657. from this requirement.
  3658. C. State on the Title page the name of the publisher of the
  3659. Modified Version, as the publisher.
  3660. D. Preserve all the copyright notices of the Document.
  3661. E. Add an appropriate copyright notice for your modifications
  3662. adjacent to the other copyright notices.
  3663. F. Include, immediately after the copyright notices, a license
  3664. notice giving the public permission to use the Modified
  3665. Version under the terms of this License, in the form shown in
  3666. the Addendum below.
  3667. G. Preserve in that license notice the full lists of Invariant
  3668. Sections and required Cover Texts given in the Document's
  3669. license notice.
  3670. H. Include an unaltered copy of this License.
  3671. I. Preserve the section Entitled "History", Preserve its Title,
  3672. and add to it an item stating at least the title, year, new
  3673. authors, and publisher of the Modified Version as given on the
  3674. Title Page. If there is no section Entitled "History" in the
  3675. Document, create one stating the title, year, authors, and
  3676. publisher of the Document as given on its Title Page, then add
  3677. an item describing the Modified Version as stated in the
  3678. previous sentence.
  3679. J. Preserve the network location, if any, given in the Document
  3680. for public access to a Transparent copy of the Document, and
  3681. likewise the network locations given in the Document for
  3682. previous versions it was based on. These may be placed in the
  3683. "History" section. You may omit a network location for a work
  3684. that was published at least four years before the Document
  3685. itself, or if the original publisher of the version it refers
  3686. to gives permission.
  3687. K. For any section Entitled "Acknowledgements" or "Dedications",
  3688. Preserve the Title of the section, and preserve in the section
  3689. all the substance and tone of each of the contributor
  3690. acknowledgements and/or dedications given therein.
  3691. L. Preserve all the Invariant Sections of the Document, unaltered
  3692. in their text and in their titles. Section numbers or the
  3693. equivalent are not considered part of the section titles.
  3694. M. Delete any section Entitled "Endorsements". Such a section
  3695. may not be included in the Modified Version.
  3696. N. Do not retitle any existing section to be Entitled
  3697. "Endorsements" or to conflict in title with any Invariant
  3698. Section.
  3699. O. Preserve any Warranty Disclaimers.
  3700. If the Modified Version includes new front-matter sections or
  3701. appendices that qualify as Secondary Sections and contain no
  3702. material copied from the Document, you may at your option designate
  3703. some or all of these sections as invariant. To do this, add their
  3704. titles to the list of Invariant Sections in the Modified Version's
  3705. license notice. These titles must be distinct from any other
  3706. section titles.
  3707. You may add a section Entitled "Endorsements", provided it contains
  3708. nothing but endorsements of your Modified Version by various
  3709. parties--for example, statements of peer review or that the text
  3710. has been approved by an organization as the authoritative
  3711. definition of a standard.
  3712. You may add a passage of up to five words as a Front-Cover Text,
  3713. and a passage of up to 25 words as a Back-Cover Text, to the end of
  3714. the list of Cover Texts in the Modified Version. Only one passage
  3715. of Front-Cover Text and one of Back-Cover Text may be added by (or
  3716. through arrangements made by) any one entity. If the Document
  3717. already includes a cover text for the same cover, previously added
  3718. by you or by arrangement made by the same entity you are acting on
  3719. behalf of, you may not add another; but you may replace the old
  3720. one, on explicit permission from the previous publisher that added
  3721. the old one.
  3722. The author(s) and publisher(s) of the Document do not by this
  3723. License give permission to use their names for publicity for or to
  3724. assert or imply endorsement of any Modified Version.
  3725. 5. COMBINING DOCUMENTS
  3726. You may combine the Document with other documents released under
  3727. this License, under the terms defined in section 4 above for
  3728. modified versions, provided that you include in the combination all
  3729. of the Invariant Sections of all of the original documents,
  3730. unmodified, and list them all as Invariant Sections of your
  3731. combined work in its license notice, and that you preserve all
  3732. their Warranty Disclaimers.
  3733. The combined work need only contain one copy of this License, and
  3734. multiple identical Invariant Sections may be replaced with a single
  3735. copy. If there are multiple Invariant Sections with the same name
  3736. but different contents, make the title of each such section unique
  3737. by adding at the end of it, in parentheses, the name of the
  3738. original author or publisher of that section if known, or else a
  3739. unique number. Make the same adjustment to the section titles in
  3740. the list of Invariant Sections in the license notice of the
  3741. combined work.
  3742. In the combination, you must combine any sections Entitled
  3743. "History" in the various original documents, forming one section
  3744. Entitled "History"; likewise combine any sections Entitled
  3745. "Acknowledgements", and any sections Entitled "Dedications". You
  3746. must delete all sections Entitled "Endorsements."
  3747. 6. COLLECTIONS OF DOCUMENTS
  3748. You may make a collection consisting of the Document and other
  3749. documents released under this License, and replace the individual
  3750. copies of this License in the various documents with a single copy
  3751. that is included in the collection, provided that you follow the
  3752. rules of this License for verbatim copying of each of the documents
  3753. in all other respects.
  3754. You may extract a single document from such a collection, and
  3755. distribute it individually under this License, provided you insert
  3756. a copy of this License into the extracted document, and follow this
  3757. License in all other respects regarding verbatim copying of that
  3758. document.
  3759. 7. AGGREGATION WITH INDEPENDENT WORKS
  3760. A compilation of the Document or its derivatives with other
  3761. separate and independent documents or works, in or on a volume of a
  3762. storage or distribution medium, is called an "aggregate" if the
  3763. copyright resulting from the compilation is not used to limit the
  3764. legal rights of the compilation's users beyond what the individual
  3765. works permit. When the Document is included in an aggregate, this
  3766. License does not apply to the other works in the aggregate which
  3767. are not themselves derivative works of the Document.
  3768. If the Cover Text requirement of section 3 is applicable to these
  3769. copies of the Document, then if the Document is less than one half
  3770. of the entire aggregate, the Document's Cover Texts may be placed
  3771. on covers that bracket the Document within the aggregate, or the
  3772. electronic equivalent of covers if the Document is in electronic
  3773. form. Otherwise they must appear on printed covers that bracket
  3774. the whole aggregate.
  3775. 8. TRANSLATION
  3776. Translation is considered a kind of modification, so you may
  3777. distribute translations of the Document under the terms of section
  3778. 4. Replacing Invariant Sections with translations requires special
  3779. permission from their copyright holders, but you may include
  3780. translations of some or all Invariant Sections in addition to the
  3781. original versions of these Invariant Sections. You may include a
  3782. translation of this License, and all the license notices in the
  3783. Document, and any Warranty Disclaimers, provided that you also
  3784. include the original English version of this License and the
  3785. original versions of those notices and disclaimers. In case of a
  3786. disagreement between the translation and the original version of
  3787. this License or a notice or disclaimer, the original version will
  3788. prevail.
  3789. If a section in the Document is Entitled "Acknowledgements",
  3790. "Dedications", or "History", the requirement (section 4) to
  3791. Preserve its Title (section 1) will typically require changing the
  3792. actual title.
  3793. 9. TERMINATION
  3794. You may not copy, modify, sublicense, or distribute the Document
  3795. except as expressly provided under this License. Any attempt
  3796. otherwise to copy, modify, sublicense, or distribute it is void,
  3797. and will automatically terminate your rights under this License.
  3798. However, if you cease all violation of this License, then your
  3799. license from a particular copyright holder is reinstated (a)
  3800. provisionally, unless and until the copyright holder explicitly and
  3801. finally terminates your license, and (b) permanently, if the
  3802. copyright holder fails to notify you of the violation by some
  3803. reasonable means prior to 60 days after the cessation.
  3804. Moreover, your license from a particular copyright holder is
  3805. reinstated permanently if the copyright holder notifies you of the
  3806. violation by some reasonable means, this is the first time you have
  3807. received notice of violation of this License (for any work) from
  3808. that copyright holder, and you cure the violation prior to 30 days
  3809. after your receipt of the notice.
  3810. Termination of your rights under this section does not terminate
  3811. the licenses of parties who have received copies or rights from you
  3812. under this License. If your rights have been terminated and not
  3813. permanently reinstated, receipt of a copy of some or all of the
  3814. same material does not give you any rights to use it.
  3815. 10. FUTURE REVISIONS OF THIS LICENSE
  3816. The Free Software Foundation may publish new, revised versions of
  3817. the GNU Free Documentation License from time to time. Such new
  3818. versions will be similar in spirit to the present version, but may
  3819. differ in detail to address new problems or concerns. See
  3820. <http://www.gnu.org/copyleft/>.
  3821. Each version of the License is given a distinguishing version
  3822. number. If the Document specifies that a particular numbered
  3823. version of this License "or any later version" applies to it, you
  3824. have the option of following the terms and conditions either of
  3825. that specified version or of any later version that has been
  3826. published (not as a draft) by the Free Software Foundation. If the
  3827. Document does not specify a version number of this License, you may
  3828. choose any version ever published (not as a draft) by the Free
  3829. Software Foundation. If the Document specifies that a proxy can
  3830. decide which future versions of this License can be used, that
  3831. proxy's public statement of acceptance of a version permanently
  3832. authorizes you to choose that version for the Document.
  3833. 11. RELICENSING
  3834. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  3835. World Wide Web server that publishes copyrightable works and also
  3836. provides prominent facilities for anybody to edit those works. A
  3837. public wiki that anybody can edit is an example of such a server.
  3838. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  3839. site means any set of copyrightable works thus published on the MMC
  3840. site.
  3841. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  3842. license published by Creative Commons Corporation, a not-for-profit
  3843. corporation with a principal place of business in San Francisco,
  3844. California, as well as future copyleft versions of that license
  3845. published by that same organization.
  3846. "Incorporate" means to publish or republish a Document, in whole or
  3847. in part, as part of another Document.
  3848. An MMC is "eligible for relicensing" if it is licensed under this
  3849. License, and if all works that were first published under this
  3850. License somewhere other than this MMC, and subsequently
  3851. incorporated in whole or in part into the MMC, (1) had no cover
  3852. texts or invariant sections, and (2) were thus incorporated prior
  3853. to November 1, 2008.
  3854. The operator of an MMC Site may republish an MMC contained in the
  3855. site under CC-BY-SA on the same site at any time before August 1,
  3856. 2009, provided the MMC is eligible for relicensing.
  3857. ADDENDUM: How to use this License for your documents
  3858. ====================================================
  3859. To use this License in a document you have written, include a copy of
  3860. the License in the document and put the following copyright and license
  3861. notices just after the title page:
  3862. Copyright (C) YEAR YOUR NAME.
  3863. Permission is granted to copy, distribute and/or modify this document
  3864. under the terms of the GNU Free Documentation License, Version 1.3
  3865. or any later version published by the Free Software Foundation;
  3866. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  3867. Texts. A copy of the license is included in the section entitled ``GNU
  3868. Free Documentation License''.
  3869. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  3870. Texts, replace the "with...Texts." line with this:
  3871. with the Invariant Sections being LIST THEIR TITLES, with
  3872. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  3873. being LIST.
  3874. If you have Invariant Sections without Cover Texts, or some other
  3875. combination of the three, merge those two alternatives to suit the
  3876. situation.
  3877. If your document contains nontrivial examples of program code, we
  3878. recommend releasing these examples in parallel under your choice of free
  3879. software license, such as the GNU General Public License, to permit
  3880. their use in free software.
  3881. 
  3882. File: gccinstall.info, Node: Concept Index, Prev: GNU Free Documentation License, Up: Top
  3883. Concept Index
  3884. *************
  3885. �[index�]
  3886. * Menu:
  3887. * Binaries: Binaries. (line 6)
  3888. * build_configargs: Configuration. (line 1739)
  3889. * Configuration: Configuration. (line 6)
  3890. * configurations supported by GCC: Configurations. (line 6)
  3891. * Downloading GCC: Downloading the source.
  3892. (line 6)
  3893. * Downloading the Source: Downloading the source.
  3894. (line 6)
  3895. * FDL, GNU Free Documentation License: GNU Free Documentation License.
  3896. (line 6)
  3897. * Host specific installation: Specific. (line 6)
  3898. * host_configargs: Configuration. (line 1743)
  3899. * Installing GCC: Binaries: Binaries. (line 6)
  3900. * Installing GCC: Building: Building. (line 6)
  3901. * Installing GCC: Configuration: Configuration. (line 6)
  3902. * Installing GCC: Testing: Testing. (line 6)
  3903. * Prerequisites: Prerequisites. (line 6)
  3904. * Specific: Specific. (line 6)
  3905. * Specific installation notes: Specific. (line 6)
  3906. * Target specific installation: Specific. (line 6)
  3907. * Target specific installation notes: Specific. (line 6)
  3908. * target_configargs: Configuration. (line 1747)
  3909. * Testing: Testing. (line 6)
  3910. * Testsuite: Testing. (line 6)
  3911. 
  3912. Tag Table:
  3913. Node: Top1696
  3914. Node: Installing GCC2254
  3915. Node: Prerequisites3888
  3916. Ref: GNAT-prerequisite5954
  3917. Node: Downloading the source15566
  3918. Node: Configuration17237
  3919. Ref: with-gnu-as33325
  3920. Ref: with-as34220
  3921. Ref: with-gnu-ld35629
  3922. Ref: WithAixSoname59796
  3923. Ref: AixLdCommand60457
  3924. Node: Building102210
  3925. Node: Testing118333
  3926. Node: Final install126281
  3927. Node: Binaries131581
  3928. Node: Specific132688
  3929. Ref: aarch64-x-x133195
  3930. Ref: alpha-x-x135215
  3931. Ref: amd64-x-solaris2135429
  3932. Ref: amdgcn-x-amdhsa135511
  3933. Ref: arc-x-elf32136037
  3934. Ref: arc-linux-uclibc136213
  3935. Ref: arm-x-eabi136354
  3936. Ref: avr136607
  3937. Ref: bfin137188
  3938. Ref: cr16137451
  3939. Ref: cris137867
  3940. Ref: dos138565
  3941. Ref: epiphany-x-elf138888
  3942. Ref: x-x-freebsd138993
  3943. Ref: ft32-x-elf140793
  3944. Ref: h8300-hms140891
  3945. Ref: hppa-hp-hpux141243
  3946. Ref: hppa-hp-hpux10143615
  3947. Ref: hppa-hp-hpux11144028
  3948. Ref: x-x-linux-gnu149430
  3949. Ref: ix86-x-linux149623
  3950. Ref: ix86-x-solaris2149936
  3951. Ref: ia64-x-linux151012
  3952. Ref: ia64-x-hpux151782
  3953. Ref: x-ibm-aix152337
  3954. Ref: TransferAixShobj155999
  3955. Ref: iq2000-x-elf159809
  3956. Ref: lm32-x-elf159949
  3957. Ref: lm32-x-uclinux160053
  3958. Ref: m32c-x-elf160181
  3959. Ref: m32r-x-elf160283
  3960. Ref: m68k-x-x160385
  3961. Ref: m68k-x-uclinux161423
  3962. Ref: microblaze-x-elf161668
  3963. Ref: mips-x-x161787
  3964. Ref: moxie-x-elf163697
  3965. Ref: msp430-x-elf163744
  3966. Ref: nds32le-x-elf164301
  3967. Ref: nds32be-x-elf164373
  3968. Ref: nvptx-x-none164442
  3969. Ref: or1k-x-elf165005
  3970. Ref: or1k-x-linux165136
  3971. Ref: powerpc-x-x165217
  3972. Ref: powerpc-x-darwin165408
  3973. Ref: powerpc-x-elf165902
  3974. Ref: powerpc-x-linux-gnu165987
  3975. Ref: powerpc-x-netbsd166082
  3976. Ref: powerpc-x-eabisim166170
  3977. Ref: powerpc-x-eabi166296
  3978. Ref: powerpcle-x-elf166372
  3979. Ref: powerpcle-x-eabisim166464
  3980. Ref: powerpcle-x-eabi166597
  3981. Ref: rl78-x-elf166680
  3982. Ref: riscv32-x-elf166786
  3983. Ref: riscv32-x-linux166975
  3984. Ref: riscv64-x-elf167132
  3985. Ref: riscv64-x-linux167321
  3986. Ref: rx-x-elf167478
  3987. Ref: s390-x-linux167524
  3988. Ref: s390x-x-linux167596
  3989. Ref: s390x-ibm-tpf167683
  3990. Ref: x-x-solaris2167814
  3991. Ref: sparc-x-x170921
  3992. Ref: sparc-sun-solaris2171423
  3993. Ref: sparc-x-linux172566
  3994. Ref: sparc64-x-solaris2172597
  3995. Ref: sparcv9-x-solaris2173315
  3996. Ref: c6x-x-x173402
  3997. Ref: tilegx-*-linux173494
  3998. Ref: tilegxbe-*-linux173636
  3999. Ref: tilepro-*-linux173779
  4000. Ref: visium-x-elf173900
  4001. Ref: x-x-vxworks174008
  4002. Ref: x86-64-x-x175531
  4003. Ref: x86-64-x-solaris2175859
  4004. Ref: xtensa-x-elf176509
  4005. Ref: xtensa-x-linux177180
  4006. Ref: windows177521
  4007. Ref: x-x-cygwin179362
  4008. Ref: x-x-mingw32179915
  4009. Ref: older180141
  4010. Ref: elf182258
  4011. Node: Old182516
  4012. Node: Configurations185649
  4013. Node: GNU Free Documentation License189187
  4014. Node: Concept Index214315
  4015. 
  4016. End Tag Table
  4017. 
  4018. Local Variables:
  4019. coding: utf-8
  4020. End: