Gentoo Tidbits - C Compiler Cannot Create Executables  @dasgregor
Gentoo Tidbits - C Compiler Cannot Create Executables  @dasgregor
DasGregor | Gentoo Tidbits - "C Compiler Cannot Create Executables" @dasgregor | Uploaded 8 years ago | Updated February 02 2023
Gentoo Tidbits - "C Compiler Cannot Create Executables"

If you try to run emerge after a GCC update and get the above error, this may help you. In my case, creating a simple C program to print Hello World to the screen, and attempting to compile it, pointed me in the proper direction that the GCC profile was bad.

Use "gcc-config -l" to view your profiles, and "gcc-config (number)" to set your profile. Then it is advisable to run ". /etc/profile". Try to recompile a simple C program to verify the fix.

GOOD LUCK!
Gentoo Tidbits - C Compiler Cannot Create Executables @dasgregorGentoo Linux Minecraft 101 Part 3 A Beginner Set of Mods (Take 2) @dasgregorGentoo Linux Minecraft 101 Part 2 The Forge Environment @dasgregorGentoo Tidbits - Layman packages via eix @dasgregorGentoo Linux Minecraft 101 Part 1 @dasgregorRoboLinux 7.9.2 KDE First Impressions and Thoughts @dasgregorGentoo Tidbits - Bumblebee Setup with Nvidia and Intel @dasgregorGentoo Tidbits - The Power of One (--oneshot or -1) @dasgregorGentoo Tidbits - Gentoo Has a Kernel Binary @dasgregorDas Experiences - Docker @dasgregorGentoo Tidbits - Kernel Update Issues @dasgregorGentoo Tidbits - Kernel Upgrade (4.19.72) Fixed virtualbox-modules @dasgregorGentoo Tidbits - --changed-deps Emerge Flag @dasgregorDas SAY What?!? Microsoft exFAT in the Linux Kernel? System76 Rocks! @dasgregorWheres Das Been - Short Vlog/Update @dasgregorGentooTidbits - VLC Compile issue with libebml @dasgregorGentoo Tidbits - Kwin (KWinQpaPlugin.so) Issue @dasgregorDas Experiences FreeBSD 11.1 @dasgregorLFS Tidbits - A Statement of Farewell @dasgregor2018 Gentoo Install Guide Part 5 (From LFS) @dasgregor2018 Gentoo Install Guide Part 4 (From LFS) @dasgregorDas Experiences antiX-17 On A Toshiba A55-S306 @dasgregor2018 Gentoo Install Guide Part 3 (From LFS) @dasgregor2018 Gentoo Install Guide Part 2 (From LFS) @dasgregor2018 Gentoo Install Guide Part 1 (From LFS) @dasgregorGentoo Built From an LFS Partition @dasgregorLFS Tidbits - I Blew It UP! BUT I Fixed It - NAS Thoughts @dasgregorLFS Tidbits - KDE Apps - More Progress @dasgregorLFS Tidbits - User updates and Progress @dasgregorLFS Tidbit - Virtualbox Install (CLFS required) @dasgregorLFS i3wm Install and General Ramble @dasgregorLinux From Scratch - LFS 8.1 Second Glances @dasgregori3 Tidbits - i3 Opinions and General Talk @dasgregorGentoo Tidbits - Kernel Overview @dasgregorGentoo Tidbits - New Years Day World Upgrade @dasgregorGentoo Tidbits - Gentoo is KING @dasgregorGentoo Tidbits - --with-bdeps=y Capabilities @dasgregorDasGregors New format @dasgregori3 Tidbits - Open Floating Applications @dasgregorDas Experiences: i3wm @dasgregorGentoo Tidbits - KDE-Sunset Overlay Discussion @dasgregorGentoo Tidbits - cpupower command script @dasgregorKODI-Ice! Polar Bear - A Linux Mint Custom Spin Review @dasgregorCalculate Linux 15.17 Review @dasgregorSlackware 14.2 KDE 4.14 Review @dasgregorGentoo in Review - Chrome Binary Plugin Update 06/24/16 @dasgregorGentoo Plasma5 Ramblin Review @dasgregorFreeBSD 10.2 First Impressions (Approved) @dasgregorGentoo Tidbits - QComicBook @dasgregorGentoo Linux Minecraft 101 Part 4 Maps @dasgregor

Gentoo Tidbits - "C Compiler Cannot Create Executables" @dasgregor