Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation is failing #1

Open
00pauln00 opened this issue Apr 19, 2019 · 1 comment
Open

Compilation is failing #1

00pauln00 opened this issue Apr 19, 2019 · 1 comment

Comments

@00pauln00
Copy link

pauln@localhost:~/Code/net_sanitizer$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.2.1 20181215 (Red Hat 8.2.1-6) (GCC)

pauln@localhost:~/Code/net_sanitizer$ PATH=$PATH:/usr/lib64/mpich/bin/ make
mpicc -Wall -std=c11 -g -c net_sanitizer.c
net_sanitizer.c: In function ‘run_test_alltoall_pair’:
net_sanitizer.c:881:17: warning: ‘end’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (end - start);
~~~~~^~~~~~~~
net_sanitizer.c: In function ‘run_test_alltoall.constprop’:
net_sanitizer.c:196:42: warning: ‘step_exec_time’ may be used uninitialized in this function [-Wmaybe-uninitialized]
res->iops = (double) npeers * niters / exec_time;
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
net_sanitizer.c:886:33: note: ‘step_exec_time’ was declared here
double total_exec_time = 0, step_exec_time;
^~~~~~~~~~~~~~

@sydidelot
Copy link
Contributor

Thanks for reporting the issue. The 2 following commits that are merged in master should fix the compilation failure:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants