Closed RCoeurjoly closed 6 months ago
Note that make CXX=$CXX
builds yosys correctly.
Those are C++ standard headers that it can't find; I think there might be a problem with your compiler.
I see the same problem on amd64 Debian GNU/Linux testing for the yosys 0.38 release. My LLVM/clang++ works fine when compiling other C++ programs, and compiling yosys using the config-gcc also works.
So I think this is a bug in the config-clang target in the yosys build system.
Is there some way to make the yosys build system show the actual commands used to invoke the C++ compiler?
Is there some way to make the yosys build system show the actual commands used to invoke the C++ compiler?
Try make PRETTY=0
Note that
make CXX=$CXX
builds yosys correctly.
I suspect this is because all of the $(CONFIG) checks are along the lines of
ifeq ($(CONFIG),clang)
CXX = clang++
which means they won't use the environment variable by default.
Changing all of them to (e.g.) CXX ?= clang++
should fix this?
is this problem is solved ? I am getting the same error.
@ripudamank2 the fix has not been merged yet, have you tried the make CXX=$CXX
workaround?
While installing via ORFS, when downloading the Yosys package and attempting to execute the "make" command, it becomes stuck due to the error mentioned above. I need to find in the scripts where exactly i can put the command which you mention above.
According to their documentation you should be able to use --yosys-args STRING
when calling ./build_openroad.sh
, but if you're still having the same issue as the thread you had over there where you're not able to get past setup.sh
then that probably doesn't help.
If you want help for Yosys specifically I suggest trying to follow the Yosys instructions and using the workaround mentioned here instead of the open road instructions.
@ripudamank2 I think you might have something wrong with your linux configuration, looking at the logs.txt
you uploaded on the ORFS issue it is trying to apt-get from jammy (Ubuntu22) sources and focal (Ubuntu20) sources.
I was using ORFS few weeks ago without any problem but last week i deleted the ORFS and done git pull again . It was showing error. which version of clang++ should be used with yosys ?
I have version 10 locally, the CI tests run regularly against clang-11, clang-12, and clang-15
Can you try version 14 of clang ?
On Wed, 20 Mar 2024, 05:29 KrystalDelusion, @.***> wrote:
I have version 10 locally, the CI tests run regularly against clang-11, clang-12, and clang-15
— Reply to this email directly, view it on GitHub https://github.com/YosysHQ/yosys/issues/4244#issuecomment-2008644785, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBGEUVV7KQZZ2AGS3YI33TYZEGBTAVCNFSM6AAAAABD42ZX3OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBYGY2DINZYGU . You are receiving this because you were mentioned.Message ID: @.***>
clang-14, it also built with clang-13, clang-16, and clang-17 just fine. You can try git checkout krys/config-none
and then call make echo-cxx
(either with or without calling make config-clang
first). If that doesn't work for you, then there is nothing we can do as the issue is with your system environment, not a problem with Yosys.
Version
N/A
On which OS did this happen?
Linux
Reproduction Steps
Expected Behavior
Build successful.
Actual Behavior