Re: cross-compiling kernel using a 32-bit toolchain on a 64-bit machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So I found the issue (it was a PIBKAC issue :/)

I was using sudo to try and build the kernel (this was due to a messed
up setup where the whole kernel src tree ended up being written by
root). When copy-pasting my command here, I missed copying the sudo
part and that was precisely the reason for the error. When invoking
sudo, I think the current shells environment variables are not copied
(probably due to security reasons) and that's why it was not picking
up the toolchain paths.

Once I fixed the permissions on the source tree and invoke make as
regular user, it started working.

Sorry about the noise, I should've figured this out earlier.



On Tue, Apr 7, 2015 at 9:15 AM, Lad, Prabhakar
<prabhakar.csengg@xxxxxxxxx> wrote:
> On Mon, Apr 6, 2015 at 11:50 PM, Mandeep Sandhu
> <mandeepsandhu.chd@xxxxxxxxx> wrote:
>> Hi All,
>>
>> I'm having trouble compiling my kernel using a 32-bit toolchain (for
>> ARM) on a 64-bit host (Ubuntu 14.10). The kernel version is 3.14.17.
>>
>> I understand that 32-bit binaries require "ia32-libs" (or equivalent)
>> for compiling on 64-bit hosts. I installed the required packages
>> (lib32z1 lib32ncurses5 lib32bz2-1.0 for Ubuntu 14.10), but still keep
>> getting errors:
>>
>> $ make CROSS_COMPILE=arm-none-linux-gnueabi- all
>> Makefile:616: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR:
>> -fstack-protector not supported by compiler
>> make: arm-none-linux-gnueabi-gcc: Command not found
>
> Have built this toolchain or just downloaded from coudesourcery ?
> Go to the source where you downloaded toolchain (on your machine not
> the website)
> traverse to bin directory and try ./arm-none-linux-gnueabi-gcc --version.
>
> Cheers,
> --Prabhakar Lad

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux