Giter Site home page Giter Site logo

jithin-renji / nuke Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 18.0 60 KB

A program to 'nuke' storage devices.

License: GNU General Public License v3.0

Makefile 3.32% C 74.80% Python 21.88%
c drive drives disks disk delete delete-files linux c-programming c-project

nuke's Issues

Source code does not compile with older gcc versions.

make command fails with older versions of the compiler where the default C standard is less c99 since the source uses some features of c99 standards. For example, compiling on a fresh Oracle Linux 7.9 system with:

gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44.0.3) 

make fails with the following errors:

 > make
gcc -Wall -g -c -o src/nuke.o src/nuke.c -Wall -g
src/nuke.c: In function ‘nuke’:
src/nuke.c:75:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int i = 0; i < nreps; i++) {
         ^
src/nuke.c:75:9: note: use option -std=c99 or -std=gnu99 to compile your code
src/nuke.c: In function ‘rand_drv’:
src/nuke.c:160:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (int i = 0; i < bs; i++) {
         ^
make: *** [src/nuke.o] Error 1

make install does not work.

make install does not work since there is no recipe for 'install' in the Makefile. Running make install produces the following output:

make install
make: *** No rule to make target `install'.  Stop.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.