The MASM Forum

Miscellaneous => The Orphanage => Topic started by: Magnum on May 18, 2014, 12:21:11 PM

Title: Compiler can't create executables
Post by: Magnum on May 18, 2014, 12:21:11 PM
I must be pretty tired.

I could not find the Linux assembler forum. :-)

I could not install a Linux program using the package manager.
(Puppy Slacko 5.6.0)

So it was suggested that I compile the source.

It used gcc, so I can not understand this error message.

"Compiler can't create executables"

# ./configure
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

I am still using fasm and have been looking for some GUI code.

Andy

Thanks scholars, gentlemen, and go-getters.

Andy
Title: Re: Compiler can't create executables
Post by: Gunner on May 18, 2014, 01:31:28 PM
And when you open 'config.log', what does it say?

Also, # is the root (admin) prompt,  why are you running as root?  $ is the normal user prompt.  Did you do a 'su'? or is it how you use Linux?  You shouldn't use Linux (or any OS) as root.  That is why there is 'sudo' and 'su' commands.
Title: Re: Compiler can't create executables
Post by: Gunther on May 18, 2014, 07:27:21 PM
Andy,

does this work with a terminal?

gcc --version


Gunther
Title: Re: Compiler can't create executables
Post by: Magnum on May 19, 2014, 02:47:07 PM
Ja.

# gcc --version
gcc (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Andy
Title: Re: Compiler can't create executables
Post by: Gunther on May 19, 2014, 04:10:37 PM
Andy,

you've an appropriate Installation of GCC and that should work to create ELF.

Gunther