Bug 4736 - lmbench build failure
Summary: lmbench build failure
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2011.11
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 08:24 UTC by Sven Neumann
Modified: 2013-05-04 18:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Neumann 2012-02-02 08:24:50 UTC
Build of lmbench failed:

lat_rpc.c:(.text+0x87): undefined reference to `svcudp_create'
lat_rpc.c:(.text+0xb8): undefined reference to `svctcp_create'
lat_rpc.c:(.text+0x16a): undefined reference to `svc_run'
/tmp/ccV4OkdU.o: In function `main':
lat_rpc.c:(.text+0x277): undefined reference to `clnt_create'
/tmp/ccV4OkdU.o: In function `initialize':
lat_rpc.c:(.text+0x484): undefined reference to `clnt_create'
collect2: ld returned 1 exit status
make[2]: *** [../bin/i586/lat_rpc] Error 1

Looks like lmbench does not only need basic RPC support in the toolchain, it needs full RPC support.


Compilation fails with this uclibc config:

UCLIBC_HAS_RPC=y
# UCLIBC_HAS_FULL_RPC is not set
# UCLIBC_HAS_REENTRANT_RPC is not set


It succeeds with:

UCLIBC_HAS_RPC=y
UCLIBC_HAS_FULL_RPC=y
UCLIBC_HAS_REENTRANT_RPC=y
Comment 1 Gustavo Zacarias 2013-05-04 18:00:48 UTC
Custom uclibc configurations are the responsibility of the user, we can't make buildroot audit every single option for every single package.
That's the reason we've got default samples that are appropiately tweaked by BR when enabling/disabling toolchain options like WCHAR, RPC, LFS and so on.