Re: gmp-6.2.1 configuration error while configuring on WSL2 Ubuntu 20.04.6

2023-07-03 Thread philliprusso
kind regards to take time to help me. So I guess that one thing I maybe didn't 
quite understand m4 as a software package. not really familiar with m4 yet or 
what exactly it is used for. Should start me off on the right track. Merci 
beaucoup.




Sent with Proton Mail secure email.

--- Original Message ---
On Sunday, July 2nd, 2023 at 1:10 AM, Marc Glisse  wrote:


> On Sat, 1 Jul 2023, philliprusso wrote:
> 
> > I have:
> > 
> > checking for suitable m4... configure: error: No usable m4 in $PATH or 
> > /usr/5bin (see config.log for reasons).
> > 
> > I don't quite get why I have to sudo ./configure or if I should be 
> > providing options here for WSL2 version of Ubuntu 20.04.6 on the Windows 
> > Subsystem for Linux. Anyone can help me to resolve this it is because I 
> > have to install gcc-11 on Ubuntu WSL2 for a software package that needs it.
> 
> 
> The error message is not "you failed, try some random other thing". It
> explicitly tells you that it tried to find a program called m4 (which is
> necessary for the build) and couldn't find it. So you need to install that
> before you can build GMP.
> 
> Plugging this exact error message in a search engine leads to
> https://stackoverflow.com/q/7902894/1918193 and many others.
> 
> Note that since this is Ubuntu, it would be easier to install pre-built
> packages with
> 
> sudo apt install libgmp-dev
> 
> --
> Marc Glisse
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Undefined reference to lexar_line?

2023-07-03 Thread philliprusso
Any insight on why undefined reference to lexar_line when making gcc-11?

I tried to fish around for lexar package if it were installed so far but no 
luck yet on how to get make to complete on WSL2 Ubuntu 22.04.6.

fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -o 
build/gengtype \
build/gengtype.o build/errors.o build/gengtype-lex.o build/gengtype-parse.o 
build/gengtype-state.o ../../build-x86_64-pc-linux-gnu/libiberty/libiberty.a
/usr/bin/ld: build/gengtype.o: in function `create_optional_field_(pair*, 
type*, char const*, char const*, int)':
/home/prusso/gcc-11/host-x86_64-pc-linux-gnu/gcc/../.././gcc/gengtype.cc:1030: 
undefined reference to `lexer_line'
/usr/bin/ld: build/gengtype.o: in function `adjust_field_rtx_def(type*, 
options*)':
/home/prusso/gcc-11/host-x86_64-pc-linux-gnu/gcc/../.././gcc/gengtype.cc:1165: 
undefined reference to `lexer_line'
/usr/bin/ld: 
/home/prusso/gcc-11/host-x86_64-pc-linux-gnu/gcc/../.././gcc/gengtype.cc:1220: 
undefined reference to `lexer_line'
/usr/bin/ld: 
/home/prusso/gcc-11/host-x86_64-pc-linux-gnu/gcc/../.././gcc/gengtype.cc:1230: 
undefined reference to `lexer_line'/usr/bin/ld: 
/home/prusso/gcc-11/host-x86_64-pc-linux-gnu/gcc/../.././gcc/gengtype.cc:1296: 
undefined reference to `lexer_line'

Sent with [Proton Mail](https://proton.me/) secure email.
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs