Automake error in ld

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Automake error in ld

Post by nexos »

Hello,
I am building my binutils toolchain, but ran into a problem with ld. When running automake on ld, I get the error
Makefile.am:1934: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:1934: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:1934: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:1934: If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:1934: its definition is in aclocal's search path.
I have the packages libtool and libtool-bin installed. Also I have autoconf 2.65, automake 1.16.1, and libtool 2.46
Thanks,
nexos
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: Automake error in ld

Post by nexos »

It is already in there is whats strange.
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
User avatar
crosssans
Member
Member
Posts: 39
Joined: Fri Mar 01, 2019 3:50 pm
Location: France

Re: Automake error in ld

Post by crosssans »

nexos wrote:It is already in there is whats strange.
I actually misread your initial post, so I thought that this was your own project; my bad #-o - I have found this on SO, suggesting to run `libtoolize` + `aclocal` + `autoheader`: https://stackoverflow.com/questions/189 ... -undefined
nexos
Member
Member
Posts: 1081
Joined: Tue Feb 18, 2020 3:29 pm
Libera.chat IRC: nexos

Re: Automake error in ld

Post by nexos »

I managed to fix it but now get the error make[4]: *** No rule to make target 'LIB_PATH=''', needed by 'eelf_x86_64_nexos.c'. Stop. when building binutils,
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
Post Reply