Discussion in "ARM Development" started by    Samimash    May 16, 2017.
Tue May 16 2017, 01:26 PM
#1
hello friends
i recently got a nanopi m1,i begin with the official documentation :"http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M1#Make_Your_Own_Debian"
i downloaded the lichee source code and this toolchain:gcc-linaro-arm.tar.xz as the document said
but when i try to compile the source code,i got this error:
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
ERROR: build kernel Failed

is it a compiler problem?
i am running Ubuntu 17.04 and i am a beginner in both arm processor and Linux environment but i have a background in electronics
thank you



[ Edited Tue May 16 2017, 01:27 PM ]
Tue May 16 2017, 05:05 PM
#2
I'm sure this is a compiler / Linux problem.
In Linux, what you type is critical, every letter and space counts.
Directory paths are critical.
Did you set up the directories exactly as directed, same names, including
upper case and lower case letters ?
Have you switched to the right directory before starting to compile ?

You will probably get better help from a Linux support site.
If you want to keep trying here...
post a screen shot of exactly what you were doing when you got the message.
Clearly the compiler can't find the file "cc1" . Do you know what file that is ,
or is "cc1" a spelling mistake ?


[ Edited Tue May 16 2017, 05:19 PM ]
 Samimash like this.
Wed May 17 2017, 04:37 AM
#3
thank you for your reply friend
'cc1' is a file actually

whole code :
./build.sh -p sun8iw7p1 -b nanopi-h3
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw7p1
INFO: platform: linux
INFO: business: 
INFO: kernel: linux-3.4
INFO: board: nanopi-h3
INFO: output: out/sun8iw7p1/linux/nanopi-h3
INFO: ----------------------------------------
INFO: build kernel ...
INFO: prepare toolchain ...
INFO: skip kernel clean for nanopi-h3 Linux system.
Building kernel
/home/sami/lichee/linux-3.4/output/lib/modules/3.4.39-h3
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
/home/sami/lichee/linux-3.4/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  CC      scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:507: recipe for target 'scripts' failed
make: *** [scripts] Error 2
ERROR: build kernel Failed
INFO: use a fake rootfs.ext4.
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00234644 s, 447 MB/s
mke2fs 1.43.4 (31-Jan-2017)

Filesystem too small for a journal
INFO: ----------------------------------------

INFO: build sun8iw7p1 linux  lichee OK

INFO: ----------------------------------------



[ Edited Wed May 17 2017, 08:06 AM ]
Thu May 18 2017, 11:28 PM
#4
Linux can be a minefield of make files, scripts and path settings.
If you find file 'cc1' on your system you might be able to see why it can't be found.
It might not even be included in the packages you downloaded.

I see that the page
"http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M1#Make_Your_Own_Debian"
offers pre-built images.
Honestly, I'd use one of them, and come back to "Make_Your_Own_Debian" when you
have a week or two to spare.
Fri May 19 2017, 07:01 AM
#5
To me it looks like your development environment is not setup properly.
Did you clone the repo successfully? Any missing file or failed clone can lead to issue.
git clone https://github.com/friendlyarm/h3_lichee.git lichee

You can try to reset your repo the the head and try to build again.
# git reset --hard


Did you install all the dependency packages correctly?
sudo apt-get install gawk git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386

Get Social

Information

Powered by e107 Forum System

Conversation

Fri Sep 29 2017, 02:45 AM
Maaz
i am doing the same project on verilog please contact me [email protected]
Wed Sep 20 2017, 12:36 AM
Ted
In a missing pulse detector using a 555 timer connected as a monostable vibrator with a PNP transistor,how does the positve input pulse turn on the PNP transistor?
Sun Sep 03 2017, 02:29 PM
martymarty
How do I connect an <NOKIA 1100 LCD > to an atmega328P ?
poojab51296
Sun Aug 20 2017, 10:23 AM
i am intending to interface sd card with STM32F4 and want to write a file in sd card using SPI protocol but using HAL only. Can anyone help me PLEASE!!!!
poojab51296
Sun Aug 20 2017, 10:22 AM
hello
rawat742
Fri Aug 18 2017, 11:37 AM
hi @ angel patel i will attach a file i hope it will be helpfull for you
ExperimenterUK
Mon Aug 14 2017, 09:57 PM
@ angel patel... just log in and post your problem
Mon Aug 14 2017, 01:45 PM
angel patel
hey any one help to make the led scrolling display
desuza6
Sat Jul 29 2017, 07:09 AM
I see the code for step motor h l 298 to rotate 45 degree, but all delay time, if I want to input sensor to h the pulses to stepmotor
rammichael
Thu Jul 27 2017, 12:05 PM
okay fine

Downloads

Comments

TinkeringJoe
Sun Oct 15 2017, 02:23 AM
Tubai96
Thu Oct 12 2017, 05:30 PM
roberttku
Thu Oct 12 2017, 08:02 AM
Bdavid.sam
Mon Oct 09 2017, 02:23 PM
SUNSHINE
Thu Oct 05 2017, 03:54 AM
Dogg4live77
Wed Oct 04 2017, 01:58 AM
RajeSH190295
Mon Oct 02 2017, 10:08 AM
Jatin2710
Tue Sep 26 2017, 01:37 PM

Online

Guests: 75, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 37901
Newest member: TinkeringJoe
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Oct 16 2017, 11:44 PM
That looks complicated.Is 8051_BLK a standard 80...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 15 2017, 07:29 PM
According to this, gmail should support POP3.https...
Help Avatar
Posted By Help
Sun Oct 15 2017, 03:21 AM
AT+POP3READ=? +POP3READ: (1-1460) OK AT+POP3READ=...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sat Oct 14 2017, 08:06 PM
What happens if you ask for the full email ieAT+PO...
Help Avatar
Posted By Help
Sat Oct 14 2017, 02:28 AM
Dear all, AT // OK // 3.1 Bearer profile // Conf...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Oct 12 2017, 01:04 AM
I don't think the 0804 works as it should in Prote...
Bdavid.sam Avatar
Posted By Bdavid.sam
Wed Oct 11 2017, 01:54 AM
Are you simulating in Orcad ?Please post your cod...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Oct 10 2017, 09:43 PM
Are you simulating in Orcad ?Please post your cod...
Bdavid.sam Avatar
Posted By Bdavid.sam
Mon Oct 09 2017, 02:38 PM
Hello, This might be a beginner’s mistake but I a...
kira113 Avatar
Posted By kira113
Sun Oct 08 2017, 08:42 PM
https://drive.google.com/open?id=0B_IGcFftMx3fYV9V...