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

Avoid generate duplicated files for install command. #625

Closed

Conversation

doitian
Copy link
Contributor

@doitian doitian commented May 24, 2019

The module headers are already added in the top Makefile.am, which is
introduced in 91fae3a, but the module
Makefile.am.include will add the headers again.

Steps to reproduce the issue:

./autogen.sh
./configure --enable-module-recovery --prefix /tmp/secp256k1
make
make install

Failure message:

/usr/bin/install -c -m 644 include/secp256k1.h include/secp256k1_ecdh.h include/secp256k1_recovery.h include/secp256k1_recovery.h '/usr/local/include'
/usr/bin/install: will not overwrite just-created '/usr/local/include/secp256k1_recovery.h' with 'include/secp256k1_recovery.h'
Makefile:1151: recipe for target 'install-includeHEADERS' failed
make[1]: *** [install-includeHEADERS] Error 1
make[1]: Leaving directory '/home/travis/secp256k1'
Makefile:1578: recipe for target 'install-am' failed
make: *** [install-am] Error 2

Closes #624

The module headers are already added in the top `Makefile.am`, which is
introduced in 91fae3a, but the module
`Makefile.am.include` will add the headers again.

Steps to reproduce the issue:

    ./autogen.sh
    ./configure --enable-module-recovery --prefix /tmp/secp256k1
    make
    make install

Failure message:

    /usr/bin/install -c -m 644 include/secp256k1.h include/secp256k1_ecdh.h include/secp256k1_recovery.h include/secp256k1_recovery.h '/usr/local/include'
    /usr/bin/install: will not overwrite just-created '/usr/local/include/secp256k1_recovery.h' with 'include/secp256k1_recovery.h'
    Makefile:1151: recipe for target 'install-includeHEADERS' failed
    make[1]: *** [install-includeHEADERS] Error 1
    make[1]: Leaving directory '/home/travis/secp256k1'
    Makefile:1578: recipe for target 'install-am' failed
    make: *** [install-am] Error 2

Closes bitcoin-core#624
@gmaxwell
Copy link
Contributor

Drat. AFAICT simply reverting the merge is actually the correct fix. Do you agree? If so I would appreciate changing your PR to just a revert.

doitian added a commit to doitian/secp256k1 that referenced this pull request May 24, 2019
This reverts commit 91fae3a, reversing
changes made to 5df77a0.

See discussion in bitcoin-core#625

After the change, if we enable any module, `make install` fails because of the
duplicated files in the command line arguments.
@doitian
Copy link
Contributor Author

doitian commented May 24, 2019

Drat. AFAICT simply reverting the merge is actually the correct fix. Do you agree? If so I would appreciate changing your PR to just a revert.

I created another one to do the revert. Pick one and close the other.

gmaxwell added a commit that referenced this pull request May 24, 2019
662918c Revert "Merge #620: Install headers automatically" (ian)

Pull request description:

  This reverts commit 91fae3a, reversing
  changes made to 5df77a0.

  See discussion in #625

  After the change, if we enable any module, `make install` fails because of the
  duplicated files in the command line arguments.

  Closes #624

Tree-SHA512: 7769ede527ac307bff094603e5974c56b19e41bc2ef55113173d3dbc8e545d6add7ae044753fa0361595e5e7a746d6c8d641f98caa3381b683aa2b61a1742097
@gmaxwell
Copy link
Contributor

Resolved by #626

@gmaxwell gmaxwell closed this May 24, 2019
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

Successfully merging this pull request may close these issues.

make install fails
2 participants