tddec-code icon indicating copy to clipboard operation
tddec-code copied to clipboard

Libtoolize error

Open jtthewoodworker opened this issue 5 years ago • 4 comments

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

jtthewoodworker avatar May 05 '20 15:05 jtthewoodworker

Hi

I don't really use Windows. Someone contributed the Docker for Windows instructions. Are you using the CppUTest that is in the repo as a submodule?

Ideas

  • You might try creating the m4/ directory under cpputest/
  • You might try a different gcc version.
  • You might drop that submodule and get the latest from CppUTest.

Are you using windows 10?

The cpputest google group could probably help you more with this. Once you are past cpputest build problems I could help with the tddec-code.

I should probably get a windows VM going.

Let me know what happens next.

James

On 5 May 2020, at 11:39, jtthewoodworker wrote:

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

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jwgrenning/tddec-code/issues/15

jwgrenning avatar May 05 '20 16:05 jwgrenning

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 avatar May 05 '20 19:05 jtthewoodworker

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

jtthewoodworker avatar May 06 '20 02:05 jtthewoodworker

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.

EngJay avatar May 25 '21 20:05 EngJay