Changeset 3048b8f in rtems
- Timestamp:
- 01/21/99 14:51:34 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 94b3ee13
- Parents:
- 97d6366
- Location:
- doc/started
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/started/Makefile
r97d6366 r3048b8f 61 61 62 62 buildrt.texi: buildrt.t versions.texi 63 $(BMENU) -c -p " Running the bit Script" \63 $(BMENU) -c -p "Error Messages Indicating Configuration Problems" \ 64 64 -u "Top" \ 65 65 -n "Building the Sample Application" ${*}.t -
doc/started/buildc.t
r97d6366 r3048b8f 484 484 will be required to determine the source of the error. 485 485 486 @section Common Problems 487 488 @subsection Error Message Indicates Invalid Option to Assembler 489 490 If a message like this is printed then the new cross compiler 491 is most likely using the native assembler instead of the cross 492 assembler or vice-versa (native compiler using new cross assembler). 493 This can occur for one of the following reasons: 494 495 @itemize @bullet 496 497 @item Binutils Patch Improperly Applied 498 @item Binutils Not Built 499 @item Current Directory is in Your PATH 500 501 @end itemize 502 503 If you are using binutils 2.9.1 or newer with certain versions of 504 egcs and gcc, they do not agree on what the name of the newly 505 generated cross assembler is. Older binutils called it @code{as.new} 506 which became @code{as.new.exe} under Windows. This is not a valid 507 file name, so @code{as.new} is now called @code{as-new}. By using the latest 508 released tool versions and RTEMS patches, this problem will be avoided. 509 510 If binutils did not successfully build the cross assembler, then 511 the new cross gcc (@code{xgcc}) used to build the libraries can not 512 find it. Make sure the build of the binutils succeeded. 513 514 If you include the current directory in your PATH, then there 515 is a chance that the native compiler will accidentally use 516 the new cross assembler instead of the native one. This usually 517 indicates that "." is before the standard system directories 518 in your PATH. As a general rule, including "." in your PATH 519 is a security risk and should be avoided. Remove "." from 520 your PATH. 521 522 @subsection Error Messages Indicating Configuration Problems 523 524 If you see error messages like the following, 525 526 @itemize @bullet 527 528 @item cannot configure libliberty 529 @item coff-emulation not found 530 @item etc. 531 532 @end itemize 533 534 Then it is likely that one or more of your gnu tools is 535 already configured locally in its source tree. You can check 536 for this by searching for the @code{config.status} file 537 in the various tool source trees. The following command 538 does this for the binutils source: 539 540 @example 541 find @value{BINUTILS-UNTAR} -name config.status -print 542 @end example 543 544 The solution for this is to execute the command 545 @code{make distclean} in each of the GNU tools 546 root source directory. This should remove all 547 generated files including Makefiles. 548 549 This situation usually occurs when you have previously 550 built the tool source for some non-RTEMS target. The 551 generated configuration specific files are still in 552 the source tree and the include path specified during 553 the RTEMS build accidentally picks up the previous 554 configuration. The include path used is something like 555 this: 556 557 @example 558 -I../../@value{BINUTILS-UNTAR}/gcc -I/@value{BINUTILS-UNTAR}/gcc/include -I. 559 @end example 560 561 Note that the tool source directory is searched before the 562 build directory. 563 564 This situation can be avoided entirely by never using 565 the source tree as the build directory -- even for 566 native builds.
Note: See TracChangeset
for help on using the changeset viewer.