All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] forge: --enable-pshared broken?
@ 2014-02-05 17:53 Jan Kiszka
  2014-02-05 19:59 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2014-02-05 17:53 UTC (permalink / raw)
  To: Xenomai

Hi,

trying to test a --enable-pshared build gives me this linker error:

libtool: link: ../../../scripts/wrap-link.sh gcc -g -o .libs/check-vdso
check_vdso-check-vdso.o  ../../lib/cobalt/.libs/libcobalt.so -lfuse
-lpthread -lrt -lm -Wl,-rpath -Wl,/data/xenomai-forge/inst64/lib
../../lib/cobalt/.libs/libcobalt.so: undefined reference to `__main_heap'

Is this known/reproducible?

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


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

* Re: [Xenomai] forge: --enable-pshared broken?
  2014-02-05 17:53 [Xenomai] forge: --enable-pshared broken? Jan Kiszka
@ 2014-02-05 19:59 ` Gilles Chanteperdrix
  2014-02-06  8:52   ` Philippe Gerum
  2014-02-06  9:29   ` Philippe Gerum
  0 siblings, 2 replies; 5+ messages in thread
From: Gilles Chanteperdrix @ 2014-02-05 19:59 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Xenomai

On 02/05/2014 06:53 PM, Jan Kiszka wrote:
> Hi,
> 
> trying to test a --enable-pshared build gives me this linker error:
> 
> libtool: link: ../../../scripts/wrap-link.sh gcc -g -o .libs/check-vdso
> check_vdso-check-vdso.o  ../../lib/cobalt/.libs/libcobalt.so -lfuse
> -lpthread -lrt -lm -Wl,-rpath -Wl,/data/xenomai-forge/inst64/lib
> ../../lib/cobalt/.libs/libcobalt.so: undefined reference to `__main_heap'
> 
> Is this known/reproducible?

I get the same issue with cobalt, when linking the "latency" test, which
in my tree uses the posix api.

-- 
                                                                Gilles.


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

* Re: [Xenomai] forge: --enable-pshared broken?
  2014-02-05 19:59 ` Gilles Chanteperdrix
@ 2014-02-06  8:52   ` Philippe Gerum
  2014-02-06  9:29   ` Philippe Gerum
  1 sibling, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2014-02-06  8:52 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Jan Kiszka; +Cc: Xenomai

On 02/05/2014 08:59 PM, Gilles Chanteperdrix wrote:
> On 02/05/2014 06:53 PM, Jan Kiszka wrote:
>> Hi,
>>
>> trying to test a --enable-pshared build gives me this linker error:
>>
>> libtool: link: ../../../scripts/wrap-link.sh gcc -g -o .libs/check-vdso
>> check_vdso-check-vdso.o  ../../lib/cobalt/.libs/libcobalt.so -lfuse
>> -lpthread -lrt -lm -Wl,-rpath -Wl,/data/xenomai-forge/inst64/lib
>> ../../lib/cobalt/.libs/libcobalt.so: undefined reference to `__main_heap'
>>
>> Is this known/reproducible?
>
> I get the same issue with cobalt, when linking the "latency" test, which
> in my tree uses the posix api.
>

This is an unexpected dependency on copperplate which is revealed by old 
linkers. Looking at this.

-- 
Philippe.


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

* Re: [Xenomai] forge: --enable-pshared broken?
  2014-02-05 19:59 ` Gilles Chanteperdrix
  2014-02-06  8:52   ` Philippe Gerum
@ 2014-02-06  9:29   ` Philippe Gerum
  2014-02-06  9:44     ` Jan Kiszka
  1 sibling, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2014-02-06  9:29 UTC (permalink / raw)
  To: Gilles Chanteperdrix, Jan Kiszka; +Cc: Xenomai

On 02/05/2014 08:59 PM, Gilles Chanteperdrix wrote:
> On 02/05/2014 06:53 PM, Jan Kiszka wrote:
>> Hi,
>>
>> trying to test a --enable-pshared build gives me this linker error:
>>
>> libtool: link: ../../../scripts/wrap-link.sh gcc -g -o .libs/check-vdso
>> check_vdso-check-vdso.o  ../../lib/cobalt/.libs/libcobalt.so -lfuse
>> -lpthread -lrt -lm -Wl,-rpath -Wl,/data/xenomai-forge/inst64/lib
>> ../../lib/cobalt/.libs/libcobalt.so: undefined reference to `__main_heap'
>>
>> Is this known/reproducible?
>
> I get the same issue with cobalt, when linking the "latency" test, which
> in my tree uses the posix api.
>

This one may help:

http://git.xenomai.org/xenomai-forge.git/commit/?h=next&id=ba1f4b636a490e42af332e0c1f079e67b96255d5

-- 
Philippe.


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

* Re: [Xenomai] forge: --enable-pshared broken?
  2014-02-06  9:29   ` Philippe Gerum
@ 2014-02-06  9:44     ` Jan Kiszka
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2014-02-06  9:44 UTC (permalink / raw)
  To: Philippe Gerum, Gilles Chanteperdrix; +Cc: Xenomai

On 2014-02-06 10:29, Philippe Gerum wrote:
> On 02/05/2014 08:59 PM, Gilles Chanteperdrix wrote:
>> On 02/05/2014 06:53 PM, Jan Kiszka wrote:
>>> Hi,
>>>
>>> trying to test a --enable-pshared build gives me this linker error:
>>>
>>> libtool: link: ../../../scripts/wrap-link.sh gcc -g -o .libs/check-vdso
>>> check_vdso-check-vdso.o  ../../lib/cobalt/.libs/libcobalt.so -lfuse
>>> -lpthread -lrt -lm -Wl,-rpath -Wl,/data/xenomai-forge/inst64/lib
>>> ../../lib/cobalt/.libs/libcobalt.so: undefined reference to
>>> `__main_heap'
>>>
>>> Is this known/reproducible?
>>
>> I get the same issue with cobalt, when linking the "latency" test, which
>> in my tree uses the posix api.
>>
> 
> This one may help:
> 
> http://git.xenomai.org/xenomai-forge.git/commit/?h=next&id=ba1f4b636a490e42af332e0c1f079e67b96255d5

Confirmed, it builds.

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


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

end of thread, other threads:[~2014-02-06  9:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 17:53 [Xenomai] forge: --enable-pshared broken? Jan Kiszka
2014-02-05 19:59 ` Gilles Chanteperdrix
2014-02-06  8:52   ` Philippe Gerum
2014-02-06  9:29   ` Philippe Gerum
2014-02-06  9:44     ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.