Comments (4)
Hi,
yes, the problem is caused by the gcc-11 in ubuntu missing "cc".
The commands below can resolved it:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo ln -s /usr/bin/gcc /usr/bin/cc
from uarch-bench.
Most likely the file nasm-utils/nasm-utils-helper.c
doesn't exist for, you can confirm?
It would be because you didn't initialize submodules. See this section of the doc:
https://github.com/travisdowns/uarch-bench#building
Try running git submodule udpate --init
.
from uarch-bench.
I think it's actually because cc
isn't in the path, which is definitely weird if gcc is installed. I'm not sure exactly what the mechanism for setting up cc/c++ on Ubuntu looks like, but the first thing I'd do would be to make sure the build-essential packages is installed. If that doesn't work, try update-alternatives --config cc
.
Basically (at least on Debian, I don't have a convenient Ubuntu install sitting around at the moment), there should be a symlink from /usr/bin/cc
to /etc/alternatives/cc
, and /etc/alternatives/cc
should be a symlink to /usr/bin/gcc
, but this should all be managed by update-alternatives so you shouldn't create the symlinks yourself.
If cc
isn't properly configured you'll probably need to go through the same process to get c++
configured as well.
from uarch-bench.
Hi Evan, thanks for the comment!
I think you are right that this error doesn't come from cc
itself, but some problem launching cc. Errors from within cc look more like (in this case, if foo.c
is missing):
cc: error: foo.c: No such file or directory
Oddly though, if I try to reproduce this on a system without cc
in the path, I still get a different error:
make: cc: Command not found
OS and make are slightly different though: Ubuntu 20.04 and make 4.2.1.
So I'm not totally sure what's going on.
@edisonchan what does which cc
report on your system?
In any case, if the problem is something with cc
specifically (which is usually a symlink to gcc, more or less), but gcc
is installed fine, you can just use gcc
directly:
CC=gcc make
Or make it permanent:
echo CC=gcc > local.mk
local.mk
is a file where you can put any local make vars customizations.
from uarch-bench.
Related Issues (20)
- register-stalls.cpp function too giant HOT 1
- Compilation fails HOT 3
- store forwarding does not have fixed latency HOT 11
- prefetch performance test for AMD CPUs? HOT 1
- ERROR: jevents failed while reading events, error -5 HOT 2
- Cycles event sometimes gets unprogrammed with --extra-events
- [Feature Request]: A directory in the repo with numbers from different architectures HOT 4
- build fails if python2 not available
- perf timer should work on non-Intel HOT 4
- how can i test the performance of the snippet of assembly provided by myself HOT 2
- remove MINSIGSTKSZ usage HOT 3
- 4GHz was detected as 8GHz HOT 13
- dead link on wiki HOT 3
- clock detectd is not right for hybrid CPU. HOT 6
- make: *** [Makefile:131: page-info.o] Error 127 HOT 1
- No output when choosing a series of specific tasks HOT 12
- Questions about How much bandwidth does the L2 have to give, anyway? HOT 1
- Turboboost won't be disabled for isolated cores
- Issue building the package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uarch-bench.