Skip to contentSkip to conversation

About POSIX build failure

LTP Mitani 2 participants 2 messages Nov 11, 2010

lore
Share & tools
lore

Mitani

author
#0 lore raw

Hi,

Build of POSIX tests failed:
------------
conformance/behavior/timers/1-1 compile FAILED; SKIPPING conformance/behavior/timers/2-1 compile FAILED; SKIPPING conformance/definitions/mqueue_h/1-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/8-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/9-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/7-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/12-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/5-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/1-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/13-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/20-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/22-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/18-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/21-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/23-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/25-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/4-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/24-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/6-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/11-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/14-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/2-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/17-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/15-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/16-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/19-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/10-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/3-1 compile FAILED; SKIPPING
------------

Error message is as follows:
------------
/lib64/libpthread.so.0: undefined reference to __libc_malloc_pthread_startup@GLIBC_PRIVATE' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unwind@GLIBC_PRIVATE'
/usr/lib64/nptl/librt.so: undefined reference to __pthread_register_cancel@GLIBC_2.3.3' /lib64/libpthread.so.0: undefined reference to __on_exit@GLIBC_PRIVATE' /lib64/libpthread.so.0: undefined reference to _errno@GLIBC_2.2.5' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unregister_cancel@GLIBC_2.3.3' /lib64/libpthread.so.0: undefined reference to _h_errno@GLIBC_2.2.5' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unwind_next@GLIBC_2.3.3'
/lib64/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
------------

Environment is as follows:
- RHEL4.8 (kernel version 2.6.18-194) --- (x86, x86_64, ia64)

I did the following environment setting in my systems:
------------
export LIBRARY_PATH=/usr/lib64/nptl
------------

This id for build of following tests.
These need the installing of nptl-devel package.
------------
conformance/interfaces/pthread_barrierattr_getpshared conformance/interfaces/pthread_barrierattr_init conformance/interfaces/pthread_barrierattr_setpshared conformance/interfaces/pthread_cond_broadcast conformance/interfaces/pthread_cond_destroy conformance/interfaces/pthread_cond_init conformance/interfaces/pthread_cond_signal conformance/interfaces/pthread_cond_timedwait conformance/interfaces/pthread_cond_wait conformance/interfaces/pthread_condattr_getclock conformance/interfaces/pthread_condattr_setclock conformance/interfaces/pthread_getschedparam conformance/interfaces/pthread_setschedprio conformance/interfaces/sched_yield
------------

Therefore I added "-lpthread" to following files:
------------
testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS testcases/open_posix_testsuite/conformance/definitions/mqueue_h/LDLIBS testcases/open_posix_testsuite/conformance/interfaces/lio_listio/LDLIBS
------------

After this, build succeeded.

Regards--

-Tomonori Mitani

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 72 lines · Mitani

Hi,

Build of POSIX tests failed:
------------
conformance/behavior/timers/1-1 compile FAILED; SKIPPING conformance/behavior/timers/2-1 compile FAILED; SKIPPING conformance/definitions/mqueue_h/1-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/8-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/9-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/7-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/12-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/5-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/1-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/13-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/20-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/22-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/18-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/21-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/23-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/25-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/4-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/24-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/6-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/11-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/14-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/2-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/17-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/15-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/16-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/19-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/10-1 compile FAILED; SKIPPING conformance/interfaces/lio_listio/3-1 compile FAILED; SKIPPING
------------

Error message is as follows:
------------
/lib64/libpthread.so.0: undefined reference to __libc_malloc_pthread_startup@GLIBC_PRIVATE' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unwind@GLIBC_PRIVATE'
/usr/lib64/nptl/librt.so: undefined reference to __pthread_register_cancel@GLIBC_2.3.3' /lib64/libpthread.so.0: undefined reference to __on_exit@GLIBC_PRIVATE' /lib64/libpthread.so.0: undefined reference to _errno@GLIBC_2.2.5' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unregister_cancel@GLIBC_2.3.3' /lib64/libpthread.so.0: undefined reference to _h_errno@GLIBC_2.2.5' /usr/lib64/nptl/librt.so: undefined reference to __pthread_unwind_next@GLIBC_2.3.3'
/lib64/libpthread.so.0: undefined reference to `__libc_sigaction@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
------------

Environment is as follows:
 - RHEL4.8 (kernel version 2.6.18-194) --- (x86, x86_64, ia64)

I did the following environment setting in my systems:
------------
export LIBRARY_PATH=/usr/lib64/nptl
------------

This id for build of following tests.
These need the installing of nptl-devel package.
------------
conformance/interfaces/pthread_barrierattr_getpshared conformance/interfaces/pthread_barrierattr_init conformance/interfaces/pthread_barrierattr_setpshared conformance/interfaces/pthread_cond_broadcast conformance/interfaces/pthread_cond_destroy conformance/interfaces/pthread_cond_init

Quoted 8 lines

conformance/interfaces/pthread_cond_signal
conformance/interfaces/pthread_cond_timedwait
conformance/interfaces/pthread_cond_wait
conformance/interfaces/pthread_condattr_getclock
conformance/interfaces/pthread_condattr_setclock
conformance/interfaces/pthread_getschedparam
conformance/interfaces/pthread_setschedprio
conformance/interfaces/sched_yield

Well, yeah... the directions at the top of the build directory
specify that as well. Linux didn't have real pthreads until some time shortly before 2.6 came out IIRC and Redhat tends to twiddle their thumbs when it comes to new features on RHEL (or at least they did back in the RH 7.x ~ RHEL 4.x days).

Quoted 5 lines

------------

Therefore I added "-lpthread" to following files:
------------
testcases/open_posix_testsuite/conformance/behavior/timers/LDLIBS

This doesn't make sense.

Quoted 1 line

testcases/open_posix_testsuite/conformance/definitions/mqueue_h/LDLIBS

Neither does this.

Quoted 1 line

testcases/open_posix_testsuite/conformance/interfaces/lio_listio/LDLIBS

And neither does this!
Redhat is a hacky OS that needed to be fixed, but since it was the
defacto standard for a long time it never was... None of the above items are in the threading group in POSIX, so they shouldn't require a library. Furthermore, the 2 former items are looking only for definitions, so I don't know why a library would quiesce the compiler, and the latter should depend on libaio (if anything) in Linux. Thanks,
-Garrett

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list