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

binutils fails to build with icc 2021.10.0 #14

Open
antonl321 opened this issue May 21, 2024 · 3 comments
Open

binutils fails to build with icc 2021.10.0 #14

antonl321 opened this issue May 21, 2024 · 3 comments

Comments

@antonl321
Copy link

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
Copy link
Contributor

Hello Lucian,

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

And then your configure line?

@antonl321
Copy link
Author

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

@antonl321
Copy link
Author

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.

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