iamckn/airprobe

error: ./gsm.cc: File or directory does not exist

Opened this issue · 15 comments

Hi,

When I try to install airprobe executing make command, this error appear:

g++: error: ./gsm.cc: File or directory does not exist
g++: fatal error: no input files

I tryed with Backtrack 5 R3, Kali Linux 2019, Ubuntu 10.04 and Telive, and I couldn't solve this problem. Besides, I installed GnuRadio with apt-get command and manually, but I couldn't achieve de solution.

I don't know what more can I do to solve it.

How can I solve it?

Thank you.

Same problem here. Failed on both Debian Stretch & Buster with all dependencies installed. Is this a swig pthread error?

This is most likely caused by the gnuradio version you're using. Version 3.8 has some changes which will lead to those errors. Use version 3.7 and confirm if that solves the issue.

Still having issues with the swig pthread error...
gnuradio-companion --version
GNU Radio Companion 3.7.10

uname -a
Linux s1 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u1 (2019-09-20) x86_64 GNU/Linux (debian stretch)

swig error : Unrecognized option -pthread
Use 'swig -help' for available options.
Makefile:1217: recipe for target '.deps/gsm-generate-stamp' failed
make[5]: *** [.deps/gsm-generate-stamp] Error 1
make[5]: Leaving directory '/opt/gr-gsm/airprobe/gsm-receiver/src/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I -I -I/usr/include -I/usr/include/gnuradio/swig -pthread -I/usr/local/include/ -I../../src/lib/decoder/openbtsstuff -I/usr/include/python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps/_gsm_la-gsm.Tpo -c -o _gsm_la-gsm.lo test -f 'gsm.cc' || echo './'gsm.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I -I -I/usr/include -I/usr/include/gnuradio/swig -pthread -I/usr/local/include/ -I../../src/lib/decoder/openbtsstuff -I/usr/include/python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps/_gsm_la-gsm.Tpo -c ./gsm.cc -fPIC -DPIC -o .libs/_gsm_la-gsm.o
g++: error: ./gsm.cc: No such file or directory
g++: fatal error: no input files

Try reinstallating gnuradio from the ppa repo:

sudo apt remove gnuradio
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo apt-get update
sudo apt install gnuradio

I am using gnuradio version 3.8. Other programs are already installed under it. Various errors occur while executing the MAKE command. There is no desire to switch to previous versions of gnuradio, a lot of time and effort has been spent. How to adapt airprobe for gnuradio_3.8? Also interested in bypassing Frequency Hopping’s

The FIX:
make -p "CC=gcc-9"

make -p "CC = gcc-9" this does not work, after compiling ./go.sh still does not work. Help solve this problem.

HELP!

I constantly get this error, put on a clean operating system, libosmocore last version
Ubuntu 16.04 64bit
gnuradio 3.7.9

~ / data / airprobe / gsm-receiver $ make
............................................
/ bin / rm -f .deps / gsm.Std;
.deps / gsm.Sd .deps / gsm.Std;
fi
else
/ bin / rm -f .deps / gsm.S *; exit 1;
fi
swig error: Unrecognized option -pthread
Use 'swig -help' for available options.
Makefile: 1217: recipe for target '.deps / gsm-generate-stamp' failed
make [5]: *** [.deps / gsm-generate-stamp] Error 1
make [5]: Leaving directory '/ home / vic / data / airprobe / gsm-receiver / src / lib'
/ bin / bash ../../libtool --tag = CXX --mode = compile g ++ -DHAVE_CONFIG_H -I. -I ../ .. -I -I -I / usr / include -I / usr / include / gnuradio / swig -pthread -I / usr / local / include / -I ../../ src / lib / decoder / openbtsstuff -I / usr / include / python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps / _gsm_la-gsm.Tpo -c -o _gsm_la-gsm.lo test -f 'gsm.cc' || echo './'gsm.cc
libtool: compile: g ++ -DHAVE_CONFIG_H -I. -I ../ .. -I -I -I / usr / include -I / usr / include / gnuradio / swig -pthread -I / usr / local / include / -I ../../ src / lib / decoder / openbtsstuff -I / usr / include / python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps / _gsm_la-gsm.Tpo -c ./gsm.cc -fPIC -DPIC -o .libs / _gsm_la-gsm.o
g ++: error: ./gsm.cc: No such file or directory
g ++: fatal error: no input files
compilation terminated.

after the command make -p "CC = gcc-9" I check go.sh
And then result of go.sh is:

Traceback (most recent call last):
File "./gsm_receive.py", line 11, in
import gsm
ImportError: No module named gsm

What swig version do you have installed?

Hello if you want to try this... worked for me
cd airprobe/gsm-receiver/
patch - p0 < test. patch

test.patch

--- a/src/lib/Makefile 2020-08-25
+++ b/src/lib/Makefile 2020-08-25
@@ -404,7 +404,7 @@
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS =
LIBOBJS =
-LIBOSMOCORE_CFLAGS = -pthread -I/usr/local/include/
+LIBOSMOCORE_CFLAGS = -I/usr/local/include/
LIBOSMOCORE_CPPFLAGS = -I/usr/local/include/
LIBOSMOCORE_INCLUDEDIR = /usr/local/include
LIBOSMOCORE_LIBS = -L/usr/local/lib -ltalloc -losmocore -lsctp

Hi,

When I try to install airprobe executing make command, this error appear:

g++: error: ./gsm.cc: File or directory does not exist
g++: fatal error: no input files

I tryed with , Kali Linux 2020 Ubuntu 14.04 , and I couldn't solve this problem. Besides, I installed GnuRadio with apt-get command and manually, but I couldn't achieve de solution.

I don't know what more can I do to solve it.

How can I solve it?

Thank you.

Same problem here with gnuradio 3.7.13 and Ubuntu Bionic 18.04.
The gsm.cc file is not present
Did anybody ever succeed to get this work ?

same problem

g++: error: ./gsm.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.
Makefile:750: recipe for target '_gsm_la-gsm.lo' failed
make[4]: *** [_gsm_la-gsm.lo] Error 1

Makefile:1216: recipe for target '.deps/gsm-generate-stamp' failed
make[5]: *** [.deps/gsm-generate-stamp] Error 1
make[5]: Leaving directory '/home/sdr/Desktop/airprobe-master/gsm-receiver/src/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I -I -pthread -I/usr/local/include/ -I -I/usr/include/python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps/_gsm_la-gsm.Tpo -c -o _gsm_la-gsm.lo test -f 'gsm.cc' || echo './'gsm.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I -I -pthread -I/usr/local/include/ -I -I/usr/include/python2.7 -g -O1 -Wno-strict-aliasing -Wno-parentheses -g -O2 -Wall -Woverloaded-virtual -MT _gsm_la-gsm.lo -MD -MP -MF .deps/_gsm_la-gsm.Tpo -c ./gsm.cc -fPIC -DPIC -o .libs/_gsm_la-gsm.o
g++: error: ./gsm.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.