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

Fails to build with "Error: Unable to find 'gensio_base.i'" #58

Closed
larsks opened this issue Jun 10, 2023 · 3 comments
Closed

Fails to build with "Error: Unable to find 'gensio_base.i'" #58

larsks opened this issue Jun 10, 2023 · 3 comments

Comments

@larsks
Copy link

larsks commented Jun 10, 2023

Trying to build from HEAD (7e88102). After successfully running ./reconf followed by ./configure --prefix=/usr/local/pkg/gensio, gensio fails to build with:

$ make
.
.
.
go mod tidy
go: found github.com/cminyard/go/gensio in github.com/cminyard/go/gensio v0.0.0-00010101000000-000000000000
go build example.go
# github.com/cminyard/go/gensio
gensio.swigcxx:45: Error: Unable to find 'gensio_base.i'
make[5]: *** [Makefile:601: example] Error 1
make[5]: Leaving directory '/home/lars/tmp/gensio/c++/swig/go/examples'
make[4]: *** [Makefile:479: all-recursive] Error 1
make[4]: Leaving directory '/home/lars/tmp/gensio/c++/swig/go'
make[3]: *** [Makefile:475: all-recursive] Error 1
make[3]: Leaving directory '/home/lars/tmp/gensio/c++/swig'
make[2]: *** [Makefile:475: all-recursive] Error 1
make[2]: Leaving directory '/home/lars/tmp/gensio/c++'
make[1]: *** [Makefile:534: all-recursive] Error 1
make[1]: Leaving directory '/home/lars/tmp/gensio'
make: *** [Makefile:466: all] Error 2

I see the mentioned file in ./c++/swig/include/gensio_base.i.

Running ./configure --without-go ... allows the build to complete without errors.

@larsks larsks changed the title Fails to build Fails to build with "Error: Unable to find 'gensio_base.i'" Jun 10, 2023
@larsks
Copy link
Author

larsks commented Jun 10, 2023

This is with gcc 13.1.1 and Make 4.4 on Fedora 38.

@cminyard
Copy link
Owner

I don't normally compile gensio in-tree, almost nobody does that any more, so nobody has noticed it.

Anyway, this was an issue with go picking up things from the source tree that it shouldn't have been picking up. I had to rename some things to avoid that happening, and I had to add an extra include for compiling in tree. But it's fixed and pushed into the main branch.

@cminyard
Copy link
Owner

Oh, and thanks for reporting this. It's still an issue that needed to be fixed, I just hadn't noticed.

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