UO-OACISS / tau2

TAU Performance System Public Mirror (Updated every night at midnight, USA Pacific Time)
http://tau.uoregon.edu
Other
39 stars 16 forks source link

binutils fails to build with icc 2021.10.0 #14

Open antonl321 opened 6 months ago

antonl321 commented 6 months ago

Hello,

The following configure line fails to build binutils.

./configure -bfd=download -ompt -c++=icpc -cc=icc -fortran=ifort -mpi -pthread -tag=oneapi-2023.2.0-openmpi

in /dev/shm/tau_bfdbuild_3796472/binutils-2.40/tau_build.log I see this type of erro message:

if [ x"-fPIC" != x ]; then \
  icc -c -DHAVE_CONFIG_H -fPIC      -I. -I./../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic  -D_GNU_SOURCE -fcf-protection -fPIC ./cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
icc: remark #10441: The Intel(R) C++ Compiler Classic (ICC) is deprecated and will be removed from product release in the second half of 2023. The Intel(R) oneAPI DPC++/C++ Compiler (ICX) is the recommended compiler moving forward. Please transition to use this compiler. Use '-diag-disable=10441' to disable this message.
icc: command line warning #10148: option '-W=shadow=local' not supported
In file included from ./cp-demangle.c(138):
./../include/libiberty.h(123): warning #1292: unknown attribute "__returns_nonnull__"
  extern const char *lbasename (const char *) ATTRIBUTE_RETURNS_NONNULL ATTRIBUTE_NONNULL(1);

gcc works fine but I cannot pass the build to configure. I have tried -bfd=$PWD/external_dependencies/binutils-2.40[/bfd] without success.

Any suggestion how to get out of this dead end?

Lucian

jordialcaraz commented 6 months ago

Hello Lucian,

Can you try first to build with: ./configure -bfd=download

And then your configure line?

antonl321 commented 6 months ago

Yes, that worked after I unloaded the intel compiler module. But I have a other issue, I'll open an new ticket.

antonl321 commented 6 months ago

I still have trouble with bfd I have instrumented an application and at the begining of the run I get this message from TAU

TAU Warning: BFD is not available in at least one part of this TAU-instrumented application! Please check to see if BFD is not shared or not present. Expect some missing BFD functionality.
TAU Warning: Comp_gnu - BFD is not available during TAU build. Symbols may not be resolved!

paraprof shows only the addresses for the application rotuines.