https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64349
--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Looks like only a warning? Nope: ... ld: warning: can't add line info to anonymous symbol __const@0 from s-arit64.o Undefined symbols: "_environ", referenced from: ___gnat_environ in env.o ___gnat_clearenv in env.o (maybe you meant: _system__stack_usage__environment_task_analyzer, _ada__environment_variables_E , _ada__environment_variables__value , _ada__command_line__environment__environment_count , _gnat__cgi__cookie__valid_environment , _ada__environment_variables__value__2 , _ada__environment_variables__iterate , ___gnat_environment_char , _gnat__cgi__cookie__check_environment , _ada__command_line__environment_E , _ada__environment_variables__set , _ada__command_line__environment__environment_value , _ada__environment_variables__clear__2 , _gnat__cgi__valid_environment , _ada__environment_variables__exists , _ada__environment_variables__clear , _gnat__cgi__check_environment , ___gnat_environ , _gnat__directory_operations__environment_styleN , _gnat__directory_operations__environment_styleS , _system__stack_usage__compute_environment_task ) ld: symbol(s) not found collect2: error: ld returned 1 exit status Iain Sandoe has posted a new patch at https://gcc.gnu.org/ml/gcc-patches/2015-01/msg00437.html.