Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2024 18:28:32 -0700
From:      Ed Alley <alley3ed@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        alley3ed@gmail.com
Subject:   Why clang and ld.lld?
Message-ID:  <CAMCnavUsmwBL0yCvq0AcbFOhMXY%2BsrYH0n7zWU41crkZ44=tdg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000002e42e30620c8656b
Content-Type: text/plain; charset="UTF-8"

I have been with FreeBSD since the days of FBSD.4.x. I have always
been happy with its performance. I am running AMD64, currently at
FBSD 13.2. I was previously running FBSD 8.x and I was very happy
with its performance. It was running gnu software: a gcc compiler
and a gnu BFD loader.

I run a large physics code that needs to invert a large matrix
by Gauss elimination. The operation gets very sensitive at certain
time intervals. However, since I upgraded my system to FBSD 13.2
things have gone on the rocks: The iteration does not converge.
To top it off I can't seem to get gcc to compile nor am I able to
get the old gnu BFD loader to compile.

I think that there is something wrong with the clang compiler:
It is either not using the math unit properly (round off?) or
double precision doesn't mean what it used to mean. I also do
not like the way the ld.lld loader works: for one thing it does
not allow me to define variables in an over all h-file, but
complains that the variable is multi valued! That is not how
C has worked for as long as I have been working with it.
For example: I had to put in a -Xlink --allow-.. in the command
line to ignore the error message, which was never was an error
message in Kernighan and Ritchie C.

This code that I am running is more than 20 years old and has
been running well under the earlier FreeBSDs. It also ran well
under Linux. I moved to FREEBSD because it handled multi-user
enviroments very well; At the time Linux was developed under
the assumption the computer environment was single-user. I
don't know if Linux can handle multi-user better today,
but I know that I can get a gcc compiler and a BFD loader
under Linux.

Should I think about changing to Linux?


    A disappointed FBSD user.

--0000000000002e42e30620c8656b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I have been with FreeBSD since the days of FBSD.4.x. I hav=
e always<br>been happy with its performance. I am running AMD64, currently =
at<br>FBSD 13.2. I was previously running FBSD 8.x and I was very happy<br>=
with its performance. It was running gnu software: a gcc compiler<br>and a =
gnu BFD loader.<br><br>I run a large physics code that needs to invert a la=
rge matrix<br>by Gauss elimination. The operation gets very sensitive at ce=
rtain<br>time intervals. However, since I upgraded my system to FBSD 13.2<b=
r>things have gone on the rocks: The iteration does not converge.<br>To top=
 it off I can&#39;t seem to get gcc to compile nor am I able to<br>get the =
old gnu BFD loader to compile.<br><br>I think that there is something wrong=
 with the clang compiler:<br>It is either not using the math unit properly =
(round off?) or<br>double precision doesn&#39;t mean what it used to mean. =
I also do<br>not like the way the ld.lld loader works: for one thing it doe=
s<br>not allow me to define variables in an over all h-file, but<br>complai=
ns that the variable is multi valued! That is not how<br>C has worked for a=
s long as I have been working with it.<br>For example: I had to put in a -X=
link --allow-.. in the command<br>line to ignore the error message, which w=
as never was an error<br>message in Kernighan and Ritchie C.<br><br>This co=
de that I am running is more than 20 years old and has<br>been running well=
 under the earlier FreeBSDs. It also ran well<br>under Linux. I moved to FR=
EEBSD because it handled multi-user<br>enviroments very well; At the time L=
inux was developed under<br>the assumption the computer environment was sin=
gle-user. I<br>don&#39;t know if Linux can handle multi-user better today,<=
br>but I know that I can get a gcc compiler and a BFD loader<br><div>under =
Linux.</div><div><br></div><div>Should I think about changing to Linux?<br>=
</div><br><br>=C2=A0 =C2=A0 A disappointed FBSD user.</div>

--0000000000002e42e30620c8656b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMCnavUsmwBL0yCvq0AcbFOhMXY%2BsrYH0n7zWU41crkZ44=tdg>