So file format not recognized treating as linker script




















I finally figured out what was going on and it turns out it was something simple, as it often is. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 10 months ago. Active 6 years, 9 months ago. Viewed 5k times. I am struggling to compile a demo program for an arm device. Documentation is non-existant and I more used to a Windows environment.

Any ideas as to how to get this working? Mine is Python 3. LinkError: command 'gcc' failed with exit status 1 Segmentation fault. Seems like error within ceres. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. Linked pull requests. You signed in with another tab or window. Reload to refresh your session. Here's what I got:. I've searched the web for makefiles in this format, but i came up empty handed so i was wondering if someone can help.

When it tries to compile i get:. I've compiled programs using assembly files but I'm not to sure what to do with c files or the file1. Any suggestions or links to a reference would be appreciated. You have two problems with your gcc command-line. First, you're specifying the -S flag, which causes gcc to emit assembly code, rather than object code.

Second, you're missing the -c flag, which tells gcc to compile the file to an object file, but not link it. If you just remove -S and change nothing else, you'll end up with an executable program named file1. Besides those errors, you could simplify your makefile by the use of pattern rules. I suggest you try the following instead:.

Or, as EmployedRussian points out, you can go with something even more minimal that leverages more of the built-in features of GNU make:.

Is putting assembler into file1. Forgot some simple order guidelines. Thank you! Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses.



0コメント

  • 1000 / 1000