Discussion:
[9fans] System build: /sparc64 file does not exist; NOT on sparc64
(too old to reply)
Strake
2012-04-22 01:17:04 UTC
Permalink
Hello. I wish to build Plan 9, but build fails thus:
% pwd
/sys/src
% mk install
...
cd libmach
6c -FTVw -I/sys/src/cmd (2 5 7 8 q u)^.c
u.c:7 6c: '/sparc64' file does not exist: /sparc64/include/ureg.h
...
%

I am not on sparc64 machine. I tried to disable all arch but (6 9) in
mkfile, but then build fails thus:
% mk install
...
cd cmd
...
6^l -o 6.ar ar.6
Bungetc: _is^(2 5 7 8 k q u v)^: not defined
Bungetc: _read^(2 5 7 8 k q u v)^: not defined
...
%

Only alterations to system are nix and pc-etheryuk, both from 9legacy,
both which I doubt to cause this failure.

I looked at libbio/bgetc.c, where Bungetc is defined, but found no such calls.

I searched 9fans archive for "sparc64 file does not exist" but got no hits.

I have no idea what to do. How can I build Plan 9?

Thanks.
Cheers,
strake
Lucio De Re
2012-04-22 05:06:03 UTC
Permalink
Post by Strake
I am not on sparc64 machine. I tried to disable all arch but (6 9) in
What are you on?

Obviously there is an error in the build procedure, but it would be useful to know what is triggering it.

On my workstation:

term% cat /dev/archctl
cpu PentiumIII/Xeon 931 pge
pge on
coherence mb586
cmpswap cmpswap486
i8253set on
cache default uc
cache 0x0 268435456 wb
cache 0xf800000 8388608 uc
cache 0xd8000000 67108864 wc
cache 0xd0000000 67108864 wc

++L
David du Colombier
2012-04-22 08:34:37 UTC
Permalink
Post by Strake
% mk install
...
cd libmach
6c -FTVw -I/sys/src/cmd (2 5 7 8 q u)^.c
u.c:7 6c: '/sparc64' file does not exist: /sparc64/include/ureg.h
...
%
There is obviously a problem on your Plan 9 installation.

The file /sparc64/include/ureg.h shouldn't be missing,
and is a requirement to build libmach.

Here is the full procedure to restore the /sparc64
directory from Bell Labs:

% echo 'srv -APW fossil' >> /srv/fscons
% mount -c /srv/fossil /n/fossil
% rm -rf /n/fossil/sparc64
% mkdir /n/fossil/sparc64
% 9fs sources
% dircp /n/sources/plan9/sparc64 /n/fossil/sparc64
% unmount /n/fossil
% rm /srv/fossil
--
David du Colombier
Strake
2012-04-22 17:30:54 UTC
Permalink
Post by David du Colombier
Post by Strake
% mk install
...
cd libmach
6c -FTVw -I/sys/src/cmd (2 5 7 8 q u)^.c
u.c:7 6c: '/sparc64' file does not exist: /sparc64/include/ureg.h
...
%
There is obviously a problem on your Plan 9 installation.
The file /sparc64/include/ureg.h shouldn't be missing,
and is a requirement to build libmach.
Here is the full procedure to restore the /sparc64
% echo 'srv -APW fossil' >> /srv/fscons
% mount -c /srv/fossil /n/fossil
% rm -rf /n/fossil/sparc64
% mkdir /n/fossil/sparc64
% 9fs sources
% dircp /n/sources/plan9/sparc64 /n/fossil/sparc64
% unmount /n/fossil
% rm /srv/fossil
--
David du Colombier
I have no network controller driver so I just fetched the latest CD
image and reinstalled, and I have /sparc64.
Not sure why it I lacked it last time.
Anyhow, thanks for your trouble.

Cheers,
strake

Continue reading on narkive:
Loading...