Forum: PS3 Linux Discussion - The PS3 Linux Discussion forum contains all the information you are looking for on using Linux on the PS3.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Latest kernel build complains about CROSS_COMPILE option
  

Results 1 to 3 of 3
  1. #1 Exclamation Latest kernel build complains about CROSS_COMPILE option 
    anolis is offline Registered User
    Join Date
    Mar 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I'm trying to compile the latest kernel build from the PS3 Linux git repo. I did 'make oldconfig' with no problems, however when I try to actually compile the kernel it complains with these errors

    Code:
    anolis@ps3linux:~/linux-2.6-5c61cdc$ make
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 25:
    CROSS_COMPILEgcc: command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 26:
    CROSS_COMPILEgcc: command not found
    make: CROSS_COMPILEgcc: Command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 25:
    CROSS_COMPILEgcc: command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 26:
    CROSS_COMPILEgcc: command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 25:
    CROSS_COMPILEgcc: command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 26:
    CROSS_COMPILEgcc: command not found
    /home/anolis/linux-2.6-5c61cdc/scripts/gcc-version.sh: line 28:
    CROSS_COMPILEgcc: command not found
    *** 2.6 kernels no longer build correctly with old versions of binutils.
    *** Please upgrade your binutils to 2.12.1 or newer
    make: *** [checkbin] Error 1
    Another thing to note is that it is complaining about binutils being
    out of date. I just compiled binutils from source a day ago and
    installed it fine.

    Also I'm compiling ON the PS3 itself so I'm not entirely sure why it's
    talking about "CROSS_COMPILE"

    echo $ARCH
    echo $CROSS_COMPILE
    echo $CC

    all return blank lines

    Any help on this issue would be greatly appreciated
    Reply With Quote  

  2. #2 No Icon  
    VriskaBlack's Avatar
    VriskaBlack is offline !DOUBLE PSYCHIC REACHAROUND!
    Join Date
    Aug 2010
    Posts
    277
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    24
    Likes Received
    28
    Do you have all required dependancies?
    Reply With Quote  

  3. #3  
    rzkenkyu is offline Registered User
    Join Date
    Mar 2011
    Posts
    1
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Did you have the ps3 toolchain installed?

    When you have it, you need to
    export ARCH=powerpc
    export CROSS_COMPILE=power64-linux-

    This will point to the gcc in the ps3 toolchain to build the kernel. You cannot use the gcc on your machine (which may be x86).

    Note that the prefix "power64-linux-" may differ depending on which toolchain you installed. You can try the PS3 toolchain automatically built in the AsbestOS's source code.

    Hope this helps.
    Reply With Quote  

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •