Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile-errıor with ./regenerate-makefiles.sh #16

Open
sevilaybayatli opened this issue May 29, 2019 · 14 comments
Open

compile-errıor with ./regenerate-makefiles.sh #16

sevilaybayatli opened this issue May 29, 2019 · 14 comments

Comments

@sevilaybayatli
Copy link

/irstlm$ ./regenerate-makefiles.sh
Calling /usr/bin/autoreconf
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: error: required file './ar-lib' not found
configure.ac:10: 'automake --add-missing' can install 'ar-lib'
configure.ac:3: error: required file './compile' not found
configure.ac:3: 'automake --add-missing' can install 'compile'
configure.ac:5: error: required file './config.guess' not found
configure.ac:5: 'automake --add-missing' can install 'config.guess'
configure.ac:5: error: required file './config.sub' not found
configure.ac:5: 'automake --add-missing' can install 'config.sub'
configure.ac:2: error: required file './install-sh' not found
configure.ac:2: 'automake --add-missing' can install 'install-sh'
configure.ac:5: error: required file './ltmain.sh' not found
configure.ac:2: error: required file './missing' not found
configure.ac:2: 'automake --add-missing' can install 'missing'
src/Makefile.am: error: required file './depcomp' not found
src/Makefile.am: 'automake --add-missing' can install 'depcomp'
autoreconf: automake failed with exit status: 1
autoreconf FAILED
trying '/usr/bin/libtoolize --force; /usr/bin/automake --add-missing ; /usr/bin/autoreconf'
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt
obsolete.m4'
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:9117: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: installing './ar-lib'
configure.ac:3: installing './compile'
configure.ac:5: installing './config.guess'
configure.ac:5: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
src/Makefile.am: installing './depcomp'
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
/usr/share/aclocal-1.15/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level
configure.ac:10: warning: AC_PROG_LIBTOOL was called before AM_PROG_AR
aclocal.m4:70: AM_PROG_AR is expanded from...
configure.ac:10: the top level

@sevilaybayatli
Copy link
Author

and after running /irstlm$ sudo make install
Making install in src
make[1]: Entering directory '/home/adminonur/irstlm/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c -o cmd.lo cmd.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c cmd.c -fPIC -DPIC -o .libs/cmd.o
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
cmd.c: In function ‘SetParam’:
cmd.c:705:15: warning: comparison between pointer and zero character constant [-Wpointer-compare]
if (!*s || (s=='\0' && cmd->Flag==0)){
^

cmd.c:705:14: note: did you mean to dereference the pointer?
if (!*s || (s=='\0' && cmd->Flag==0)){
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c cmd.c -o cmd.o >/dev/null 2>&1
mv -f .deps/cmd.Tpo .deps/cmd.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c -o thpool.lo thpool.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c thpool.c -fPIC -DPIC -o .libs/thpool.o
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c thpool.c -o thpool.o >/dev/null 2>&1
mv -f .deps/thpool.Tpo .deps/thpool.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -static -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.lo dictionary.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -o dictionary.o
In file included from /usr/include/c++/7/ext/string_conversions.h:41:0,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/iomanip:40,
from dictionary.cpp:25:
/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
Makefile:742: recipe for target 'dictionary.lo' failed
make[1]: *** [dictionary.lo] Error 1
make[1]: Leaving directory '/home/adminonur/irstlm/src'
Makefile:407: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

@jonorthwash
Copy link

jonorthwash commented May 29, 2019

We're also having this exact issue.

@daniellerossetti

@jonorthwash
Copy link

We had success with checking out the code in #12. It seems to be somewhat out of date, but it doesn't have this issue.

@sevilaybayatli
Copy link
Author

sevilaybayatli commented May 29, 2019 via email

@sevilaybayatli
Copy link
Author

sevilaybayatli commented May 31, 2019 via email

@jonorthwash
Copy link

@sevilaybayatli, just add a remote [email protected]:douglasbagnall/irstlm.git and pull from that. Then run configure and make.

@sevilaybayatli
Copy link
Author

sevilaybayatli commented May 31, 2019 via email

@hermawan438
Copy link

can you give me the fix code cause i have same error like you when installing IRSTLM @jonorthwash

@jonorthwash
Copy link

Just clone this fork of it instead: [email protected]:douglasbagnall/irstlm.git

@hermawan438
Copy link

thanks for the advice

@hermawan438
Copy link

bismillahirrahmanirrahim

pardon me to bothering your time i want to ask you when i want to build IRSTLM lm but not detect the path to the irstlm folder i try to make the path to the irstlm folder, but it's still doesn't work, and always give message 'Set environment variable with path to irstlm, the screenshot i attach in this email, hope you can help my problem

hermawan@hermawan-X450JN:~/MachineTranslator3$ irstlm-master/bin/build-lm.sh -t/tmp -i corpus/lowercased.sb -o corpus/lowercased.sb.lm irstlm-master/bin/compile-lm corpus/lowercased.sb.lm.gz corpus/lowercased.sb.blm -n 3 -s kneser-ney Set IRSTLM environment variable with path to irstlm

@jonorthwash
Copy link

It looks like you just need to do something like the following before you run that command:

$ export IRSTLM=/path/to/irstlm

But with the right path to the irstlm executable.

@hermawan438
Copy link

hermawan438 commented Jul 21, 2019 via email

@ykkhan
Copy link

ykkhan commented Mar 2, 2020

and after running /irstlm$ sudo make install Making install in src make[1]: Entering directory '/home/adminonur/irstlm/src' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c -o cmd.lo cmd.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c cmd.c -fPIC -DPIC -o .libs/cmd.o cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C cmd.c: In function ‘SetParam’: cmd.c:705:15: warning: comparison between pointer and zero character constant [-Wpointer-compare] if (!*s || (s=='\0' && cmd->Flag==0)){ ^
cmd.c:705:14: note: did you mean to dereference the pointer?
if (!*s || (s=='\0' && cmd->Flag==0)){
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT cmd.lo -MD -MP -MF .deps/cmd.Tpo -c cmd.c -o cmd.o >/dev/null 2>&1
mv -f .deps/cmd.Tpo .deps/cmd.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c -o thpool.lo thpool.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c thpool.c -fPIC -DPIC -o .libs/thpool.o
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -g -O2 -MT thpool.lo -MD -MP -MF .deps/thpool.Tpo -c thpool.c -o thpool.o >/dev/null 2>&1
mv -f .deps/thpool.Tpo .deps/thpool.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -static -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.lo dictionary.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -DTRACE_LEVEL=1 -DMY_ASSERT_FLAG -DHAVE_CXX0 -std=c++0x -isystem/usr/include -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DMYCODESIZE=3 -g -O2 -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.cpp -o dictionary.o
In file included from /usr/include/c++/7/ext/string_conversions.h:41:0,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bits/locale_classes.h:40,
from /usr/include/c++/7/bits/ios_base.h:41,
from /usr/include/c++/7/iomanip:40,
from dictionary.cpp:25:
/usr/include/c++/7/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~~~
compilation terminated.
Makefile:742: recipe for target 'dictionary.lo' failed
make[1]: *** [dictionary.lo] Error 1
make[1]: Leaving directory '/home/adminonur/irstlm/src'
Makefile:407: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1

I have the same error..
kindly guid me..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants