I wasn't able to compile with fsanitize=address CFLAGS or LDFLAGS.
As soon as I add those flags, I am getting:
checking whether we are cross compiling... configure: error: in `/home/pi/v4l-utils':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
And in config.log:
configure:3245: gcc -o conftest -g -fsanitize=address -fsanitize=address conftest.c >&5
configure:3249: $? = 0
configure:3256: ./conftest
==6703==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
configure:3260: $? = 1
configure:3267: error: in `/home/pi/v4l-utils':
configure:3269: error: cannot run C compiled programs.
I am **not** cross compiling, I am compiling on the raspberry pi directly.
Anyway, I was able to compile with debug flags:
CFLAGS="-g" LDFLAGS="-g" CXXFLAGS="-g -fsanitize=address" ./configure --enable-static --disable-shared
On git master, I do not experience the issue anymore.
* Either it has been fixed between 1.16.3 and master,
* or I am not compiling it the same way debian did.
I'll checkout and compile 1.16.3 and tell you the result (just be patient, raspberry compiling is slow...)
Hi,
I wasn't able to compile with fsanitize=address CFLAGS or LDFLAGS. pi/v4l- utils':
As soon as I add those flags, I am getting:
checking whether we are cross compiling... configure: error: in `/home/
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
And in config.log: pi/v4l- utils':
configure:3245: gcc -o conftest -g -fsanitize=address -fsanitize=address conftest.c >&5
configure:3249: $? = 0
configure:3256: ./conftest
==6703==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
configure:3260: $? = 1
configure:3267: error: in `/home/
configure:3269: error: cannot run C compiled programs.
I am **not** cross compiling, I am compiling on the raspberry pi directly.
Anyway, I was able to compile with debug flags:
CFLAGS="-g" LDFLAGS="-g" CXXFLAGS="-g -fsanitize=address" ./configure --enable-static --disable-shared
On git master, I do not experience the issue anymore.
* Either it has been fixed between 1.16.3 and master,
* or I am not compiling it the same way debian did.
I'll checkout and compile 1.16.3 and tell you the result (just be patient, raspberry compiling is slow...)