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

Got warning when build on debian 9 ppc64le (curl 7.60.0) #2617

Closed
ebadf00d opened this issue May 29, 2018 · 3 comments
Closed

Got warning when build on debian 9 ppc64le (curl 7.60.0) #2617

ebadf00d opened this issue May 29, 2018 · 3 comments
Labels

Comments

@ebadf00d
Copy link

I did this

Got following message when build on debian 9 ppc64le

CC vtls/libcurl_la-mbedtls.lo
CCLD libcurl.la
/usr/bin/ar: u' modifier ignored since D' is the default (see `U')
make[2]: Leaving directory '/home/foobar/curl60/curl-7.60.0/lib'

I expected the following

no warning "/usr/bin/ar: u' modifier ignored since D' is the default (see `U')"

curl/libcurl version

7.60.0

operating system

foobar@deb9le-dev01:~$ uname -a
Linux deb9le-dev01 4.9.0-3-powerpc64le #1 SMP Debian 4.9.30-2 (2017-06-12) ppc64le GNU/Linux

@bagder bagder added the build label May 29, 2018
@bagder
Copy link
Member

bagder commented May 29, 2018

I get this as well on current Debian unstable (sid) on x86-64. I blame libtool automake!

@bagder
Copy link
Member

bagder commented May 29, 2018

This "hack" removes the warning:

--- libtool~    2018-05-29 08:28:28.766037457 +0200
+++ libtool     2018-05-29 08:29:09.234334404 +0200
@@ -147,7 +147,7 @@
 AR="/usr/bin/ar"
 
 # Flags to create an archive.
-AR_FLAGS="cru"
+AR_FLAGS="cr"
 
 # How to feed a file listing to the archiver.
 archiver_list_spec="@"

@ebadf00d
Copy link
Author

OK, Thanks!

I also searched, found this workaround
kimwalisch/primesieve#16

bagder added a commit that referenced this issue May 29, 2018
The automake default ar flags are 'cru', but the 'u' flag in there
causes warnings on many modern Linux distros. Removing 'u' may have a
minor performance impact on older distros but should not cause harm.

Explained on the automake mailing list already back in April 2015:

https://www.mail-archive.com/automake-patches@gnu.org/msg07705.html

Fixes #2617
@bagder bagder closed this as completed in 5005ade May 29, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants