From nobody Thu Aug 29 01:28:32 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WvNwH0Tqpz5Pbgs for ; Thu, 29 Aug 2024 01:28:47 +0000 (UTC) (envelope-from alley3ed@gmail.com) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WvNwF315hz4RJ4 for ; Thu, 29 Aug 2024 01:28:45 +0000 (UTC) (envelope-from alley3ed@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=EGFMHL1e; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of alley3ed@gmail.com designates 2607:f8b0:4864:20::52c as permitted sender) smtp.mailfrom=alley3ed@gmail.com Received: by mail-pg1-x52c.google.com with SMTP id 41be03b00d2f7-7ae3d7222d4so60671a12.3 for ; Wed, 28 Aug 2024 18:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724894923; x=1725499723; darn=freebsd.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PFC97S209Lebz81HEYReGDObNwu1UfwhgbzfOluDM9k=; b=EGFMHL1eTRcYZT/m1hBe4G+ebkjDFYqwg6+hqBnaTp4niVsR+/kJ+dnWJ52bfF0C27 rohC+nBF+U/wZ5/iLNtjDnMem3622BNirCbq3yMWsB1akY8T65AR6X+JYdNkU66K6uA3 6lfJKDtg4nqd21Au+nYnv7h+KDHtudNBxZc0AQ0DcKQaKb2ZqXkFVRLmRyYSNxCZ3PN7 yViXqTZcUJMt+Tdz168x+xgphRkygg9JSRBHUS4XqOn3Zw25lf85Lina8AvDKtwsg+o0 l/I8zHgMbqeXAYRt/R0HD/lwXJFfHI2lEZWgAichIfTZD7OVIB4Qmr4mjuOz8x2R1aGl Mu7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724894923; x=1725499723; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PFC97S209Lebz81HEYReGDObNwu1UfwhgbzfOluDM9k=; b=RQ2cW0dGh7lODRrnPcbVmA+Jkblt6GS/P1QccxND8quDEAeKT2oVe2RW5NZX2Lc4Do /tGgmw7Y8xRLsQDvbywp6FZZJyudvPa8zPy8gG+2oZND5xy3BsMdNurdhGTGIQWZALVd vXgnhCFFJkQz6ki1UfmJOgNbQg87rkxqWFxn1eryyQfSO0Ua+zRX9L6WNqdK53lC4M12 N1I3eIp8zP20CJ+tdGo7iYHu31EgMA/bM+6r4+cQ459VJV3YrSXYpVkTnBvxMaVYIXRS fIUKTGCKtWClD10kEilRdjuXe0CQUe0amOtovQFs4+702RR8n7R41vQGPknO2HHrpSUz +lmQ== X-Gm-Message-State: AOJu0YyD0e3dgSIxy349MJjbqnaQa6thhGqyAlOzxq9sPEIs7dt3rtCy A/BfN0Tf9cgVJAvkJ1u6k3kuymMKKuR3x4f9Q19D/fucrwX6lz4X1wq7KeDWoU+MvF+i1G4CruT TSwJE9hFVaX6lZ5DrLs/qiA/Zaw9cMd2LA3M= X-Google-Smtp-Source: AGHT+IHxNRAr9MkL0Df2KZ/3/HX35eDI9IVMVDDmdJE5/k8U54/vYaHKIwbPSpO26CxfjtwZtt7m75CrapmqGCzDROQ= X-Received: by 2002:a05:6a21:1584:b0:1c4:23f0:9665 with SMTP id adf61e73a8af0-1cce1026628mr1154949637.29.1724894923338; Wed, 28 Aug 2024 18:28:43 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 From: Ed Alley Date: Wed, 28 Aug 2024 18:28:32 -0700 Message-ID: Subject: Why clang and ld.lld? To: freebsd-questions@freebsd.org Cc: alley3ed@gmail.com Content-Type: multipart/alternative; boundary="0000000000002e42e30620c8656b" X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52c:from] X-Rspamd-Queue-Id: 4WvNwF315hz4RJ4 --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
I have been with FreeBSD since the days of FBSD.4.x. I hav= e 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 la= rge matrix
by Gauss elimination. The operation gets very sensitive at ce= rtain
time intervals. However, since I upgraded my system to FBSD 13.2things 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 doe= s
not allow me to define variables in an over all h-file, but
complai= ns that the variable is multi valued! That is not how
C has worked for a= s long as I have been working with it.
For example: I had to put in a -X= link --allow-.. in the command
line to ignore the error message, which w= as never was an error
message in Kernighan and Ritchie C.

This co= de 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 FR= EEBSD because it handled multi-user
enviroments very well; At the time L= inux was developed under
the assumption the computer environment was sin= gle-user. I
don'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
under = Linux.

Should I think about changing to Linux?
=


=C2=A0 =C2=A0 A disappointed FBSD user.
--0000000000002e42e30620c8656b--