Page 1 of 1

Cross compile error: cannot find -lintl (Solved)

Posted: Thu Apr 16, 2015 7:58 am
by Mikumiku747
I was originally typing up this post while trying to solve the problem, and I thought I'd leave this here for anybody else who was having this problem.
So, I'd like to get into OS Dev stuff, But I'm having trouble making an i686-elf cross compiler. When I get to running make for binutils, I get an error when it tries to make ar.exe I'll put in the specific line that make runs, and the error message it gives:

Code: Select all

libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -static-libstdc++ -static-libgcc -Wl,--stack -Wl,12582912 -o .libs/ar.exe arparse.o arlex.o ar.o not-ranlib.o arsup.o rename.o binemul.o emul_vanilla.o bucomm.o version.o filemode.o  ../bfd/.libs/libbfd.a ../libiberty/libiberty.a /usr/lib/libfl.a -lintl
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lintl
I looked into the problem a little, and apparently it might be because it can't find libintl from GNU gettext. But, installing gettext didn't do anything to help the problem.

Just some helpful info, I'm running win8.1, on a amd64 machine, trying to make a i686 cross compiler. If you need any more info, ask and I'll try to provide, but please go kinda easy on me, I'm a little new to linkers and compiling.
Anyways, I installed gettext-dev and it began working again, so I hope I helped somebody with this little hiccup. Big thanks to the people who wrote the wiki, it's really in depth and explains a lot of stuff really well, particularly with compiling an OS as opposed to a C program.

PS: Maybe somebody wants to look into why gettext-dev is a dependency, at least in this case, and put in a note for it in the wiki?

Re: Cross compile error: cannot find -lintl (Solved)

Posted: Thu Apr 16, 2015 8:07 am
by iansjack
did you specify "--disable-nls" when configuring binutils?