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

Problem installing #490

Open
b-hakim opened this issue Nov 12, 2023 · 4 comments
Open

Problem installing #490

b-hakim opened this issue Nov 12, 2023 · 4 comments

Comments

@b-hakim
Copy link

b-hakim commented Nov 12, 2023

I am running the ./configure step and I get the following error:

config.status: error: cannot find input file: 'tests/tests-c-compiler/check-src/Makefile.in'

Then when I try the make, I get:

make: *** No targets specified and no makefile found. Stop.

Any idea on how to fix this?

Here is the full output:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -ll
checking whether yytext is a pointer... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
./configure: line 6219: LT_INIT: command not found
checking whether make supports nested variables... (cached) yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wcast-qual... yes
checking whether C compiler accepts -Wchar-subscripts... yes
checking whether C compiler accepts -Wmissing-prototypes... yes
checking whether C compiler accepts -Wmissing-declarations... yes
checking whether C compiler accepts -Wno-error=attributes... yes
checking whether C compiler accepts -Wno-error=cast-align... yes
checking whether C compiler accepts -Wno-error=visibility... no
checking whether C compiler accepts -Wno-error=parentheses-equality... no
checking whether C compiler accepts -std=gnu99... yes
checking whether C compiler accepts -Wno-error=unused-variable... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking whether to build with code coverage support... no
checking whether C compiler accepts -std=c89... yes
checking whether C compiler accepts -Wpedantic... yes
checking whether C compiler accepts -Wno-long-long... yes
checking whether C compiler and linker accept -fsanitize=undefined... yes
checking whether C compiler accepts -fno-sanitize-recover=undefined... yes
checking whether C compiler and linker accept -fsanitize=unsigned-integer-overflow... no
checking whether C compiler accepts -fno-sanitize-recover=unsigned-integer-overflow... no
checking whether C compiler and linker accept -fsanitize=nullability... no
checking whether C compiler accepts -fno-sanitize-recover=nullability... no
checking whether C compiler accepts -fno-omit-frame-pointer... yes
checking whether C compiler and linker accept -fsanitize=address... yes
checking whether C compiler accepts -fno-omit-frame-pointer... (cached) yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for sys/param.h... yes
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for __int128... yes
checking for intmax_t... yes
checking size of void *... 8
checking for library containing getopt... none required
checking for strtoimax... yes
checking for strtoll... yes
checking for mergesort... no
checking for mkstemps... yes
checking for timegm... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether strcasecmp is declared... yes
checking whether vasprintf is declared... no
checking for pandoc... /usr/bin/pandoc
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: error: cannot find input file: `tests/tests-c-compiler/check-src/Makefile.in'

I have installed the required libraries in REQUIREMENTS.md as well as a few more, but I am stuck here

@b-hakim
Copy link
Author

b-hakim commented Nov 12, 2023

I tried to switch to the mder branch, and I got the following:

make  all-recursive
make[1]: Entering directory '/media/.../v2x/asn1c'
Making all in libasn1parser
make[2]: Entering directory '/media/.../v2x/asn1c/libasn1parser'
./expr-h.pl asn1p_expr.h > asn1p_expr_str.h
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT asn1parser.lo -MD -MP -MF ".deps/asn1parser.Tpo" -c -o asn1parser.lo asn1parser.c; \
then mv -f ".deps/asn1parser.Tpo" ".deps/asn1parser.Plo"; else rm -f ".deps/asn1parser.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT asn1parser.lo -MD -MP -MF .deps/asn1parser.Tpo -c asn1parser.c  -fPIC -DPIC -o .libs/asn1parser.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT asn1parser.lo -MD -MP -MF .deps/asn1parser.Tpo -c asn1parser.c -o asn1parser.o >/dev/null 2>&1
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT asn1p_y.lo -MD -MP -MF ".deps/asn1p_y.Tpo" -c -o asn1p_y.lo asn1p_y.c; \
then mv -f ".deps/asn1p_y.Tpo" ".deps/asn1p_y.Plo"; else rm -f ".deps/asn1p_y.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -Wshadow -Wcast-qual -Wcast-align -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -MT asn1p_y.lo -MD -MP -MF .deps/asn1p_y.Tpo -c asn1p_y.c  -fPIC -DPIC -o .libs/asn1p_y.o
asn1p_y.y: In function 'asn1p_parse':
asn1p_y.y:357:27: error: 'param' undeclared (first use in this function)
  357 |                 *(void **)param = $1;
      |                           ^~~~~
asn1p_y.y:357:27: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [Makefile:303: asn1p_y.lo] Error 1
make[2]: Leaving directory '/media/.../v2x/asn1c/libasn1parser'
make[1]: *** [Makefile:306: all-recursive] Error 1
make[1]: Leaving directory '/media/.../v2x/asn1c'
make: *** [Makefile:216: all] Error 2

Not sure what went wrong

@chetanpandey1266
Copy link

Are you doing this? This worked for me

test -f configure || autoreconf -iv
./configure
make

@b-hakim
Copy link
Author

b-hakim commented Nov 28, 2023

What worked for me is to switch to the this other repo https://github.com/mouse07410/asn1c doing the same steps worked over there. Not sure what is different with this repo.

@chetanpandey1266
Copy link

chetanpandey1266 commented May 8, 2024

sudo apt-get install libtool
Then ran the above commands that I shared

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

2 participants