gccinstall.info 206 KB

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