Bug 266143 - x11-servers/xorg-server: build fails
Summary: x11-servers/xorg-server: build fails
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 20:52 UTC by Michael Faklis
Modified: 2022-09-05 05:53 UTC (History)
4 users (show)

See Also:
fernape: maintainer-feedback? (x11)


Attachments
Showing error attempting to build xorg (21.77 KB, image/png)
2022-08-31 20:52 UTC, Michael Faklis
no flags Details
script log of re-make of xorg (35.48 KB, text/plain)
2022-09-01 16:44 UTC, Michael Faklis
no flags Details
uname -u (4.87 KB, image/png)
2022-09-01 16:45 UTC, Michael Faklis
no flags Details
failed to reclaim memory (20.23 KB, image/png)
2022-09-02 20:32 UTC, Michael Faklis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Faklis 2022-08-31 20:52:28 UTC
Created attachment 236271 [details]
Showing error attempting to build xorg

I was attempting to build xorg.  The build errored out, telling me to try setting MAKE_JOBS_UNSAFE=yes, but it still errored out.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-09-01 06:38:40 UTC
Hi Michael,

Could you provide the full log and provided some information about what version of FreeBSD you are running?

Thanks!
Comment 2 Michael Faklis 2022-09-01 16:44:36 UTC
Created attachment 236291 [details]
script log of re-make of xorg

Thank you for you attention.  I have attached a screen capture of uname -u, and a script log of a re-attempt to build xorg again.
Comment 3 Michael Faklis 2022-09-01 16:45:26 UTC
Created attachment 236292 [details]
uname -u
Comment 4 Fernando Apesteguía freebsd_committer freebsd_triage 2022-09-02 17:54:11 UTC
OK, the error is not with xorg but building llvm which is a dependency. Since the error occurs with flang, my guess is that your system might be running out of memory. Could you check /var/log/messages for something like that?
Comment 5 Michael Faklis 2022-09-02 20:32:20 UTC
Created attachment 236320 [details]
failed to reclaim memory

Memory problems?  You were correct (see attachment).  I wasn't expecting that because it was running the make with a single thread with 8 GB.  I'm not sure how I can fix this because I have no more memory to give it.
Comment 6 Michael Faklis 2022-09-02 20:36:17 UTC
I can spend some time making a smaller kernel.  It was running the make single-threaded with 8 GB of ram.  It may take me a day or two working on the kernel.

See the attachment for a screen print of the error found in messages.
Comment 7 Ronald Klop 2022-09-02 21:07:43 UTC
(In reply to Michael Faklis from comment #6)
You can install llvm13 from packages before building your port.
Or configure more swap. I sometimes temporarily add a file as swap for these kind of things.
Comment 8 Fernando Apesteguía freebsd_committer freebsd_triage 2022-09-03 07:25:09 UTC
Yes, please install llvm13 from packages. Unless you need customization of the ports, packages might be more convenient. Large applications requiere huge amounts of memory. There was a similar problem not long ago with mongodb.
Comment 9 Fernando Apesteguía freebsd_committer freebsd_triage 2022-09-05 05:53:09 UTC
Closing since this is not really a bug but just a port that requires more memory than the user has. A workaround (installing from packages) has been provided.

Thanks!