Changes between Version 9 and Version 10 of Projects/CLANG


Ignore:
Timestamp:
Feb 27, 2012, 6:39:42 PM (7 years ago)
Author:
WeiY
Comment:

/* Building RTEMS */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/CLANG

    v9 v10  
    103103
    104104
    105 I have successfully built RTEMS.
     105I have successfully built RTEMS follow the command below.
    106106
    107107{{{
    108108CPU=i386
    109109../rtems/configure --target=${CPU}-rtems4.11 \
    110   --prefix=/sdb1/rtems-llvm/rtems-install \
     110  --prefix=/users/joel/llvm/install \
    111111  AR=${CPU}-rtems4.11-ar \
    112112  AS=${CPU}-rtems4.11-as \
     
    117117make RTEMS_BSP="pc386" >b.log 2>&1
    118118}}}
     119
     120There are maybe some bugs in the rtems configure system. when attach the CC_FOR_TARGET,CC_FOR_BUILD flags to the cofigure command, it will generate some config.status inside which will add CC="cross compiler" to every subdir,but some subdir do not expect this CC, like in dir i386-rtems4.11/c/pc386/lib/libbsp/i386/pc386/tools. It contains some host code compiled by host compiler which should be auto detected, if you add CC="cross compiler" it will failed, So if you encounter this error you need delete the CC="cross compiler" command in the file i386-rtems4.11/c/pc386/lib/libbsp/i386/pc386/config.status for tools.
    119121= References =
    120122