Menu

#2268 make.exe: *** [Allegro.exe] Error 1

OTHER
upstream
nobody
None
Support
self-service
Invalid
False
2017-07-31
2015-08-08
wb wb
No

When I tryed to build the sample allero 4 program it gave me this error:

make.exe: [Allegro.exe] Error 1

It did not build though. Here is the full log:

Compiler: Default compiler
Building Makefile: "C:\Users\*********\Documents\C Game Programming\game_1_with_allegro\Makefile.win"
Executing  make...
make.exe -f "C:\Users\*********\Documents\C Game Programming\game_1_with_allegro\Makefile.win" all
gcc.exe main.o Allegro_private.res -o "Allegro.exe" -L"C:/Dev-Cpp/lib" -mwindows -lallegro-4.4.2-monolith-mt 

gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

make.exe: *** [Allegro.exe] Error 1
Execution terminated

Does anyone have a idea into how I could fix this, as I would like to use allegro to make some games!

Discussion

  • Keith Marshall

    Keith Marshall - 2015-08-08

    Not a clue. There isn't enough information here, to give us even the tiniest chance to formulate one. You should create a SSCCE to illustrate the problem.

     
  • Keith Marshall

    Keith Marshall - 2015-08-08
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,12 @@
     When I tryed to build the sample allero 4 program it gave me this error:
    +
    +~~~~
     make.exe: [Allegro.exe] Error 1
    +~~~~
    +
     It did not build though. Here is the full log:
    
    +~~~~
     Compiler: Default compiler
     Building Makefile: "C:\Users\*********\Documents\C Game Programming\game_1_with_allegro\Makefile.win"
     Executing  make...
    @@ -14,4 +19,6 @@
    
     make.exe: *** [Allegro.exe] Error 1
     Execution terminated
    +~~~~
    +
     Does anyone have a idea into how I could fix this, as I would like to use allegro to make some games!
    
     
  • wb wb

    wb wb - 2015-08-08

    Thanks for the feedback, Keith Marshall. I am using Dev-C++ and I have created a c project, in the class file main.c is the following code:

    #include <allegro.h>
    
    int main() 
    {   
        allegro_init();
        install_keyboard();
    
        set_color_depth(32);
        set_gfx_mode(GFX_AUTODETECT_WINDOWED, 640, 700, 0, 0);
    
        BITMAP *buffer = create_bitmap(640, 700);
        clear_to_color(buffer, 0x333333);
    
        rect(buffer, 1, 1, 51, 51, 0x21D059);
        rect(buffer, 2, 2, 50, 50, 0x21D059);
        rect(buffer, 3, 3, 49, 49, 0x21D059);
    
        textout_centre_ex(buffer, font, ALLEGRO_VERSION_STR, 320, 5, 0xFFFFFF, 0x333333);
    
        rectfill(buffer, 50, 100, 550, 600, 0xDF1680);
    
        blit(buffer, screen, 0, 0, 0, 0, 640, 700);
    
        readkey();
    
        destroy_bitmap(buffer);
    
        return 0;
    }
    END_OF_MAIN();
    

    I presume that this is the default allero example code. When I press the button in the taskbar that states that it is "Compile and Run (F9)". It then shows a dialog box, sayin that is using the "default complier" with the progress of building the file Allegro.exe, it first is compling, then is linking and that is when the error happens. The Compile Log show the following output:

    Compiler: Default compiler
    Building Makefile: "C:\Users\William\Documents\C Game Programming\game_1_with_allegro\Makefile.win"
    Executing  make...
    make.exe -f "C:\Users\William\Documents\C Game Programming\game_1_with_allegro\Makefile.win" all
    gcc.exe main.o  -o "Allegro.exe" -L"C:/Dev-Cpp/lib" -mwindows -lallegro-4.4.2-monolith-mt 
    
    gcc.exe: Internal error: Aborted (program collect2)
    Please submit a full bug report.
    See <URL:http://www.mingw.org/bugs.shtml> for instructions.
    
    make.exe: *** [Allegro.exe] Error 1
    
    Execution terminated
    

    The file that brings up the error is called Makefile.win and the contents of that file is down below:

    # Project: Allegro
    # Makefile created by Dev-C++ 4.9.9.2
    
    CPP  = g++.exe
    CC   = gcc.exe
    WINDRES = windres.exe
    RES  = 
    OBJ  = main.o $(RES)
    LINKOBJ  = main.o $(RES)
    LIBS =  -L"C:/Dev-Cpp/lib" -mwindows -lallegro-4.4.2-monolith-mt 
    INCS =  -I"C:/Dev-Cpp/include" 
    CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
    BIN  = Allegro.exe
    CXXFLAGS = $(CXXINCS)  
    CFLAGS = $(INCS)  
    RM = rm -f
    
    .PHONY: all all-before all-after clean clean-custom
    
    all: all-before Allegro.exe all-after
    
    clean: clean-custom
        ${RM} $(OBJ) $(BIN)
    
    $(BIN): $(OBJ)
        $(CC) $(LINKOBJ) -o "Allegro.exe" $(LIBS)
    
    main.o: main.c
        $(CC) -c main.c -o main.o $(CFLAGS)
    

    The full contents of the folder with the files is attached as a screenshot
    Do you know what has happened or is there any other data you would like?

     

    Last edit: wb wb 2015-08-09
  • Keith Marshall

    Keith Marshall - 2017-07-31
    • status: unread --> upstream
    • Resolution: none --> self-service
    • Category: Unknown --> Invalid
     
  • Keith Marshall

    Keith Marshall - 2017-07-31

    Apologies for delayed response. I doubt that we will be able to help ... you say you are using Dev-C++, which we do not support, and your sample code seems to be heavily dependent on Allegro, which once again, we do not support.

    The only possibly useful comment I could offer is that I see references to gcc-3.4.2, which is long obsolete, and no longer supported either by us, or the upstream GCC project. Is it possible that you are attempting to mix library packages compiled by, and for, a later GCC version, with that ancient 3.4.2 version? If so, well, you simply cannot do that. Otherwise, you should seek help from the Allegro, or the Dev-C++ projects directly.