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 libyaml building on Ubuntu #264

Open
MartinaBarreiroGuerra opened this issue Feb 14, 2023 · 2 comments
Open

problem libyaml building on Ubuntu #264

MartinaBarreiroGuerra opened this issue Feb 14, 2023 · 2 comments

Comments

@MartinaBarreiroGuerra
Copy link

MartinaBarreiroGuerra commented Feb 14, 2023

libtool: link: gcc -g -O2 -o .libs/run-emitter-test-suite run-emitter-test-suite.o  ../src/.libs/libyaml.so -Wl,-rpath -Wl,/home/martina/Descargas/libyaml/build/lib
make[2]: se entra en el directorio '/home/martina/Descargas/libyaml/tests'
make[2]: No se hace nada para 'install-exec-am'.
make[2]: No se hace nada para 'install-data-am'.
make[2]: se sale del directorio '/home/martina/Descargas/libyaml/tests'
make[1]: se sale del directorio '/home/martina/Descargas/libyaml/tests'

I'm trying building on Ubuntu but I have a problem.
Have you are any idea for this problem?

Thank you.

@perlpunk
Copy link
Member

perlpunk commented Feb 14, 2023

Please check out the instructions in the Readme and follow them.
Then report everything you did including the output here. Also tell us on what platform and version you are and what you installed.
Otherwise no one is able to help.
It would also be polite to change your locale to english before doing it.
My spanish and my knowledge of make is good enough to get the above output, but don't assume everyone can.

edit: also please mark code sections with three backticks. There is this small Markdown help link at the bottom right of the text area; in case you're new to Github. I edited your post for you now.

@MartinaBarreiroGuerra
Copy link
Author

Hi thank you for the response! I'm new to Github. First time that I write.

On Ubuntu 22.04.1 LTS I'm trying to cross-compile for windows because I have to install openocd for windows. The project https://github.com/SpinalHDL/openocd_riscv use this library.

This is what I do:

martina@martina-ubuntu:~/riscv/openocd-win$ git clone --recursive https://github.com/yaml/libyaml.git
martina@martina-ubuntu:~/riscv/openocd-win$ cd libyaml/
martina@martina-ubuntu:~/riscv/openocd-win/libyaml$ mkdir build
martina@martina-ubuntu:~/riscv/openocd-win/libyaml$ ./bootstrap
...
martina@martina-ubuntu:~/riscv/openocd-win/libyaml$ ./configure --host="i686-w64-mingw32" --prefix=/home/martina/riscv/openocd-win/libyaml/build
martina@martina-ubuntu:~/riscv/openocd-win/libyaml$ make
...

libtool: link: i686-w64-mingw32-gcc -g -O2 -o .libs/example-deconstructor-alt.exe example-deconstructor-alt.o  ../src/.libs/libyaml.dll.a -L/home/martina/riscv/openocd-win/libyaml/build/lib
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs'
libtool:   error: Continuing, but uninstalled executables may not work.
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs:/home/martina/riscv/openocd-win/libyaml/build/lib:/home/martina/riscv/openocd-win/libyaml/build/bin'
libtool:   error: Continuing, but uninstalled executables may not work.
i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -g -O2 -MT run-parser-test-suite.o -MD -MP -MF .deps/run-parser-test-suite.Tpo -c -o run-parser-test-suite.o run-parser-test-suite.c
mv -f .deps/run-parser-test-suite.Tpo .deps/run-parser-test-suite.Po
/bin/bash ../libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc  -g -O2   -o run-parser-test-suite.exe run-parser-test-suite.o ../src/libyaml.la 
libtool: link: i686-w64-mingw32-gcc -g -O2 -o .libs/run-parser-test-suite.exe run-parser-test-suite.o  ../src/.libs/libyaml.dll.a -L/home/martina/riscv/openocd-win/libyaml/build/lib
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs'
libtool:   error: Continuing, but uninstalled executables may not work.
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs:/home/martina/riscv/openocd-win/libyaml/build/lib:/home/martina/riscv/openocd-win/libyaml/build/bin'
libtool:   error: Continuing, but uninstalled executables may not work.
i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../include  -I../include -Wall   -g -O2 -MT run-emitter-test-suite.o -MD -MP -MF .deps/run-emitter-test-suite.Tpo -c -o run-emitter-test-suite.o run-emitter-test-suite.c
mv -f .deps/run-emitter-test-suite.Tpo .deps/run-emitter-test-suite.Po
/bin/bash ../libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc  -g -O2   -o run-emitter-test-suite.exe run-emitter-test-suite.o ../src/libyaml.la 
libtool: link: i686-w64-mingw32-gcc -g -O2 -o .libs/run-emitter-test-suite.exe run-emitter-test-suite.o  ../src/.libs/libyaml.dll.a -L/home/martina/riscv/openocd-win/libyaml/build/lib
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs'
libtool:   error: Continuing, but uninstalled executables may not work.
libtool:   error: Could not determine the host path corresponding to
libtool:   error:   '/home/martina/riscv/openocd-win/libyaml/src/.libs:/home/martina/riscv/openocd-win/libyaml/build/lib:/home/martina/riscv/openocd-win/libyaml/build/bin'
libtool:   error: Continuing, but uninstalled executables may not work.
make[1]: Leaving directory '/home/martina/riscv/openocd-win/libyaml/tests'

Thank you!

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