-
Notifications
You must be signed in to change notification settings - Fork 96
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
C compiler cannot create executables #395
Comments
Here is the error: Too many quotes. Fix:
How's your make.conf.lto and make.conf.lto.defines look? I was running flto= was the longest time because I didn't define $NTHREADS. |
I still have the same problem as before. Here are my make.conf* files. Thanks for help. make.conf: CFLAGS="-march=native ${CFLAGS} -pipe -falign-functions=32" ########################### Original#COMMON_FLAGS="${CFLAGS} -march=native -O2 -pipe" MAKEOPTS="-j${NTHREADS}" USE="cups graphite \
lto \
... make.conf.lto: NTHREADS="16" make.confi.lto.defines: FLTO="-flto=${NTHREADS}" GRAPHITE="-fgraphite-identity -floop-nest-optimize" IPAPTA="-fipa-pta" SEMINTERPOS="-fno-semantic-interposition" NOCOMMON="-fno-common" SAFEST_FAST_MATH="-fno-math-errno -fno-trapping-math" DEVIRTLTO="-fdevirtualize-at-ltrans" NOPLT="-fno-plt" |
Are you making new lines for each USE flag? I believe that doesn't work. If you want it to be easier to read, you can do something like:
|
Been doing it for years. Seems to work ok. Easier to read that way. Cut and paste doesn't show the back slashes for some reason. There is a back slash after every line allowing continuation on the next line. I continue to have the 'cannot create executable' problem. |
Seems a reboot was all that was needed. |
First six packages failed with this error.
Need help with this.
What info can I provide?
make.conf.lto and make.conf.lto.defines are largely unchanged.
Below are the changes I made to make.conf to get started. But immediately encountered the 'cannot create executables' problem.
Thanks
...
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/sys-apps/kbd-2.2.0-r1/work/kbd-2.2.0':
configure: error: C compiler cannot create executables
############################
LTO Overlay
source /etc/portage/make.conf.lto
CFLAGS="-march=native ${CFLAGS} -pipe" # -falign-functions=32" #NOTE: Consider using -falign-functions=32 if you use an Intel processor. See issue #164.
CXXFLAGS="${CFLAGS}"
FCFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
############################
###########################
Original
#COMMON_FLAGS="${CFLAGS} -march=native -O2 -pipe -falign-functions=32"
#CFLAGS="${COMMON_FLAGS}"
#CXXFLAGS="${COMMON_FLAGS}"
#FCFLAGS="${COMMON_FLAGS}"
#FFLAGS="${COMMON_FLAGS}"
###########################
MAKEOPTS="-j14"
USE="cups
graphite
gphoto2
ieee1394
lto
wayland
-multilib
-smartcard"
The text was updated successfully, but these errors were encountered: