Is there a difference compiling on FreeBSD v 13 & FreeBSD v 14 ?
Is there a difference compiling on FreeBSD v 13 & FreeBSD v 14 ?
Funny, cgit.freebsd.org tells me that's not true:14 uses an older LLVM than 13 release right now.
13-RELEASE
had llvm9 for devel/llvm, while 14-RELEASE
had llvm15... I guess the lack of a leading zero in the version that was default for 13-RELEASE
threw some people off.Funny, cgit.freebsd.org tells me that's not true:13-RELEASE
had llvm9 for devel/llvm, while14-RELEASE
had llvm15... I guess the lack of a leading zero in the version that was default for13-RELEASE
threw some people off.
Hi grahamperrin,Which version of FreeBSD, exactly?
Packages of ports from quarterly, or latest?
freebsd--version -kru ; uname -aKU
pkg -vv | grep -e url -e enabled -e priority
freebsd--version -kru ; uname -aKU
14.0-RELEASE-p5
14.0-RELEASE-p5
14.0-RELEASE-p5
FreeBSD htpc.example.com 14.0-RELEASE-p5 FreeBSD 14.0-RELEASE-p5 #0: Tue Feb 13 23:37:36 UTC 2024 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd6
4.amd64/sys/GENERIC amd64 1400097 1400097
Most of the dependencies installed, actually. bash-completion complained about MAKE_JOBS_UNSAFE=yes setting, which I did, after which it compiled. foreign-cdm failed to compile a few times; I ended up installing it using pkg rather than compiling it.pkg -vv | grep -e url -e enabled -e priority
url : "pkg+http://pkg.freebsd.org/FreeBSD:14:amd64/quarterly",
enabled : yes,
priority : 0,
The host has 16 GB RAM and 174 GB SDD space.# portmaster /usr/ports/www/chromium
===>>> Currently installed version: chromium-122.0.6261.111
===>>> Port directory: /usr/ports/www/chromium
===>>> Launching 'make checksum' for www/chromium in background
===>>> Gathering dependency list for www/chromium from ports
===>>> The dependency for devel/llvm17
seems to be handled by llvm17-17.0.6_5
===>>> Initial dependency check complete for www/chromium
===>>> Starting build for www/chromium <<<===
===>>> All dependencies are up to date
===> Cleaning for chromium-122.0.6261.111
To build Chromium, you should have around 2GB of memory
and around 14 GB of free disk space.
===> License BSD3CLAUSE LGPL21 MPL11 accepted by the user
===> chromium-122.0.6261.111 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by chromium-122.0.6261.111 for building
===> Extracting for chromium-122.0.6261.111
=> SHA256 Checksum OK for chromium-122.0.6261.111.tar.xz.
=> SHA256 Checksum OK for chrome-linux-122.0.6261.111-llvm17.profdata.tar.xz.
If you compile enough, you'll see that kind of behavior from time to time. I've had that happen to me on a few ports, and every time I see that behavior on a different port. Never bothered to really pay attention and investigate that behavior, but I'd make an educated guess that it may have something to do with the hardware you have.As I was typing this, I realized that it actually compiled from the message posted above. I failed so many times, after the last crash I assumed it still didn't work, but apparently it did.
Yeah, for a big and heavy port like Chromium, you gotta have some special settings on your machine..What is weird about Chromium that it compiles fine for some, & doesn't compile for others.
This does not happen with other ports like "htop".
MAX_MEMORY=24
MAX_FILES=40960
MAX_EXECUTION_TIME=864000
JAIL_PARAMS="allow.mlock=true"
Chromium compiles fine for me under 14-stable.
Well then come up with some proper error messages, and/or differenciate which nondefault options are the problem. Default settings work here, and work elsewhere - otherwise there wouldn't be a pkg to download. I'm getting bored of this.sure,it works on 14-CURRENT here. But it is called Chrome. When it does not work at all is on FreeBSD 13.3 (at least for me). I'm not talking about the chromium package,but the port.
Nice job paying attention!Btw, does anybody know why Chromium had changed User Agent a while ago? It was FreeBSD, and now says Linux. Or is it just me, who cares?
called Chrome
% pkg provides bin/chrome$
Name : chromium-122.0.6261.111
Comment : Google web browser based on WebKit
Repo : FreeBSD-ports
Filename: usr/local/bin/chrome
%
Do you have that setting –DEFAULT_VERSIONS+=ssl=openssl
– in your/etc/make.conf
file, or not?
Bear in mind, it's a warning, not an error.
yes.
Now I'm sure that Chromium does not compile correctly on FreeBSD 13.3 because I've installed it from scratch and then I've launched the compilation. Anyway,the error that I've got is not the same that I've got on my main installation. This time is the following one :
Code:/compat/linux/opt/rh/devtoolset-11/root/usr/bin/gcc -Wall -Wextra -Wno-unused-parameter --sysroot=/compat/linux -02 -std=c99 -fPIC -shared -o build/override-linux.so src/override.c -ldl && chmod a+rX build/override-linux.so ELF binary type "0" not known sh : /compat/linux/opt/rh/devtoolset-11/root/usr/bin/gcc: exec format error
The port that fails is called "foreign-cdm".
You need brandelf, unless there is a problem with your Linux kernel module.
Nope. Please go back and see :