linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* AW: Error-Report rt-tests
       [not found] <006101d6ab85$88d32f70$9a798e50$@bieler.li>
@ 2020-10-26 10:51 ` dieter
  2020-10-28 16:40   ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 6+ messages in thread
From: dieter @ 2020-10-26 10:51 UTC (permalink / raw)
  To: linux-rt-users


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error-Report rt-tests
  2020-10-26 10:51 ` AW: Error-Report rt-tests dieter
@ 2020-10-28 16:40   ` Sebastian Andrzej Siewior
  2020-10-29 15:33     ` John Kacur
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-10-28 16:40 UTC (permalink / raw)
  To: dieter; +Cc: linux-rt-users

On 2020-10-26 11:51:24 [+0100], dieter@bieler.li wrote:
> 
> Hello,
Hi,

> 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?

> 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

> Thanks
> Dieter Bieler

Sebastian

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error-Report rt-tests
  2020-10-28 16:40   ` Sebastian Andrzej Siewior
@ 2020-10-29 15:33     ` John Kacur
  2020-10-29 15:57       ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 6+ messages in thread
From: John Kacur @ 2020-10-29 15:33 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: dieter, linux-rt-users



On Wed, 28 Oct 2020, Sebastian Andrzej Siewior wrote:

> On 2020-10-26 11:51:24 [+0100], dieter@bieler.li wrote:
> > 
> > Hello,
> Hi,
> 
> > 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?
> 
> > 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
> 
> > 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error-Report rt-tests
  2020-10-29 15:33     ` John Kacur
@ 2020-10-29 15:57       ` Sebastian Andrzej Siewior
  2020-10-29 17:03         ` John Kacur
  0 siblings, 1 reply; 6+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-10-29 15:57 UTC (permalink / raw)
  To: John Kacur; +Cc: dieter, linux-rt-users

On 2020-10-29 11:33:57 [-0400], John Kacur wrote:
> 
> 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?

> John

Sebastian

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error-Report rt-tests
  2020-10-29 15:57       ` Sebastian Andrzej Siewior
@ 2020-10-29 17:03         ` John Kacur
  2020-10-29 17:46           ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 6+ messages in thread
From: John Kacur @ 2020-10-29 17:03 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior; +Cc: dieter, linux-rt-users



On Thu, 29 Oct 2020, Sebastian Andrzej Siewior wrote:

> On 2020-10-29 11:33:57 [-0400], John Kacur wrote:
> > 
> > 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?
> 
> > 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Error-Report rt-tests
  2020-10-29 17:03         ` John Kacur
@ 2020-10-29 17:46           ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 6+ messages in thread
From: Sebastian Andrzej Siewior @ 2020-10-29 17:46 UTC (permalink / raw)
  To: John Kacur; +Cc: dieter, linux-rt-users

On 2020-10-29 13:03:43 [-0400], John Kacur wrote:
> 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.

> John

Sebastian

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-29 17:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <006101d6ab85$88d32f70$9a798e50$@bieler.li>
2020-10-26 10:51 ` AW: Error-Report rt-tests dieter
2020-10-28 16:40   ` Sebastian Andrzej Siewior
2020-10-29 15:33     ` John Kacur
2020-10-29 15:57       ` Sebastian Andrzej Siewior
2020-10-29 17:03         ` John Kacur
2020-10-29 17:46           ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).