[llvmlinux] compiling rpi target

Marijn Stollenga (IDSIA) marijn at idsia.ch
Wed Aug 6 11:20:34 UTC 2014


Thanks i'll try building like that, I had all dependencies. I'm running 
Mint 17 which uses ubuntu I believe, these are the settings:

LLVMLINUX_COMMIT    = 7dec018b8eb8fa7bfa56e01b9acacf8c7d332fcf
LLVMLINUX_DATE        = 2014-08-04 21:45:04 -0300
CLANG_TOOLCHAIN        = from-source
# LLVM settings
LLVM_GIT        = http://llvm.org/git/llvm.git
LLVM_BRANCH        = master
LLVM_DATE        = 2014-08-05 08:19:21 +0000
LLVM_COMMIT        = e6329cf3032aef9e7dfe75cd0aa03add19a7e120
LLVM_REV        = 214849
LLVM_OPTIMIZED        = --enable-optimized --enable-assertions
LLVM_TARGETS_TO_BUILD    = 'AArch64;ARM;X86'
# Clang settings
CLANG_GIT        = http://llvm.org/git/clang.git
CLANG_BRANCH        = master
CLANG_DATE        = 2014-08-05 09:45:53 +0000
CLANG_COMMIT        = a5052804254f4c04922b95148225527a5428fb0a
CLANG_REV        = 214852
# Kernel settings
KERNEL_GIT        = https://github.com/raspberrypi/linux.git
KERNEL_BRANCH        = rpi-3.16.y
KERNEL_TAG        =
KERNEL_DATE        = 2014-08-04 23:26:45 +0100
KERNEL_COMMIT        = b3ea30e6f647f5ba75c677430e75bd8088f2d3a8
KERNELDIR        = ${TARGETDIR}/src/rpi
KERNEL_CFG        = ${TARGETDIR}/config_rpi
KERNEL_REPO_PATCHES    = rpi-3.16.y
KERNEL_PATCH_DIR       += ${TARGETDIR}/patches 
${TARGETDIR}/patches/rpi-3.16.y
# buildroot settings
BUILDROOT_ARCH        = rpi
BUILDROOT_BRANCH    = master
BUILDROOT_TAG        =
BUILDROOT_GIT        = http://git.buildroot.net/git/buildroot.git
BUILDROOT_DATE        = 2014-07-19 00:32:44 +0200
BUILDROOT_COMMIT    = e30868be1f2ff19b8d64bf94efa4271d353e33fc
BUILDROOT_CONFIG    = config_rpi_buildroot
# initramfs settings
# LTP settings
LTPSF_RELEASE        = 20120614
LTPSF_TAR        = ltp-full-20120614.bz2
LTPSF_URI        = 
http://downloads.sourceforge.net/project/ltp/LTP%20Source/ltp-20120614/ltp-full-20120614.bz2
# QEMU settings
QEMU_BRANCH        = master
QEMU_TAG        =
QEMU_GIT        = git://git.qemu.org/qemu.git
QEMU_DATE        = 2014-08-04 15:01:38 +0100
QEMU_COMMIT        = 69f87f713069f1f70f86cb65883f7d43e3aa21de
# ARM settings
CROSS_ARM_TOOLCHAIN    = codesourcery
EXTRAFLAGS        =
KERNEL_MAKE_TARGETS    =

On 06/08/14 13:10, Vinícius Tinti wrote:
> Hi,
>
> This is very odd. It should not break like this. Could you try these
> things please:
>
> 1) Run 'make build-dep' to check if you have all the packages needed.
> Probably you do.
>
> 2) Install clang on your distro and then run 'make clean; make
> CLANG_SELFHOST=1' . This will build clang from scratch using your
> distro's clang.
>
> If you could also send me some info about your distro would be great.
> Please run 'make settings' and send me. Are you running Fedora, Ubuntu
> or Arch? Which version?
>
> Best regards,
> Tinti
>
> On Tue, Aug 5, 2014 at 9:18 AM, Marijn Stollenga (IDSIA)
> <marijn at idsia.ch> wrote:
>> Thanks, the patches apply, but I get an error while building. It's hard to
>> read the log but I think its in clang
>>
>> clang-3.6: error: unable to execute command: Segmentation fault
>>
>> I attached the log file, can you make sense of it?
>>
>> kind regards,
>> Marijn
>>
>>
>> On 05/08/14 02:58, Vinícius Tinti wrote:
>>> Hi Marjin,
>>>
>>> It should be build now. Please have a try.
>>>
>>> It is using the 3.16.y kernel. But be aware that we have known issues
>>> with the USB at the Raspberry Pi target.
>>>
>>> Let me know if it works for you.
>>>
>>> Regards,
>>> Tinti
>>>
>>> On Mon, Aug 4, 2014 at 10:44 AM, Vinícius Tinti <viniciustinti at gmail.com>
>>> wrote:
>>>> Hi Marjin,
>>>>
>>>> I need to update the rpi target (it is not sync with the lasted patches).
>>>> Meanwhile you could try to apply manually the patches.
>>>>
>>>> Please let me know if I can help.
>>>>
>>>> Regards,
>>>> Tinti
>>>>
>>>> On Mon, Aug 4, 2014 at 9:36 AM, Marijn Stollenga (IDSIA)
>>>> <marijn at idsia.ch> wrote:
>>>>> When trying to compile the RPI target I get:
>>>>>
>>>>> Patch disable-clang-integrated-as.patch does not apply (enforce with -f)
>>>>>
>>>>> The patch seems to be applicable but maybe the path is wrong? What could
>>>>> it
>>>>> be?
>>>>>
>>>>> -Marijn
>>>>>
>>>>> _______________________________________________
>>>>> LLVMLinux mailing list
>>>>> LLVMLinux at lists.linuxfoundation.org
>>>>> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
>>>>
>>>>
>>>> --
>>>> Simplicity is the ultimate sophistication
>>>
>>>
>
>



More information about the LLVMLinux mailing list