Forum

"Segmentation fault...
 
Notifications
Clear all

"Segmentation fault signal terminated program cc1plus"

1 Posty
1 Users
0 Reactions
371 Widok
0
Topic starter

cant compile app, error with node-gyp

1 Answer
0
Topic starter
  1. first, check it is posible to compile simple hello world script
  2. nano hello.c
  3. #include <stdio.h>
    
    int
    main (void)
    {
      printf ("Hello, world!\n");
      return 0;
    }
    
  4. compile using gcc -Wall hello.c -o hello
  5. got error like this? 

    /usr/lib/gcc/arm-linux-gnueabihf/8/libgcc.a: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status

  6. it's mostyl liked that file is corrupted, time to reinstall 
  7. find package with that file, 
  8. reinstall it apt install -f --reinstall libgcc-8-dev g++-8

 

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: