RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Jun 27, 2019 2:08 am

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: ccom status 127
PostPosted: Mon Jan 11, 2016 7:34 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Hmm, latest pull and fresh fs install - and I get
Code:
# ls -l
total 4
-rw-r--r--  1 root  wheel  3007 Dec 30 04:50 rc4.c
# time cc -O2 -S -c rc4.c
Exec of ccom failed
error: ccom terminated with status 127
        1.83 real         1.52 user         0.01 sys
#

Cannot find ccom on fs.. :o

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 8:27 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
ccom lives in /usr/libexec
Can you cd into usr.bin/pcc on your build machine and see if it compiles cleanly?

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 8:34 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Where to look? - there is a lot of folders there.. The folder's timestamps are old..
The /usr.bin/pcc/pcc/cc/ccom/ccom binary is dated Jan1, the .o files there Jan10 (except 5 of them dated Jan1)

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 8:50 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Code:
cd usr.bin/pcc && make clean && make cleandir && make build

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 8:56 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
In /usr.bin/
uucp
strip
sort
ranlib
pcc
locate
file
grep
ex
diff
cp
are with old timestamps, the others are current..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:02 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$ ls
libs  Makefile  pcc
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$ make clean
Makefile:3: *** missing separator.  Stop.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:03 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
bmake clean :P

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:04 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Right, s/make/bmake/

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:08 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
:)
Code:
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$ bmake build
bmake: don't know how to make build. Stop

bmake: stopped in /home/pito/LiteBSD2/LiteBSD/usr.bin/pcc
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$ ls -l
total 12
drwxrwxr-x 8 pito pito 4096 Dec 30 23:09 libs
-rw-rw-r-- 1 pito pito   38 Dec 30 23:09 Makefile
drwxrwxr-x 8 pito pito 4096 Jan 10 21:46 pcc
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$


_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:09 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Run just bmake

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:13 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$ bmake
===> pcc
===> cc
===> cc/cc
/usr/local/mips-2014.05/bin/mips-sde-elf-gcc -mips32r2 -EL -msoft-float -nostdinc -Werror -Os -I/home/pito/LiteBSD/DESTDIR/usr/include -Wall -Wmissing-prototypes -Wshadow -Wsign-compare -Wno-error  -ffunction-sections -fdata-sections  -DLIBEXECDIR=\"/usr/libexec/\"  -DGCC_COMPAT -DINCLUDEDIR=\"/usr/include/\"  -DPCCINCDIR=\"/usr/lib/pcc/mipsel-unknown-litebsd0.1/1.2.0.DEVEL/include/\" -DPCCLIBDIR=\"/usr/lib/pcc/mipsel-unknown-litebsd0.1/1.2.0.DEVEL/lib/\"  -Dos_litebsd -Dmach_mips -DTARGOSVER=0  -DCXXPROGNAME=\"p++\"  -DCPPROGNAME=\"pcpp\"  -I../../cc/driver -I../..  -I../../os/litebsd -I../../mip -I../../arch/mips -c -o cc.o ./cc.c
./cc.c:83:23: fatal error: sys/types.h: No such file or directory
 #include <sys/types.h>
                       ^
compilation terminated.
*** Error code 1

Stop.
bmake[3]: stopped in /home/pito/LiteBSD2/LiteBSD/usr.bin/pcc/pcc/cc/cc
*** Error code 1

Stop.
bmake[2]: stopped in /home/pito/LiteBSD2/LiteBSD/usr.bin/pcc/pcc/cc
*** Error code 1

Stop.
bmake[1]: stopped in /home/pito/LiteBSD2/LiteBSD/usr.bin/pcc/pcc
*** Error code 1

Stop.
bmake: stopped in /home/pito/LiteBSD2/LiteBSD/usr.bin/pcc
pito@UBU1404:~/LiteBSD2/LiteBSD/usr.bin/pcc$

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:17 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
My DESTDIR is in LiteBSD, this might be the issue?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:33 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Your directories look right. But you might have to rebuild your tree.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: ccom status 127
PostPosted: Mon Jan 11, 2016 9:55 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
There was the issue with my dirs..
Now it works:
Code:
# ls
rc4.c
# cc -O2 -S -c rc4.c
# ls -l
total 16
-rw-r--r--  1 root  wheel  3007 Dec 30 04:50 rc4.c
-rw-r--r--  1 root  wheel  8334 Jan 11 13:41 rc4.s
# cd /usr/libexec
# ls
bugfiler        diffh           lfs_cleanerd    mail.local      rshd
ccom            fingerd         locate.bigram   makekey         telnetd
comsat          ftpd            locate.code     ntalkd          tftpd
cpp             getNAME         locate.updatedb rexecd          uucpd
cxxcom          getty           lpr             rlogind
#


The problem:
I have got two LiteBSD repos locally:
/LiteBSD
and
/LiteBSD2/LiteBSD - here I am working now.

My .bashrc was set to
export BSDSRC=$HOME/LiteBSD
however it worked for quite a long, as I set manually
export BSDSRC=$HOME/LiteBSD2/LiteBSD
and had not closed the terminal.

Most probably I rebooted during the weekend, so the .bashrc applied.
You can see the issue here
Code:
/usr/local/mips-2014.05/bin/mips-sde-elf-gcc -mips32r2 -EL -msoft-float -nostdinc -Werror -Os -I/home/pito/LiteBSD/DESTDIR/usr/include

it should have included -I/home/pito/LiteBSD2/LiteBSD/DESTDIR/usr/include..

After I've done
export BSDSRC=$HOME/LiteBSD2/LiteBSD
it compiles fine..
:evil: :evil: :evil:

PS: btw I still see the old timestamps with above list of folders. Is that ok?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission