RetroBSD
http://retrobsd.org/

ccom status 127
http://retrobsd.org/viewtopic.php?f=16&t=37487
Page 1 of 1

Author:  Pito [ Mon Jan 11, 2016 7:34 pm ]
Post subject:  ccom status 127

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

Author:  ibara [ Mon Jan 11, 2016 8:27 pm ]
Post subject:  Re: ccom status 127

ccom lives in /usr/libexec
Can you cd into usr.bin/pcc on your build machine and see if it compiles cleanly?

Author:  Pito [ Mon Jan 11, 2016 8:34 pm ]
Post subject:  Re: ccom status 127

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)

Author:  ibara [ Mon Jan 11, 2016 8:50 pm ]
Post subject:  Re: ccom status 127

Code:
cd usr.bin/pcc && make clean && make cleandir && make build

Author:  Pito [ Mon Jan 11, 2016 8:56 pm ]
Post subject:  Re: ccom status 127

In /usr.bin/
uucp
strip
sort
ranlib
pcc
locate
file
grep
ex
diff
cp
are with old timestamps, the others are current..

Author:  Pito [ Mon Jan 11, 2016 9:02 pm ]
Post subject:  Re: ccom status 127

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.

Author:  majenko [ Mon Jan 11, 2016 9:03 pm ]
Post subject:  Re: ccom status 127

bmake clean :P

Author:  ibara [ Mon Jan 11, 2016 9:04 pm ]
Post subject:  Re: ccom status 127

Right, s/make/bmake/

Author:  Pito [ Mon Jan 11, 2016 9:08 pm ]
Post subject:  Re: ccom status 127

:)
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$


Author:  ibara [ Mon Jan 11, 2016 9:09 pm ]
Post subject:  Re: ccom status 127

Run just bmake

Author:  Pito [ Mon Jan 11, 2016 9:13 pm ]
Post subject:  Re: ccom status 127

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$

Author:  Pito [ Mon Jan 11, 2016 9:17 pm ]
Post subject:  Re: ccom status 127

My DESTDIR is in LiteBSD, this might be the issue?

Author:  ibara [ Mon Jan 11, 2016 9:33 pm ]
Post subject:  Re: ccom status 127

Your directories look right. But you might have to rebuild your tree.

Author:  Pito [ Mon Jan 11, 2016 9:55 pm ]
Post subject:  Re: ccom status 127

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?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/