Skip to content

llvm-config omitting curses libraries #17276

Open
@llvmbot

Description

@llvmbot
Bugzilla Link 16902
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @chandlerc

Extended Description

At least with revision 188466, llvm-config is failing to report a curses dependency (-ltinfo in my case) established by LLVM's configure script:

$ llvm-config --ldflags
-L/usr/local/stow/llvm-latest/lib  -lbfd -lz -lpthread -lffi -lrt -ldl -lm  -lopagent -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile

One ramification is that DragonEgg, which uses llvm-config to determine what to link to, fails to build:

$ make
Linking TargetInfo
/usr/local/stow/llvm-latest/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/tmp/llvm/lib/Support/Unix/Process.inc:265: undefined reference to `setupterm'
/tmp/llvm/lib/Support/Unix/Process.inc:283: undefined reference to `tigetnum'
collect2: error: ld returned 1 exit status
make: *** [TargetInfo] Error 1

Is this problem perhaps a fallout of the change in curses detection implemented in r188165? (I haven't checked.)

-- Scott

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillallvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions