Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653296 - app-admin/sudo-1.8.22-r2 with sys-devel/clang-5.0.1 - .libs/event.o: file not recognized: File format not recognized
Summary: app-admin/sudo-1.8.22-r2 with sys-devel/clang-5.0.1 - .libs/event.o: file not...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-16 12:27 UTC by Patrik Osgnach
Modified: 2019-08-04 09:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.27 KB, text/plain)
2018-04-16 12:27 UTC, Patrik Osgnach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrik Osgnach 2018-04-16 12:27:31 UTC
Created attachment 527568 [details]
emerge --info

Hello, if I try to build app-admin/sudo-1.8.22-r2 with sys-devel/clang-5.0.1 I get this error:

case "" in \                                                                                                            
*-no-install*) \
    /bin/sh ../../libtool --tag=disable-static --mode=link clang -o libsudo_util.la -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,-z,relro  event.lo fatal.lo key_val.lo gethostname.lo gettime.lo gidlist.lo lbuf.lo locking.lo parseln.lo progname.lo secure_path.lo setgroups.lo strsplit.lo strtobool.lo strtoid.lo strtomode.lo sudo_conf.lo sudo_debug.lo sudo_dso.lo term.lo ttyname_dev.lo ttysize.lo  event_poll.lo  reallocarray.lo memset_s.lo pw_dup.lo strlcpy.lo strlcat.lo closefrom.lo strtonum.lo sha2.lo sig2str.lo  -ldl ;; \
*) \
    /bin/sh ../../libtool --tag=disable-static --mode=link clang -o libsudo_util.la -Wl,-O1 -Wl,--as-needed -fuse-ld=lld -Wl,-z,relro  -Wc,-fstack-protector-strong  event.lo fatal.lo key_val.lo gethostname.lo gettime.lo gidlist.lo lbuf.lo locking.lo parseln.lo progname.lo secure_path.lo setgroups.lo strsplit.lo strtobool.lo strtoid.lo strtomode.lo sudo_conf.lo sudo_debug.lo sudo_dso.lo term.lo ttyname_dev.lo ttysize.lo  event_poll.lo  reallocarray.lo memset_s.lo pw_dup.lo strlcpy.lo strlcat.lo closefrom.lo strtonum.lo sha2.lo sig2str.lo -version-info 0:0:0 -rpath /usr/libexec/sudo   -ldl ;; \
esac
libtool: link: clang -shared  -fPIC -DPIC  .libs/event.o .libs/fatal.o .libs/key_val.o .libs/gethostname.o .libs/gettime.o .libs/gidlist.o .libs/lbuf.o .libs/locking.o .libs/parseln.o .libs/progname.o .libs/secure_path.o .libs/setgroups.o .libs/strsplit.o .libs/strtobool.o .libs/strtoid.o .libs/strtomode.o .libs/sudo_conf.o .libs/sudo_debug.o .libs/sudo_dso.o .libs/term.o .libs/ttyname_dev.o .libs/ttysize.o .libs/event_poll.o .libs/reallocarray.o .libs/memset_s.o .libs/pw_dup.o .libs/strlcpy.o .libs/strlcat.o .libs/closefrom.o .libs/strtonum.o .libs/sha2.o .libs/sig2str.o   -Wl,--as-needed -ldl  -Wl,-O1 -Wl,-z -Wl,relro -fstack-protector-strong   -Wl,-soname -Wl,libsudo_util.so.0 -o .libs/libsudo_util.so.0.0.0
.libs/event.o: file not recognized: File format not recognized
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:156: libsudo_util.la] Error 1

/bin/sh passes to libtool the parameter "-fuse-ld=lld" but libtool ignores it and the link step fails
Comment 1 Mateusz Mikuła 2019-06-17 14:46:29 UTC
app-admin/sudo-1.8.25_p1-r1 builds fine with sys-devel/clang-8.0.0