Discussion:
compile freebsd on ubuntu
王伟
2021-04-27 05:39:03 UTC
Permalink
Dear friend:

I am compiling the freebsd kernal on ubuntu with this command :

sudo bmake -j1 buildworld KERNCONF=MODEDKERNEL COMPILER_TYPE=gcc TARGET=amd64 TARGET_ARCH=amd64

beacuse make cannot work so i use the bmake but it take the error that:

rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1

how can i fix this error

i download the system code from the github, and compile it on the workpalce.

the full log is that:



install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/ftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/inet.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser_compat.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/tftp.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/telnet.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/arpa/ ===> include/protocols (includes) install -U -T package=utilities,dev -C -o root -g wheel -m 444 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/dumprestore.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/routed.h /home/lyw
/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/rwhod.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/talkd.h /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/timed.h /usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/protocols/ ===> include/rpcsvc (includes) RPCGEN_CPP=cpp\ --sysroot=/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp\ -B/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/bin rpcgen -C -h -DWANT_NFS3 /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc/key_prot.x -o key_prot.h rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1

bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc 1 error

bmake[4]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc *** [includes_subdir_include/rpcsvc] Error code 2

bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include 1 error

bmake[3]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include *** [includes_subdir_include] Error code 2

bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error

bmake[2]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [_includes] Error code 2

bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error

bmake[1]: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 *** [buildworld] Error code 2

bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error

bmake: stopped in /home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0?
Michael Schuster
2021-04-27 10:16:15 UTC
Permalink
Hi 王伟
I'd be *very* surprised if this works (not saying that won't happen ...
just not expecting it). I think a better (and quicker) approach would be to
create a FreeBSD VM with one of the existing images, and then build in
there.

regards
Michael
Post by 王伟
sudo bmake -j1 buildworld KERNCONF=MODEDKERNEL COMPILER_TYPE=gcc
TARGET=amd64 TARGET_ARCH=amd64
rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
how can i fix this error
i download the system code from the github, and compile it on the workpalce.
install -U -T package=utilities,dev -C -o root -g wheel -m 444
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/ftp.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/inet.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/nameser_compat.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/tftp.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/arpa/telnet.h
/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/arpa/
===> include/protocols (includes) install -U -T package=utilities,dev -C -o
root -g wheel -m 444
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/dumprestore.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/routed.h
/home/lyw
/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/rwhod.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/talkd.h
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/protocols/timed.h
/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/include/protocols/
===> include/rpcsvc (includes) RPCGEN_CPP=cpp\
--sysroot=/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp\
-B/usr/obj/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/amd64.amd64/tmp/usr/bin
rpcgen -C -h -DWANT_NFS3
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc/key_prot.x
-o key_prot.h rpcgen: execvp cpp: No such file or directory ***
[key_prot.h] Error code 1
bmake[4]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc
1 error
bmake[4]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include/rpcsvc
*** [includes_subdir_include/rpcsvc] Error code 2
bmake[3]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include 1
error
bmake[3]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0/include
*** [includes_subdir_include] Error code 2
bmake[2]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[2]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 ***
[_includes] Error code 2
bmake[1]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake[1]: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 ***
[buildworld] Error code 2
bmake: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0 1 error
bmake: stopped in
/home/lyw/Lyw/workspace/project_kernal/freebsd-src-release-13.0.0?
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'
Thomas Mueller
2021-04-28 02:39:43 UTC
Permalink
Post by 王伟
sudo bmake -j1 buildworld KERNCONF=MODEDKERNEL COMPILER_TYPE=gcc TARGET=amd64 TARGET_ARCH=amd64
rpcgen: execvp cpp: No such file or directory *** [key_prot.h] Error code 1
how can i fix this error
i download the system code from the github, and compile it on the workpalce.
If you download the src tree, or src and xsrc trees, for NetBSD, there are directions of how to cross-compile NetBSD from other (quasi-)Unixes.

NetBSD now uses cvs but has been moving slowly to switch to mercurial (hg) for downloading src, xsrc and pkgsrc trees.

NetBSD has tools and documentation on how to cross-compile NetBSD userland and kernel.

There is a build.sh in the src directory that is recommended instead of using make directly.

FreeBSD has not developed this infrastructure for cross-compiling, though there has been some talk about producing such an infrastructure.

My question would be the other way around, how to cross-compile Linux from FreeBSD or NetBSD.

This would not be a full-fledged Ubuntu or other fancy distro, but more comparable to FreeBSD or NetBSD base system.

Tom
Steve O'Hara-Smith
2021-04-28 06:10:30 UTC
Permalink
On Wed, 28 Apr 2021 02:39:43 +0000
Post by Thomas Mueller
My question would be the other way around, how to cross-compile Linux
from FreeBSD or NetBSD.
This would not be a full-fledged Ubuntu or other fancy distro, but more
comparable to FreeBSD or NetBSD base system.
I'd be inclined to use a jail with a Linux userland in it, they
work well - I have one running CUPS so that I can use the Brother binary
drivers without losing my sanity (I tried to install them in FreeBSD CUPS
once!).
--
Steve O'Hara-Smith <***@sohara.org>
Thomas Mueller
2021-04-28 09:36:42 UTC
Permalink
Post by Steve O'Hara-Smith
On Wed, 28 Apr 2021 02:39:43 +0000
Post by Thomas Mueller
My question would be the other way around, how to cross-compile Linux
from FreeBSD or NetBSD.
This would not be a full-fledged Ubuntu or other fancy distro, but more
comparable to FreeBSD or NetBSD base system.
I'd be inclined to use a jail with a Linux userland in it, they
work well - I have one running CUPS so that I can use the Brother binary
drivers without losing my sanity (I tried to install them in FreeBSD CUPS
once!).
--
I don't have the Linux userland yet, have parts, still need to build gcc and the Linux kernel.

With FreeBSD's and NetBSD's Linux emulations, maybe I could temporarily get by even without the Linux kernel.

I know what you mean by printing difficulties in FreeBSD.

My experience with HP LaserJet Pro M1212nf MFP is such that I don't want to buy another HP product ever again.

Big problem was the need for a proprietary binary plugin needed for full functionality. It was never able to download.

Tom
@lbutlr
2021-04-28 13:09:28 UTC
Permalink
Post by Thomas Mueller
My experience with HP LaserJet Pro M1212nf MFP is such that I don't want to buy another HP product ever again.
Last good HP printer I had was a Laserjet 4MP, beck when HP was still HP and the the garbage it is now.

I've had to work WITH some HP printers over the years since and they get progressively worse, but the brand name still means something to a lot of people (well, to me too, but to me it means "hot garbage").

OTOH, I no longer need a printer either, so…
--
What is best in life? To crush your enemies, see them driven before
you, and to hear the lamentation of the women
Michael Schuster
2021-04-28 13:16:09 UTC
Permalink
changed the subject to reflect change of subject ;-)
Post by Thomas Mueller
Post by Thomas Mueller
My experience with HP LaserJet Pro M1212nf MFP is such that I don't want
to buy another HP product ever again.
so ... what make and model do people use with FreeBSD? Do we have a wiki
somewhere where people note down their experience?
cheers!
--
Michael Schuster
http://recursiveramblings.wordpress.com/
recursion, n: see 'recursion'
Valeri Galtsev
2021-04-28 14:43:13 UTC
Permalink
Post by Steve O'Hara-Smith
On Wed, 28 Apr 2021 02:39:43 +0000
Post by Thomas Mueller
My question would be the other way around, how to cross-compile Linux
from FreeBSD or NetBSD.
This would not be a full-fledged Ubuntu or other fancy distro, but more
comparable to FreeBSD or NetBSD base system.
I'd be inclined to use a jail with a Linux userland in it, they
work well - I have one running CUPS so that I can use the Brother binary
drivers without losing my sanity (I tried to install them in FreeBSD CUPS
once!).
Is the World out of postscript (or PCL) printers? (thank you, Adobe, for what you have done tin the past, postscript is one of these things!). As one could use generic postscript (or PCL) driver. I must confess, our printers are HP mostly. We dumped Xerox for good after they started obsoleting 5 years old printers by making aftermarket supplies manufacturing unprofitable first, then stopping manufacturing supplies. Even though I do agree with xerox old motto (“We taught the world how to copy”), I dumped them for good.

We used HP for over a couple of decades. 20 years old black and white printer (HP 4050) used and abused a lot, still works. Some 5 years ago I had harder time to choose HP printers for the department, but still was able to get reliable model. No trouble to install it on CUPS print server (which lives in FreeBSD jail - FreeBSD userland in jail, not Linux). I only have one complaint about that printer: it dumps the job which comes when printer is out of paper, I have found no way around that idiocy.

I would like to hear what people use these days to print from FreeBSD. As I’ve heard complaints about HP printers department decline (on this thread, which chime with my own feeling of beginning of that process when I was looking for printers 5 years ago).


OT

Way back there were two ways to decipher HP in addition to its "Hewlett-Packard" one.

High Price

Horse Power

Which both were true in the day - they were actually about HP measurement equipment (what has become Agilent Technologies IIRC), - these electronics measurement devices were really expensive on one hand, and they were worth every penny you paid for them on the other, justifying both of the above.

Valeri
Post by Steve O'Hara-Smith
--
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
Steve O'Hara-Smith
2021-04-28 15:56:59 UTC
Permalink
On Wed, 28 Apr 2021 09:43:13 -0500
Post by Valeri Galtsev
Post by Steve O'Hara-Smith
I'd be inclined to use a jail with a Linux userland in it, they
work well - I have one running CUPS so that I can use the Brother binary
drivers without losing my sanity (I tried to install them in FreeBSD
CUPS once!).
Is the World out of postscript (or PCL) printers? (thank you, Adobe, for
No but practical matters like budget (home not work) and the desire
for A3 printing and scanning intervened between the ideal printer spec and
the chosen purchase which was as always a compromise. OTOH it's still going
strong eight years (mostly light with short bursts of heavy use) on and it
has never done anything nasty - so it ain't broke so there's no excuse to
fix it with "ooh shiny" even if it isn't exactly a great printer.
Post by Valeri Galtsev
what you have done tin the past, postscript is one of these things!).
Indeed a networked PostScript or PCL printer is simplicity itself
to drive.
--
Steve O'Hara-Smith | Directable Mirror Arrays
C:\>WIN | A better way to focus the sun
The computer obeys and wins. | licences available see
You lose and Bill collects. | http://www.sohara.org/
James B. Byrne via freebsd-questions
2021-04-29 13:41:32 UTC
Permalink
Post by Michael Schuster
changed the subject to reflect change of subject ;-)
Post by Thomas Mueller
Post by Thomas Mueller
My experience with HP LaserJet Pro M1212nf MFP is such that I don't want
to buy another HP product ever again.
so ... what make and model do people use with FreeBSD? Do we have a wiki
somewhere where people note down their experience?
cheers!
we have had good success with Lexmark T700s and Lexmark MS711s
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Unencrypted messages have no legal claim to privacy
Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne mailto:***@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
Andrea Venturoli
2021-04-29 14:05:10 UTC
Permalink
Post by Michael Schuster
so ... what make and model do people use with FreeBSD? Do we have a wiki
somewhere where people note down their experience?
cheers!
Isn't OpenPrinting (https://openprinting.github.io) a good start?

bye
av.
Andrew Gould
2021-04-29 20:04:17 UTC
Permalink
Post by Andrea Venturoli
Post by Michael Schuster
so ... what make and model do people use with FreeBSD? Do we have a wiki
somewhere where people note down their experience?
cheers!
Isn't OpenPrinting (https://openprinting.github.io) a good start?
bye
av.
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
I liked apsfilter with networked printers that spoke postscript.

It looks like apsfilter was dropped from the ports, though.

Best of luck,

Andrew

Continue reading on narkive:
Loading...