Error-Report rt-tests
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
I tried to compile the rt-tests-1.9 on my system:
Kernel - 5.4.70-rt40
Gcc : gcc cc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Error message:
'bld/cyclictest.o: `stderr@@GLIBC_2.2.5' can not be used when making a shared object;
recompile with -fPIC
Any idea ?
Thanks
Dieter Bieler
Quoted 2 lines · On 2020-10-26 11:51:24 [+0100], [email protected] wrote:
Hello,
Hi,
Quoted 3 lines
I tried to compile the rt-tests-1.9 on my system:
Kernel - 5.4.70-rt40
Gcc : gcc cc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
is this by any chance 32bit? Say i386/i686 or so?
Quoted 7 lines
Error message:
'
bld/cyclictest.o: `stderr@@GLIBC_2.2.5' can not be used when making a shared object;
recompile with -fPICAny idea ?
If so, please try
make clean
make CFLAGS=-fPIC
Quoted 2 lines
Thanks
Dieter Bieler
Sebastian
Quoted 19 lines · Sebastian Andrzej Siewior
Quoted 2 lines · On 2020-10-26 11:51:24 [+0100], [email protected] wrote:
Hello,
Hi,
Quoted 3 lines
I tried to compile the rt-tests-1.9 on my system:
Kernel - 5.4.70-rt40
Gcc : gcc cc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0is this by any chance 32bit? Say i386/i686 or so?
Quoted 7 lines
Error message:
'
bld/cyclictest.o: `stderr@@GLIBC_2.2.5' can not be used when making a shared object;
recompile with -fPICAny idea ?
Quoted 9 lines
If so, please try
make clean
make CFLAGS=-fPICQuoted 2 lines
Thanks
Dieter BielerSebastian
It's a bit odd because the libraries are static.
Isn't that quite an old version of glibc as well?
John
Quoted 3 lines · John Kacur
It's a bit odd because the libraries are static.
Isn't that quite an old version of glibc as well?
It looks like Ubuntu 20.04 / Focal Fossa. The glibc version above is when the symbol was first introduced.
It builds on i386/Debian Sid, just tested. Noticed this however:
|~/rt-tests$ make |Traceback (most recent call last): | File "<string>", line 1, in <module> |ModuleNotFoundError: No module named 'distutils.sysconfig' |make: Nothing to be done for 'all'. |~/rt-tests$ python3 -V |Python 3.8.6
wouldn't it work to just keep "PYLIB ?=" and the caller passes what he needs?
Quoted 1 line
John
Sebastian
Quoted 17 lines · Sebastian Andrzej Siewior
Quoted 3 lines · John Kacur
It's a bit odd because the libraries are static.
Isn't that quite an old version of glibc as well?It looks like Ubuntu 20.04 / Focal Fossa. The glibc version above is when the symbol was first introduced.
It builds on i386/Debian Sid, just tested. Noticed this however:
|~/rt-tests$ make |Traceback (most recent call last): | File "<string>", line 1, in <module> |ModuleNotFoundError: No module named 'distutils.sysconfig' |make: Nothing to be done for 'all'. |~/rt-tests$ python3 -V |Python 3.8.6
Quoted 7 lines
wouldn't it work to just keep "PYLIB ?=" and the caller passes what he needs?
Quoted 1 line
John
Sebastian
Right, ?= in the makefile means if it's not already set, then set it to what comes next. You could just do make PYLIB=""
in order to skip the python stuff.
On my fedora box if you were to set it by hand it would be make PYLIB="/usr/lib/python3.9/site-packages"
John
Quoted 6 lines · John Kacur
Right, ?= in the makefile means if it's not already set, then set it to what comes next. You could just do make PYLIB=""
in order to skip the python stuff.On my fedora box if you were to set it by hand it would be make PYLIB="/usr/lib/python3.9/site-packages"
This make it complicated. Usually for python things you provide an egg file or something like that. That long line above isn't that bad given that you don't install yourself to /usr/lib/python3.9/site-packages. You build a RPM page which throws it there and RPM package has build rules.
Quoted 1 line
John
Sebastian