64 bit blues

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can't do a make on either of my 64 bit Win7 machines. Some times it works but most of the time it fails.

I have no problems with 32 bit Win7 or XP.

I reported this problem earlier, but I thought I found and fixed the problem. But I didn't do much software building at the time.
https://www.avrfreaks.net/index.p...

My makes get an error near the end. I've never seen a compile fail. It's always either objdump, objcopy size or nm.

The error message lists the program that fails and says "Invalid argument".

If I re-run that command from the command line, it works perfectly.

Size before:
/usr/bin/sh: /f/WinAVR/bin/avr-size: Invalid argument


Size after:
/usr/bin/sh: /f/WinAVR/bin/avr-size: Invalid argument

This is a strange problem. I now have two command prompt windows open. If I do a make from one of them, it works every time. If I do the same make from the other one, it fails every time.

This is a small build. I suspect if I did a big build, it would always fail.

I think my makefile may encourage this problem. If I build a program with a simple makefile generated by mfile, it often works.

But if I use my big fat ugly makefile it seems to fail all the time. My big fat ugly makefile has one huge advantage for me. It's the only one I've seen in many years that builds from source that is located in many different folders.

If anyone knows of another makefile that can do this, please give me a copy.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think I found a key ingredient in this mess. I always use Cygwin's bash instead of Microsoft's cmd.exe. I tried using cmd and so far, make hasn't failed when running from cmd. Apparently something in bash messes up it's child processes.

So rather than install a 32 bit O.S., I will try to learn to love cmd.exe. Or maybe not. I've been looking at Microsoft's PowerShell and it seems better than cmd. So I will try that out first.