llvm-config curses-related failures

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

llvm-config curses-related failures

eliben
Hello,

I'm trying to build some code that relies on LLVM as a library (out-of-source). It uses llvm-config for the compilation & linkage flags. Some recent change breaks it, and with the newest trunk LLVM I get:

/home/eliben/llvm/build_llvm_svn_rw/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:256: undefined reference to `setupterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:274: undefined reference to `tigetnum'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:278: undefined reference to `set_curterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:279: undefined reference to `del_curterm'
collect2: ld returned 1 exit status

This seems to be related to llvm-config not passing -ltinfo in its --ldflags. This bug also seems to be related: http://llvm.org/bugs/show_bug.cgi?id=16902

Is there a workaround for this?

Eli


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llvm-config curses-related failures

Pete Cooper
Hi Eli

I don’t know a workaround which will keep support for coloured terminal output, but if you can live without it then passing these to configure should work.

--enable-curses=no
--enable-terminfo=no

Thanks,
Pete
On Sep 6, 2013, at 9:09 PM, Eli Bendersky <[hidden email]> wrote:

Hello,

I'm trying to build some code that relies on LLVM as a library (out-of-source). It uses llvm-config for the compilation & linkage flags. Some recent change breaks it, and with the newest trunk LLVM I get:

/home/eliben/llvm/build_llvm_svn_rw/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:256: undefined reference to `setupterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:274: undefined reference to `tigetnum'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:278: undefined reference to `set_curterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:279: undefined reference to `del_curterm'
collect2: ld returned 1 exit status

This seems to be related to llvm-config not passing -ltinfo in its --ldflags. This bug also seems to be related: http://llvm.org/bugs/show_bug.cgi?id=16902

Is there a workaround for this?

Eli

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llvm-config curses-related failures

eliben



On Fri, Sep 6, 2013 at 9:35 PM, Pete Cooper <[hidden email]> wrote:
Hi Eli

I don’t know a workaround which will keep support for coloured terminal output, but if you can live without it then passing these to configure should work.

--enable-curses=no
--enable-terminfo=no


Thanks for the suggestion, Pete. Another thing that works is pass -ltinfo manually instead of using llvm-config. I just want to figure out why llvm-config doesn't "get" that curses was found. I'll try to do some more diagnosis and add information to the open bug.

Eli
 

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llvm-config curses-related failures

eliben
In reply to this post by Pete Cooper



On Fri, Sep 6, 2013 at 9:35 PM, Pete Cooper <[hidden email]> wrote:
Hi Eli

I don’t know a workaround which will keep support for coloured terminal output, but if you can live without it then passing these to configure should work.

--enable-curses=no
--enable-terminfo=no


Re-doing the configure & build in a new directory solved the problem for me. I think the problem had to do with the fact that my previous svn update on this machine was before Chandler's curses-related changes, and I then ran 'make update' which used the old configure script. I've updated the PR - maybe the OP had the same problem.

FWIW, Pete, the --enable-curses option to configure no longer exists. configure just ignores it. Chandler removed it in r188160.

Eli

 
Thanks,
Pete
On Sep 6, 2013, at 9:09 PM, Eli Bendersky <[hidden email]> wrote:

Hello,

I'm trying to build some code that relies on LLVM as a library (out-of-source). It uses llvm-config for the compilation & linkage flags. Some recent change breaks it, and with the newest trunk LLVM I get:

/home/eliben/llvm/build_llvm_svn_rw/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:256: undefined reference to `setupterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:274: undefined reference to `tigetnum'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:278: undefined reference to `set_curterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:279: undefined reference to `del_curterm'
collect2: ld returned 1 exit status

This seems to be related to llvm-config not passing -ltinfo in its --ldflags. This bug also seems to be related: http://llvm.org/bugs/show_bug.cgi?id=16902

Is there a workaround for this?

Eli

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llvm-config curses-related failures

Pete Cooper

On Sep 7, 2013, at 8:29 AM, Eli Bendersky <[hidden email]> wrote:




On Fri, Sep 6, 2013 at 9:35 PM, Pete Cooper <[hidden email]> wrote:
Hi Eli

I don’t know a workaround which will keep support for coloured terminal output, but if you can live without it then passing these to configure should work.

--enable-curses=no
--enable-terminfo=no


Re-doing the configure & build in a new directory solved the problem for me. I think the problem had to do with the fact that my previous svn update on this machine was before Chandler's curses-related changes, and I then ran 'make update' which used the old configure script. I've updated the PR - maybe the OP had the same problem.

FWIW, Pete, the --enable-curses option to configure no longer exists. configure just ignores it. Chandler removed it in r188160.
Ah, didn’t notice that commit.  Thanks for the info.

Pete

Eli

 
Thanks,
Pete
On Sep 6, 2013, at 9:09 PM, Eli Bendersky <[hidden email]> wrote:

Hello,

I'm trying to build some code that relies on LLVM as a library (out-of-source). It uses llvm-config for the compilation & linkage flags. Some recent change breaks it, and with the newest trunk LLVM I get:

/home/eliben/llvm/build_llvm_svn_rw/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:256: undefined reference to `setupterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:274: undefined reference to `tigetnum'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:278: undefined reference to `set_curterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:279: undefined reference to `del_curterm'
collect2: ld returned 1 exit status

This seems to be related to llvm-config not passing -ltinfo in its --ldflags. This bug also seems to be related: http://llvm.org/bugs/show_bug.cgi?id=16902

Is there a workaround for this?

Eli

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llvm-config curses-related failures

liuml07
In reply to this post by eliben
Hi all,

I would like to kindly remind the Gentoo users that the tinfo use should be enabled for package sys-libs/ncurses

Regards.


On Sat, Sep 7, 2013 at 11:29 PM, Eli Bendersky <[hidden email]> wrote:



On Fri, Sep 6, 2013 at 9:35 PM, Pete Cooper <[hidden email]> wrote:
Hi Eli

I don’t know a workaround which will keep support for coloured terminal output, but if you can live without it then passing these to configure should work.

--enable-curses=no
--enable-terminfo=no


Re-doing the configure & build in a new directory solved the problem for me. I think the problem had to do with the fact that my previous svn update on this machine was before Chandler's curses-related changes, and I then ran 'make update' which used the old configure script. I've updated the PR - maybe the OP had the same problem.

FWIW, Pete, the --enable-curses option to configure no longer exists. configure just ignores it. Chandler removed it in r188160.

Eli

 
Thanks,
Pete
On Sep 6, 2013, at 9:09 PM, Eli Bendersky <[hidden email]> wrote:

Hello,

I'm trying to build some code that relies on LLVM as a library (out-of-source). It uses llvm-config for the compilation & linkage flags. Some recent change breaks it, and with the newest trunk LLVM I get:

/home/eliben/llvm/build_llvm_svn_rw/Debug+Asserts/lib/libLLVMSupport.a(Process.o): In function `terminalHasColors':
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:256: undefined reference to `setupterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:274: undefined reference to `tigetnum'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:278: undefined reference to `set_curterm'
/home/eliben/llvm/llvm_svn_rw/lib/Support/Unix/Process.inc:279: undefined reference to `del_curterm'
collect2: ld returned 1 exit status

This seems to be related to llvm-config not passing -ltinfo in its --ldflags. This bug also seems to be related: http://llvm.org/bugs/show_bug.cgi?id=16902

Is there a workaround for this?

Eli

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




--
Mingliang LIU (刘明亮 in Chinese)

PACMAN Group,  Dept. of Computer Science & Technology
Tsinghua University, Beijing 100084, China
Email: [hidden email]

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev