Integer does not want to initialise
The integer in range shouldn't be added in the top level entity but in the entity that is driving the signal, in my case input_stage.

entity input_stage is
    generic(
        ...
    );
    port(
        ...
        input              : out integer range 0 to 16777215;

    );
end entity input_stage;