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

Libtoolize error #15

Open
jtthewoodworker opened this issue May 5, 2020 · 4 comments
Open

Libtoolize error #15

jtthewoodworker opened this issue May 5, 2020 · 4 comments

Comments

@jtthewoodworker
Copy link

Not sure where to post this, but found this spot. I can move it somewhere else if you like.
I have cloned the tddec-code into c:\TDD\tddec-code on Windows 10. Started the build and received this error.
Any suggestions?
image

@jwgrenning
Copy link
Owner

jwgrenning commented May 5, 2020 via email

@jtthewoodworker
Copy link
Author

A quick search found this: https://pete.akeo.ie/2010/12/that-darn-libtoolize-acconfigmacrodirm4.html

Good ole line endings issues. Haven't figured out how to resolve yet, but working on it. Ideally, I think there would be a .gitattributes file in the repo that would force line endings for files that require it.

@jtthewoodworker
Copy link
Author

jtthewoodworker commented May 6, 2020

Went thru all the files and converted all the *.sh, *.ac and *.am files (+ all the make fles) from windows to unix line endings. SUCCESS!

Now onto the next hurdle. Thanks for your suggestions.

I did pull CppUTest from the github repo and also used the latest gcc instead of gcc:7.

docker  run -it -v _c_TDDa
docker  run -it -v _c_TDDb

@EngJay
Copy link

EngJay commented May 25, 2021

For reference, these were the offending files in regard to line endings when running with a Windows host:

cpputest/Makefile_CppUTestExt
cpputest/Makefile_using_MakefileWorker
cpputest/Makefile.am
cpputest/m4/acx_pthread.m4
cpputest/m4/m4_ax_prefix_config_h.m4

A quick graphical way to fix this is to open the files in Visual Studio Code, then change the line endings for each by clicking the CLRF indicator in the bottom status bar. This opens a prompt that allows you to choose LF instead. Then just save the file.

Another issue I ran into was the inclusion of changes in the CppUTest submodule in the repo - this is resolved by fixing the incorrect indent of ignore = dirty in .gitmodules.

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

3 participants