Skip to content

There is build error for the archieved tar ball #465

Closed

Description

@ewanglong
  1. download https://github.com/thesofproject/sof/archive/v1.2.tar.gz;
    2)unzip it in local and follow the building steps:
    $autogen.sh
    $./configure --enable-rimage
    $make
    will meet below error:
    man_apl.c:64:30: error: expected expression before ‘,’ token
    .major_version = SOF_MAJOR,
    ^

It was due to there is no git tag by directly tar ball building. May refer to below script from version.sh.
GIT_TAG=git describe --abbrev=4 2>/dev/null

So need specify or get the correct version under tar ball building environment.

Activity

  1. xiulipan commented on Oct 8, 2018

    @xiulipan
    Contributor

    @ewanglong
    Yes, this bug is related to the git tag.
    We will have some fix for it. We may not rely on the git tag anymore to avoid this problem.

  2. lgirdwood commented on Oct 8, 2018

    @lgirdwood
    Member

    @xiulipan make dist should take the git tag and write it to a file for the version script to read and generate SOF_MAJOR etc.

  3. xiulipan commented on Oct 9, 2018

    @xiulipan
    Contributor

    @lgirdwood
    I will check that. Maybe our script will try to regenerate the version and overwrite it?

  4. added
    bugSomething isn't working as expected
    P2Critical bugs or normal features
    on Oct 10, 2018
  5. self-assigned this
    on Nov 19, 2018
  6. zhuyingjiang commented on Nov 20, 2018

    @zhuyingjiang
    Contributor

    PR 597 #597 is submit to solve this problem, we use the .tarball-version file to get the version number if the .git folder can't be found. So every time anyone who make a tag should also change the version number in the .tarball-version file. Now the .tarball-version file should be upstreamed.

  7. zhuyingjiang commented on Nov 21, 2018

    @zhuyingjiang
    Contributor

    PR597 #597 solved this problem, so close this issue.

  8. jajanusz commented on Nov 21, 2018

    @jajanusz
    Contributor

    #605 reverted it, I described there what should be done.
    One more thing tho:
    I made tarball with ./autogen.sh && ./configure --enable-rimage && make dist and it had .tarball-version inside it. However https://github.com/thesofproject/sof/archive/v1.2.tar.gz doesn't have it, you should look into how published tarballs are made because they look wrong

  9. zhuyingjiang commented on Nov 22, 2018

    @zhuyingjiang
    Contributor

    @jajanusz My PR is submit to master branch and only the release after that will take effect. v1.2.tar.gz is from another branch surely will not have .tarball-version in it.

  10. zhuyingjiang commented on Nov 22, 2018

    @zhuyingjiang
    Contributor

    @lgirdwood this is a issue of " build error for the archived tar ball" or a issue for "make dist", I think they are 2 issues. My PR #597 resolved the "build error for the archived tar ball". while make dist is another issue while relating to this

  11. zhuyingjiang commented on Nov 22, 2018

    @zhuyingjiang
    Contributor

    @jajanusz @lgirdwood
    A little more describe on this: we get version number from git tag, and compile need this version number for compiling. but if we release tarball with .git folder not included, the compile will fail for less the version number. My fix #597 is to resolve this.
    As for why https://github.com/thesofproject/sof/archive/v1.2.tar.gz can't work. I think:
    1: the release have not include my patch for they are not in the same branch. How should it work?
    2: The https://github.com/thesofproject/sof/archive/v1.2.tar.gz can't work is because the step for generate the tar ball is error, the "make dist" have excluded all the scripts even without "autogen.sh". the tarball in the github is not the same with the output of "make dist", someone else must have changed on that.

  12. zhuyingjiang commented on Nov 22, 2018

    @zhuyingjiang
    Contributor

    @jajanusz @lgirdwood
    It seems we have wrong git tag format after v1.1, so "git descibe" always get v1.1 even we have tagged v1.1-rc and v1.2 , a new issue?
    ===================git show v1.1:===>
    tag v1.1
    Tagger: Liam Girdwood liam.r.girdwood@linux.intel.com
    Date: Wed Apr 4 14:58:51 2018 +0100

    v1.1

    commit 082c86f
    Author: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com
    Date: Tue Apr 3 08:57:18 2018 -0500
    ====================git show v1.2:===>
    commit 7dd4b1d
    Merge: 0875f0c 380c067
    Author: Liam Girdwood lgirdwood@gmail.com
    Date: Tue Sep 18 12:53:02 2018 +0100

  13. lgirdwood commented on Nov 22, 2018

    @lgirdwood
    Member

    @jajanusz @zhuyingjiang version 1.2 tag is missing from master tagged during the long stabilisation freeze in the stable branch whilst master churned. i.e. we could not merge stable back into master due to too many conflicts. This has been resolved for 1.3 since we are all working on master now.

  14. zhuyingjiang commented on Nov 30, 2018

    @zhuyingjiang
    Contributor

    @jajanusz I see in current "make dist", the autogen.sh and the scripts/ folder are removed from the tarball, are you still working on this? if yes, remove these files is intended or we need fix as the previous version tarball release do ? What will be the compile steps after uncompressed the tarball? do ./configure --enable-rimage first?

  15. zhuyingjiang commented on Nov 30, 2018

    @zhuyingjiang
    Contributor

    @lgirdwood Since the title and depict of this issue is about "fix the build error", but in fact it is the "make dist" feature can't work. Shall we close this issue and new a "make dist" for more efficiency track? Or at least change the title of this issue? I see changes between old tarball release and the current one, and the current tarball release exclude autogen.sh and the scripts/ folder, is this intended to do and someone still working on this?

  16. jajanusz commented on Nov 30, 2018

    @jajanusz
    Contributor

    @zhuyingjiang I don't work on 'make dist' for current build system, but in week or two I will have to make something like 'make dist' in kconfig setup manually (I mean it's not something that comes for 'free' like in autotools), so I'll try to make it good right away.

  17. zhuyingjiang commented on Dec 5, 2018

    @zhuyingjiang
    Contributor

    Close this issue, #670 to support the feature of "make dist" to do the tarball release.

  18. mengdonglin commented on Dec 11, 2018

    @mengdonglin
    Collaborator

    Mark this issue as "won't fix". We won't fix this for SOF 1.2 but will fix it for new upstream releases (feature #670)

  19. added
    won't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)
    verifiedQA/Bug reporter verifies solution worked.
    on Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featuresbugSomething isn't working as expectedverifiedQA/Bug reporter verifies solution worked.won't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions