Skip to contentSkip to conversation

Error-Report rt-tests

DISCUSSION [email protected] 3 participants 6 messages Oct 26, 2020 – Oct 29, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

#2 lore raw
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 -fPIC

Any idea ?

If so, please try
make clean
make CFLAGS=-fPIC

Quoted 2 lines

Thanks
Dieter Bieler

Sebastian

#3 lore raw
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.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 -fPIC

Any idea ?

Quoted 9 lines

If so, please try
make clean
make CFLAGS=-fPIC

Quoted 2 lines

Thanks
Dieter Bieler

Sebastian

It's a bit odd because the libraries are static.
Isn't that quite an old version of glibc as well?

John

#4 lore raw
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

#5 lore raw
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

#6 lore raw
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