deeptechlabs/meltdown

Can't build the PoC on Ubuntu

Closed this issue · 3 comments

BAM0S commented

Hi,

I tried to build your project on my Ubuntu machine and I received an error:
image

When I ran "make" command it failed with the following error:

Scanning dependencies of target meltdown
[ 50%] Building C object CMakeFiles/meltdown.dir/src/poc.c.o
[100%] Linking C executable meltdown
/usr/bin/ld: cannot open output file meltdown: Is a directory
collect2: error: ld returned 1 exit status
CMakeFiles/meltdown.dir/build.make:94: recipe for target 'meltdown' failed
make[2]: *** [meltdown] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/meltdown.dir/all' failed
make[1]: *** [CMakeFiles/meltdown.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I am using cmake version 3.5.1

Why it happening and how can I fix it ?

@BAM0S You can use gcc without cmake

root@xxx:/tmp/meltdown/src# gcc poc.c
root@xxx:/tmp/meltdown/src# ls
a.out  poc.c
root@xxx:/tmp/meltdown/src# ./a.out

You are cloning the repository INTO build. However, you need to clone the repository and create a build directory inside this directory:

git clone https://github.com/dendisuhubdy/meltdown.git
cd meltdown && mkdir build && cd build
cmake ..
make

After that you should be able to run ./meltdown

BAM0S commented

Thanks, it works !