Compiler stops right away

Help understanding and fixing compiling errors.
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Compiler stops right away

Post by D.Bane »

Hi to all.

I did not see that anyone on the forums had this problem, so I decided to start a topic. I had installed the setup from the email. Unfortunately even though it is a great version I had some problems with it and I wanted to install the newest version from the GitHub.

Now this is the version that I had downloaded yesterday (ecere-sdk-0.44-18-gf564926) and had tried to install with elevated command prompt, this is what I get.

Code: Select all

E:\>cd Builds
E:\Builds>cd ecere-sdk-f564926
E:\Builds\ecere-sdk-f564926>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
gcc: CreateProcess: No such file or directory
mingw32-make[3]: *** [obj/bootstrap.win32/Array.o] Error 1
mingw32-make[2]: *** [ecere] Error 2
mingw32-make[1]: *** [bootstrap] Error 2
mingw32-make: *** [bootstrap] Error 2
I would like to mention that I had installed many versions this way, and had no trouble with it. Also I had installed the newest version from the setup because some error had occurred when I tried to mingw32-make it. But setup had been successful and everything is working.

I do not know if it is related, but if I open Makefiles.epj and do build this is what I get

Code: Select all

Default Compiler
Building project Makefiles using the Debug configuration...
Linking...
   Linker Error: BFD (GNU Binutils) 2.18.50.20080109 internal error, aborting at ../../binutils-2.18.50/bfd/reloc.c line 5305 in bfd_generic_get_relocated_section_contents
c:/program files (x86)/ecere sdk/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: Please report this bug.
collect2: ld returned 1 exit status
Makefiles (Debug) - 1 error, no warning          
All the best,
D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
redj
Posts: 105
Joined: Sun Jan 17, 2010 10:03 am

Re: Complier stops right away

Post by redj »

Hi D.Bane,

Makesfiles.epj is not made to build. it's just a collection of Makefiles for editing. more for me than anyone else... ;-)

-redj
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Complier stops right away

Post by jerome »

Hi D.Bane,

Your linker says 2.18, while the binutils that comes with 0.44 is supposed to be 2.21.53.20110804. Please check your path to see if you have multiple instances of MinGW mixed up in there?

Also, if you downloaded the setup right away when I sent the email, could you please try downloading it again? Sadly, I had to fix the setup 2 or 3 times before I got it right, so id you have the first version you might be missing some files. I'm not sure it is causing this though, because every version I uploaded seemed to at least be able to build the samples and SDK fine.

Regards,

Jerome
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: Complier stops right away

Post by D.Bane »

Hi to both :)

I thought that I should not touch them, but heck, I had to do something :)

I did install the new version without uninstalling the last one, if that might be a problem. I had not download the file as soon as I got email, but it might have been soon after, I will try it again and get back to you.

(that could be the same reason for the mantis bug I posted).

I will get back to you with results in few hours if I will be able to or tomorrow morning..heh that is still your today :)

All the best,
D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
redj
Posts: 105
Joined: Sun Jan 17, 2010 10:03 am

Re: Complier stops right away

Post by redj »

D.Bane,

by all means keep touching and exploring... I was simply letting you know what Makefiles.epj was for.

happy ecering! :-)

-redj
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: Complier stops right away

Post by D.Bane »

Hi,

I have installed the setup from the link in the email and downloaded new files from the github, when I tried to compile, this is what I got:

Code: Select all

 E:\Builds\ecere-sdk-f564926>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
gcc: CreateProcess: No such file or directory
mingw32-make[3]: *** [obj/bootstrap.win32/Array.o] Error 1
mingw32-make[2]: *** [ecere] Error 2
mingw32-make[1]: *** [bootstrap] Error 2
mingw32-make: *** [bootstrap] Error 2
It is the same one as before. Also I think that the package was different as now I had all of the samples with resources.. I was finally able to test out tetris :).

The airplane...that is by far my favorite :D

Do you know what might be causing this to happen when compiling? I have left all the default settings for the installer..

Cheers,
D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Complier stops right away

Post by jerome »

Hi D.Bane,

Could you paste the value of your PATH?

I still believe you have multiple MinGW installations mixed up and that is the problem.

-Jerome
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: Complier stops right away

Post by D.Bane »

Hi,

It is not a problem.

So I have cleared the path variable before I had create new installation so this is only what Setup had created.

Code: Select all

C:\Program Files (x86)\ECERE SDK\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin
That is entire path

and I run mingw32-make and mingw32-make.exe, both give the same errors

Cheers,
D.Bane
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Complier stops right away

Post by jerome »

Hi D.Bane,

That path does look a bit messed up.
The first 0.44 installers I put online suffered from that problem.
So if you were to take out any MinGW or Ecere related items from your path, re-download a new installer, and try again, it would probably look better.

C:\Program Files (x86)\ECERE SDK\mingw\bin is there twice

and C:\Program Files (x86)\ECERE SDK\mingw\bin\bin should not be there.

For now you could just take these out manually.

However, I doubt that is your whole path. Perhaps it is your whole 'user' additional paths, which get added on top of your system path. To see your whole path, in your command prompt type

set

and you should see at least C:\Windows\System32 in there.

What I an worried about is whether you have other MinGW installations on your system, e.g. something that comes with Dev-C++ or a stand alone MinGW installation.

If you just type 'gcc --version' in that command prompt? what do you get?
You should get 'gcc (GCC) 4.4.0'. If you don't get this, compare with running:
"c:\Program Files (x86)\ECERE SDK\mingw\bin\gcc.exe" --version

And if you type 'ld --version'? You should get:
GNU ld (GNU Binutils) 2.21.53.20110804 . If you don't get this, compare with running
"c:\Program Files (x86)\ECERE SDK\mingw"\bin\ld --version

I hope we can solve this one out quickly :) Sorry for the inconvenience.

Best regards,

Jerome
D.Bane
Posts: 78
Joined: Thu Jul 29, 2010 2:51 pm

Re: Compiler stops right away

Post by D.Bane »

Hi Jerome,

I have tried yesterday to compile by removing the items from the path, so I left only what the ecere has in its path. (Yes, that is the user path, I usually was needed to add info only to it, I will post the other path as well).

When I had changed to smaller pathe (ecere bin and mingw bin) it started compiling, but it got to a point where it broke again, this is the result:

Code: Select all

Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building dependencies...
Building FreeType...
Building libjpeg...
Building libpng...
Building libungif...
Building zlib...
Building 2nd stage ecere...
Building eAR command line tool...
Building Vanilla Ecere...
Building ear...
Building self-extract tool...
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2011
UPX 3.08w       Markus Oberhumer, Laszlo Molnar & John Reiser   Dec 12th 2011

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   1483374 ->    667246   44.98%    win32/pe     extract.exe

Packed 1 file.
Building eAR command line tool...
mingw32-make[2]: *** [obj/release.win32/ear.exe] Error 1
mingw32-make[1]: *** [all] Error 2
mingw32-make: *** [ear] Error 2
So above happened when I had this path:

Code: Select all

C:\Program Files (x86)\ECERE SDK\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin
the same thing happens if this is the path (the same error)

Code: Select all

C:\Program Files (x86)\ECERE SDK\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin\bin
The 'gcc --version' did not work for me, I had to cd: to the folder, and then to run it

This is the output:

Code: Select all

gcc.exe (GCC) 4.4.0
ld --version (also from the folder)

Code: Select all

GNU ld (GNU Binutils) 2.21.53.20110804
This is current user path:

Code: Select all

C:\Program Files (x86)\ECERE SDK\bin;C:\Program Files (x86)\ECERE SDK\mingw\bin
This is system path:

Code: Select all

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Adobe\AGL
Oh, and I do not have any other developing tool accept Ecere :) I can do c programming in it as well, so why would I need something else (I guess that it is possible to program c++ application too), but for now I have what I need here :)

All the best,
D.Bane.
No army is to big, if the heart is beating strong.
There's no bad luck, it's just easier to blame someone else.
Post Reply