AROS World Exec

Development => Development (General) => Topic started by: Akira2024 on December 10, 2023, 06:45:27 AM

Title: Compiling example with gcc, not executeable
Post by: Akira2024 on December 10, 2023, 06:45:27 AM
Ive copied and pasted this small c source

gcc doesnt give any messages but the resulting file is not executeable.

What I am missing?
Title: Re: Compiling example with gcc, not executeable
Post by: deadwood on December 10, 2023, 08:06:55 AM
Try adding -fno-common switch to your gcc compilation line and see if that helps.
Title: Re: Compiling example with gcc, not executeable
Post by: AMIGASYSTEM on December 10, 2023, 12:32:38 PM
@ Akira2024
With the parameter "-fno-common" I compiled your source without errors, see screenshot.

The GCC has been fixed will be available with the next version of AROS One (2.3)


@ deadwood
With the GCC Fixate version in your last Build I had to give a high stack, otherwise I get a Guru

The previous version I used with ill parameter "-fno-common" worked without using the Stack !


(https://ae.arosworld.org/index.php?action=dlattach;topic=1229.0;attach=5563;image)