Summary: | =app-editors/vim-core-7.4.5 - error: ,-O1: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | manwe <gentoo> |
Component: | Current packages | Assignee: | Vim Maintainers <vim> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | pva |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
log
build.log |
Description
manwe
2013-09-04 09:33:20 UTC
I've compiled vim-core after changing LDFLAGS="-Wl,--as-needed,-O1" to LDFLAGS="-Wl,--as-needed" in make.conf, but just wanted to info you guys. I've been using this LDFLAGS for years and this is first ebuild ever to have problem with it. Please attach the entire build log to this bug report. Created attachment 357826 [details]
log
Chances are it works if LDFLAGS="Wl,--as-needed -Wl,-O1". It does. Starting make in the src directory. If there are problems, cd to the src directory and run make there cd src && make tools make[1]: Entering directory `/tmp/portage/app-editors/vim-core-7.4.5/work/vim74/src' cd xxd; CC="x86_64-pc-linux-gnu-gcc" CFLAGS=" -O2 -pipe -march=native -mtune=native -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" LDFLAGS="-Wl,-O1 -L/usr/local/lib -Wl,--as-needed" \ make -f Makefile make[2]: Entering directory `/tmp/portage/app-editors/vim-core-7.4.5/work/vim74/src/xxd' x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -mtune=native -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wl,-O1 -L/usr/local/lib -Wl,--as-needed -DUNIX -o xxd xxd.c Created attachment 379976 [details]
build.log
Same problem with LDFLAGS="-Wl,--as-needed,--hash-style=gnu".
(In reply to manwe from comment #1) > I've compiled vim-core after changing LDFLAGS="-Wl,--as-needed,-O1" to > LDFLAGS="-Wl,--as-needed" in make.conf, but just wanted to info you guys. > I've been using this LDFLAGS for years and this is first ebuild ever to have > problem with it. This setup has never been supported by Gentoo, and if it worked, it was pure luck. Notice how Gentoo's defaults https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/default/linux/make.defaults#n55 specify LDFLAGS="-Wl,-O1 -Wl,--as-needed". Thanks David. I'm closing this bug now. Please test and reply back. |