The output was "/usr/local/bin/:$PATH", which is the parameter I ran ECL with (I used env PATH="/usr/local/bin/:$PATH"). PATH does contain /usr/bin though. Compiling works if I manually add /usr/bin to PATH