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;








1















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"









share|improve this question






















  • 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

















1















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"









share|improve this question






















  • 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













1












1








1








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"









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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

















  • 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
















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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현