[llvmlinux] Problem in Sync and fetch needed external projects

zhanglf zhanglf at morningtec.cn
Sun Jun 15 13:34:27 UTC 2014


Hi, Vinícius,


I still have problem to fetch needed external projects.


When I ran $ make CONFIG=config.mk sync-all, first following was shown to the terminal,
         I: Forcing LLVMLinux commit specified at config.mk
	Current HEAD does not match with checkpoint config.mk. Please run:
	    git checkout 6f941c4a48a958417c0dae1e7a92131bc7bee34f
	make[1]: *** [llvm-sync] Error 1
	make: *** [sync-all] Error 2	


Then I did as told:	
	$ git checkout 6f941c4a48a958417c0dae1e7a92131bc7bee34f
	Note: checking out '6f941c4a48a958417c0dae1e7a92131bc7bee34f'.


	You are in 'detached HEAD' state. You can look around, make experimental
	changes and commit them, and you can discard any commits you make in this
	state without impacting any branches by performing another checkout.
	
	If you want to create a new branch to retain commits you create, you may
	do so (now or later) by using -b with the checkout command again. Example:
	
	  git checkout -b new_branch_name
	
	HEAD is now at 6f941c4... Add initial support for Nexus 7


And then ran $ make CONFIG=config.mk sync-all again: then it stays in following like forever, 
           Cloning kernel...
           ---------------------------------------------------------------------
           ---------------------------------------------------------------------
          Checking out kernel branch...
          ---------------------------------------------------------------------
         [ -d /Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7/.git ] || (rm -rf           /Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7 && git clone --reference /Volumes/macdat/scratch/LLVMLinux/llvmlinux/arch/all/kernel.git   git://github.com/CyanogenMod/android_kernel_asus_grouper -b cm-10.1 /Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7 )
Cloning into '/Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7'…



The Internet was fine and I have run the command($ make CONFIG=config.mk sync-all) repeatedly but it still stayed there and if I ran following command


[ -d /Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7/.git ] || (rm -rf          
/Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7 && git clone --reference /Volumes/macdat/scratch/LLVMLinux/llvmlinux/arch/all/kernel.git   git://github.com/CyanogenMod/android_kernel_asus_grouper -b cm-10.1 /Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7 )


it still showed following and stayed there.
Cloning into '/Volumes/macdat/scratch/LLVMLinux/llvmlinux/targets/nexus7/src/android_kernel_nexus7'…


What problem do you think it is and what else should I do to overcome it? Thank you very much!




------------------
Best regards,
Lifang Zhang
E: zhanglf at morningtec.cn 
W: www.morningtec.cn 
A: Office 915, Hongyi Building, 2158 Wanyuan Road Minhang Direction, Shanghai, China
 


 
 
 
------------------ Original ------------------
From:  "Tinti"<viniciustinti at gmail.com>;
Date:  Fri, Jun 13, 2014 09:41 PM
To:  "zhanglf"<zhanglf at morningtec.cn>; 
Cc:  "llvmlinux"<llvmlinux at lists.linuxfoundation.org>; "岑鹏浩"<cenph at morningtec.cn>; "陈文琦"<chenwq at morningtec.cn>; 
Subject:  Re: [llvmlinux] Problem in Sync and fetch needed external projects

 
Hi Lifang Zhang,

The LLVMLinux project is done in Linux. Thus I don't think you will be able to make it build on OS X (without some extra work). I suggest you to either try building it on a supported Linux distro (i.e. Ubuntu 12.04 or 14.04) or install a virtual machine with it.
 
If you have problems let me know. I can sent you a prebuilt kernel image.


Regards,
 Vinícius



On Fri, Jun 13, 2014 at 10:25 AM, zhanglf <zhanglf at morningtec.cn> wrote:
 Dear sir or Madam,


I am Lifang Zhang from MorningTech. We want to use LLVMLinux to replace the default linux kernel in Nexus 7 but we have encountered some problems during building the kernel. We follow the guide from your website http://llvm.linuxfoundation.org/index.php/Nexus_7. We had problem with the step Sync and fetch the needed external projects. The problems are:
 

First when we ran $ make CONFIG=config.mk sync-all in ../llvmlinux/targets/nexus7 directory,  we get this error
                  ---------------------------------------------------------------------
		Cloning shared kernel repo...
		---------------------------------------------------------------------
 		Cloning into bare repository '/Volumes/macdat/scratch/LLVMLinux/llvmlinux/arch/all/kernel.git'...
		remote: Counting objects: 3648768, done.
 		remote: Compressing objects: 100% (552089/552089), done.
		fatal: read error: Operation timed out8), 175.42 MiB | 114.00 KiB/s   
 		fatal: early EOF
		fatal: index-pack failed
		make[1]: *** [/Volumes/macdat/scratch/LLVMLinux/llvmlinux/arch/all/kernel.git] Error 128
 		make: *** [sync-all] Error 2



then I made a directory /Volumes/macdat/scratch/LLVMLinux/llvmlinux/arch/all/kernel.git' and do git init in this directory. Then I went back to the ..llvmlinux/targets/nexus7 directory and ran make CONFIG=config.mk sync-all command, but I got following error:
 

         Syncing shared kernel.org kernel...
	---------------------------------------------------------------------
 	fatal: 'origin' does not appear to be a git repository
	fatal: Could not read from remote repository.
 	
	Please make sure you have the correct access rights
	and the repository exists.
 	make[1]: *** [kernel-shared-sync] Error 128
	make: *** [sync-all] Error 2


 
But I can get the following and can git clone http://git.linuxfoundation.org/llvmlinux.git successfully:
         $ git remote -v
	origin	http://git.linuxfoundation.org/llvmlinux.git (fetch)
 	origin	http://git.linuxfoundation.org/llvmlinux.git (push)
 

        $ git clone http://git.linuxfoundation.org/llvmlinux.git
	Cloning into 'llvmlinux'...
 	remote: Counting objects: 11643, done.
	remote: Compressing objects: 100% (8244/8244), done.
	remote: Total 11643 (delta 7516), reused 5269 (delta 3189)
 	Receiving objects: 100% (11643/11643), 13.08 MiB | 20.00 KiB/s, done.
	Resolving deltas: 100% (7516/7516), done.

 

Then I continued to run `make CONFIG=config.mk sync-all`, but get the same errors:


        Syncing shared kernel.org kernel...
 	---------------------------------------------------------------------
	fatal: 'origin' does not appear to be a git repository
 	fatal: Could not read from remote repository.
	
 	Please make sure you have the correct access rights
	and the repository exists.
 	make[1]: *** [kernel-shared-sync] Error 128
	make: *** [sync-all] Error 2
 


And I can't find solutions from the Internet. Can you help me out with this? And the operation system we use is Mac OS X Version 10.8.5. Thanks a lot!


------------------
 Thanks and best regards,
Lifang Zhang
E: zhanglf at morningtec.cn 
 W: www.morningtec.cn 
 A: Office 915, Hongyi Building, 2158 Wanyuan Road Minhang Direction, Shanghai, China
 


 

_______________________________________________
 LLVMLinux mailing list
 LLVMLinux at lists.linuxfoundation.org
 https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux





-- 
 Simplicity is the ultimate sophistication
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20140615/c2b3ca6f/attachment-0001.html>


More information about the LLVMLinux mailing list