Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hackituria opened this issue Oct 28, 2019 · 15 comments
Open

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

hackituria opened this issue Oct 28, 2019 · 15 comments

Comments

@hackituria
Copy link

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.

@tangopapa
Copy link

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

@iamckn
Copy link
Owner

iamckn commented Nov 17, 2019

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.

@tangopapa
Copy link

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

@iamckn
Copy link
Owner

iamckn commented Nov 19, 2019

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

@sanja76wot
Copy link

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

@iamckn iamckn added this to the Support gnuradio 3.8 milestone Jan 13, 2020
@w4fz5uck5
Copy link

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

@ghost
Copy link

ghost commented Apr 21, 2020

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

@ghost
Copy link

ghost commented Apr 22, 2020

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

@ghost
Copy link

ghost commented Apr 29, 2020

LOG-AIRPROBE.txt

@iamckn
Copy link
Owner

iamckn commented May 2, 2020

What swig version do you have installed?

@bbaranoff
Copy link

bbaranoff commented Aug 24, 2020

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

@saim1198
Copy link

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.

@NudistBeaaach
Copy link

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 ?

@alphapats
Copy link

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

@N3vv
Copy link

N3vv commented Nov 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants