Skip to contentSkip to conversation

forge: --enable-pshared broken?

Xenomai Jan Kiszka 3 participants 5 messages Feb 5, 2014 – Feb 6, 2014

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 10 lines · Jan Kiszka

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.

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 9 lines · Jan Kiszka

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'

Quoted 5 lines
Quoted 1 line

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.

Signature · 1 line
Philippe.
#3 lore raw
In reply to Gilles Chanteperdrix
Quoted 10 lines · Gilles Chanteperdrix
Quoted 9 lines · Jan Kiszka

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'

Quoted 5 lines
Quoted 1 line

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

Signature · 1 line
Philippe.
author
#4 lore raw
Quoted 14 lines · Philippe Gerum
Quoted 13 lines · Gilles Chanteperdrix
Quoted 11 lines · Jan Kiszka

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?

Quoted 7 lines
Quoted 3 lines

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

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux