Is there a way to find the root of this error?UTF-8 all the way throughCalling a Lua script from C: errorsHow to exclude a directory in find . commandHow can I recursively find all files in current and subfolders based on wildcard matching?Haskell ghc compiling/linking error, not creating executable. (linux)gcc ld error “libgcov.a(_gcov_merge_add.o) is referenced by DSO”How do I find all files containing specific text on Linux?Error: /usr/bin/ld: final link failed: File truncated/usr/bin/ld: unrecognized option '-plugin' errorStrange File Reading Error
Is this statement about cut time correct?
Is it legal to have an abortion in another state or abroad?
Why are Stein manifolds/spaces the analog of affine varieties/schemes in algebraic geometry?
How to patch glass cuts in a bicycle tire?
Is there any relationship between frequency of signal and distance it travels?
How to deal with a colleague who is being aggressive?
Does French have the English "short i" vowel?
Mercedes C180 (W204) dash symbol
How to melt snow without fire or body heat?
What was the idiom for something that we take without a doubt?
Gravitational Force Between Numbers
Why would a rational buyer offer to buy with no conditions precedent?
Why was this character made Grand Maester?
WordPress 5.2.1 deactivated my jQuery
How did NASA Langley end up with the first 737?
Why did Theresa May offer a vote on a second Brexit referendum?
Expected maximum number of unpaired socks
Why haven't we yet tried accelerating a space station with people inside to a near light speed?
What's difference between "depends on" and "is blocked by" relations between issues in Jira next-gen board?
Is the Unsullied name meant to be ironic? How did it come to be?
Is there a simple example that empirical evidence is misleading?
Can I install a back bike rack without attachment to the rear part of the frame?
Nuke it from orbit - surely can only mean bin and buy replacement?
Gravitational effects of a single human body on the motion of planets
Is there a way to find the root of this error?
UTF-8 all the way throughCalling a Lua script from C: errorsHow to exclude a directory in find . commandHow can I recursively find all files in current and subfolders based on wildcard matching?Haskell ghc compiling/linking error, not creating executable. (linux)gcc ld error “libgcov.a(_gcov_merge_add.o) is referenced by DSO”How do I find all files containing specific text on Linux?Error: /usr/bin/ld: final link failed: File truncated/usr/bin/ld: unrecognized option '-plugin' errorStrange File Reading Error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Im trying to compile some files with this given gcc command on a server cluster through Mac terminal:
gcc -o driver -std=c11 -Wall -W -ggdb3 driver.c ASMParser.c ParseResult.c Generate.o Grader.o
And get this error:
/usr/bin/ld:Grader.o: file format not recognized; treating as linker script
/usr/bin/ld:Grader.o:1: syntax error
collect2: error: ld returned 1 exit status
but its not very helpful considering Grader.o is a file I didn't even modify, it was provided by the teacher.
Any help on how to fix this? I have compiled it successfully using that gcc command before but after I added a few more implementation details in ASMParser.c it started giving me this error. Im expecting it to create a file called "driver" that I can run like this:
./driver "test file" "results.txt"
c linux
|
show 3 more comments
Im trying to compile some files with this given gcc command on a server cluster through Mac terminal:
gcc -o driver -std=c11 -Wall -W -ggdb3 driver.c ASMParser.c ParseResult.c Generate.o Grader.o
And get this error:
/usr/bin/ld:Grader.o: file format not recognized; treating as linker script
/usr/bin/ld:Grader.o:1: syntax error
collect2: error: ld returned 1 exit status
but its not very helpful considering Grader.o is a file I didn't even modify, it was provided by the teacher.
Any help on how to fix this? I have compiled it successfully using that gcc command before but after I added a few more implementation details in ASMParser.c it started giving me this error. Im expecting it to create a file called "driver" that I can run like this:
./driver "test file" "results.txt"
c linux
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
1
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
2
Check whetherfile Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.
– Jonathan Leffler
Mar 24 at 2:30
|
show 3 more comments
Im trying to compile some files with this given gcc command on a server cluster through Mac terminal:
gcc -o driver -std=c11 -Wall -W -ggdb3 driver.c ASMParser.c ParseResult.c Generate.o Grader.o
And get this error:
/usr/bin/ld:Grader.o: file format not recognized; treating as linker script
/usr/bin/ld:Grader.o:1: syntax error
collect2: error: ld returned 1 exit status
but its not very helpful considering Grader.o is a file I didn't even modify, it was provided by the teacher.
Any help on how to fix this? I have compiled it successfully using that gcc command before but after I added a few more implementation details in ASMParser.c it started giving me this error. Im expecting it to create a file called "driver" that I can run like this:
./driver "test file" "results.txt"
c linux
Im trying to compile some files with this given gcc command on a server cluster through Mac terminal:
gcc -o driver -std=c11 -Wall -W -ggdb3 driver.c ASMParser.c ParseResult.c Generate.o Grader.o
And get this error:
/usr/bin/ld:Grader.o: file format not recognized; treating as linker script
/usr/bin/ld:Grader.o:1: syntax error
collect2: error: ld returned 1 exit status
but its not very helpful considering Grader.o is a file I didn't even modify, it was provided by the teacher.
Any help on how to fix this? I have compiled it successfully using that gcc command before but after I added a few more implementation details in ASMParser.c it started giving me this error. Im expecting it to create a file called "driver" that I can run like this:
./driver "test file" "results.txt"
c linux
c linux
asked Mar 24 at 1:08
Satoshi24Satoshi24
63
63
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
1
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
2
Check whetherfile Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.
– Jonathan Leffler
Mar 24 at 2:30
|
show 3 more comments
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
1
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
2
Check whetherfile Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.
– Jonathan Leffler
Mar 24 at 2:30
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
1
1
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
2
2
Check whether
file Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.– Jonathan Leffler
Mar 24 at 2:30
Check whether
file Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.– Jonathan Leffler
Mar 24 at 2:30
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319865%2fis-there-a-way-to-find-the-root-of-this-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55319865%2fis-there-a-way-to-find-the-root-of-this-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Backtrack until that change that stopped it from working.
– Broman
Mar 24 at 1:14
1
talk to the teacher. The file is not good for your mac os.
– Serge
Mar 24 at 1:16
I just deleted everything that I added and tried to run it - it was working before but not now
– Satoshi24
Mar 24 at 1:20
It was working fine before, then stopped
– Satoshi24
Mar 24 at 1:20
2
Check whether
file Grader.o
reports something sensible — it may be an object file that is for a Linux machine and not a Mac.– Jonathan Leffler
Mar 24 at 2:30