Manu343726 / gcc-concepts-bugs

A repository to host C++ Concepts Lite TS examples, to help with GCC bug reporting
15 stars 0 forks source link

[docker-container] Wrong ld libraries path configuration. #1

Open Manu343726 opened 9 years ago

Manu343726 commented 9 years ago

I'm not sure what's the cause (Maybe there's something wrong in the gcc configure invocation), but ld doesn't find the gcc libraries such as gcc or gcc_s. Also I tried to export LIBRARIES_PATH and LD_LIBRARIES_PATH as /usr/local/lib/gcc/x86_64-pc-linux-gnu/lib64/ and it only worked locally before deploying the image.

As a provisional solution, add -L/usr/local/lib/gcc/x86_64-pc-linux-gnu/lib64/ to you compiler invocation flags as the run.sh script currently does.

Manu343726 commented 9 years ago

Also I tried to export LIBRARIES_PATH and LD_LIBRARIES_PATH as /usr/local/lib/gcc/x86_64-pc-linux-gnu/lib64/ and it only worked locally before deploying the image

Well done Manu! First it's LIBRARY_PATH and second you did export within the container shell, so of course env variable changes were not saved in the image.....