gccinstall.info 200 KB

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