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

Can't build 0.9.0 from source tarball #7

Open
lgbaldoni opened this issue May 13, 2018 · 18 comments
Open

Can't build 0.9.0 from source tarball #7

lgbaldoni opened this issue May 13, 2018 · 18 comments
Labels

Comments

@lgbaldoni
Copy link

See attached log.

@dai-vdr dai-vdr added the bug label May 14, 2018
@jpellegrini
Copy link

It also happens with the sources from git (pulled today, last commit was a5516eb9a15539d2bf5e3b498d26f3f80c8fc906), and without the -j8 option to make.

@jpellegrini
Copy link

Also -- Debian has 0.9.0 packaged. It may be worth looking at their patches!

@lgbaldoni
Copy link
Author

@jpellegrini most of them don't apply and judging by the contents, debian seems to be using a modified source tarball.

@lgbaldoni
Copy link
Author

@jpellegrini I see now debian is using the release tarball and not the source one.
Hence the report.

@jpellegrini
Copy link

Hello; I have tried again compiling a git checkout, and it fails, not for a different reason.

There is no configure in the repository, so I ran

./autogen.sh
./configure
make

autogen.sh and configure succeed (return zero), but make fails:

$ make                                                                                                                                                                                                                                             
Making all in doc
make[1]: Entering directory '/home/jeronimo/pkg/scheme/sigscheme/doc'
make[1]: *** No rule to make target 'index.html', needed by 'all-am'.  Stop.
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/sigscheme/doc'
make: *** [Makefile:544: all-recursive] Error 1
$

So, I tried removing doc/Makefile and inits place I put this file:

all:
        echo "nope"

and tried again. But make failed again, this time in a target that I believe I can't skip:

$ make
Making all in doc
make[1]: Entering directory '/home/jeronimo/pkg/scheme/sigscheme/doc'
echo "nope"
nope
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/sigscheme/doc'
Making all in m4
make[1]: Entering directory '/home/jeronimo/pkg/scheme/sigscheme/m4'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/sigscheme/m4'
Making all in tools
make[1]: Entering directory '/home/jeronimo/pkg/scheme/sigscheme/tools'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/sigscheme/tools'
Making all in libgcroots
make[1]: Entering directory '/home/jeronimo/pkg/scheme/sigscheme/libgcroots'
make[1]: *** No rule to make target 'all'.  Stop.
make[1]: Leaving directory '/home/jeronimo/pkg/scheme/sigscheme/libgcroots'
make: *** [Makefile:544: all-recursive] Error 1

I have tried applying the pending pull requests, but didn't change anything.

@kou
Copy link
Member

kou commented Aug 22, 2020

You need to add the --enable-maintainer-mode option to configure.

@kou kou closed this as completed Aug 22, 2020
@kou
Copy link
Member

kou commented Aug 22, 2020

Or you can use released tarball https://github.com/uim/sigscheme/releases/download/0.9.0/sigscheme-0.9.0.tar.gz without --enable-maintainer-mode.

@lgbaldoni
Copy link
Author

This is how it fails now.

@kou kou reopened this Aug 23, 2020
@kou
Copy link
Member

kou commented Aug 23, 2020

Could you show how did you build to reproduce the case?

@dai-vdr dai-vdr added question and removed bug labels Aug 26, 2020
@lgbaldoni
Copy link
Author

Same problem with 0.9.1, see build log

@kou
Copy link
Member

kou commented Apr 22, 2021

Why did you specify --enable-maintainer-mode?

@lgbaldoni
Copy link
Author

Why did you specify --enable-maintainer-mode?

I followed the advice you gave in #7 (comment).

Otherwise I end up again with

Making all in doc
make[1]: *** No rule to make target 'index.html', needed by 'all-am'.  Stop.
make: *** [Makefile:545: all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.XYSVP8 (%build)

See build log.

@kou
Copy link
Member

kou commented Apr 22, 2021

OK.
You don't need to use --enable-maintainer-mode with the released archive: https://github.com/uim/sigscheme/releases/download/0.9.1/sigscheme-0.9.1.tar.gz
You need to use --enable-maintainer-mode with source checked out by git.

Did you use the released archive?
(You also don't need to run autogen.sh with the released archive.)

@lgbaldoni
Copy link
Author

Did you use the released archive?

No, I used the source tarball https://github.com/uim/sigscheme/archive/refs/tags/0.9.1.tar.gz.

Does it mean it's non functional?

@kou
Copy link
Member

kou commented Apr 23, 2021

The source table https://github.com/uim/sigscheme/archive/refs/tags/0.9.1.tar.gz is same as cloning by git.
It's not prepared for release. You need to prepare manually by running autogen.sh and so on.

You should use https://github.com/uim/sigscheme/releases/download/0.9.1/sigscheme-0.9.1.tar.gz not ../refs/tags/....

@lgbaldoni
Copy link
Author

Thing is, I did run autogen.sh. What else do I need to do?

@kou
Copy link
Member

kou commented Apr 23, 2021

@lgbaldoni
Copy link
Author

I've just compared the contents of the two: I could not find binaries of any sort in the release tarball, so I can use it to build a rpm for distro inclusion.
It's not always the case, hence why I usually build from source.

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

No branches or pull requests

4 participants