View previous topic :: View next topic |
Author |
Message |
miksanta n00b
Joined: 25 Dec 2006 Posts: 31 Location: Padova
|
Posted: Sun Feb 03, 2008 2:54 am Post subject: [RISOLTO] Problemi compilazione |
|
|
salve a tutti,
ho alcuni problemi quando cerco di emergere qualcosa!!
Mi da il seguente errore:
configure: error: C compiler cannot create executables
ho trovato e seguito questo: https://forums.gentoo.org/viewtopic.php?t=294109 ma niente da fare!!
Forse sbaglio nella configurazione di cflags, io ho un t8300 e ho posto CFLAGS="-march=nocona -O2 -pipe"
Grazie mille
Michele
Last edited by miksanta on Sun Feb 03, 2008 2:58 pm; edited 1 time in total |
|
Back to top |
|
|
Nuitari Apprentice
Joined: 15 May 2005 Posts: 245
|
Posted: Sun Feb 03, 2008 9:02 am Post subject: |
|
|
perdonami se ricordo male (sn ancora indormentato duro), anchio avevo avuto quel problema e mi sembra di aver risolto togliendo -O2 dalle cflags. Mi pareva di aver trovato scritto da qualche parte così almeno _________________ Da un discorso su #gentoo:
[15:10] <flowolf> pino: credo che se dovessi leggere ancora un punto interrogativo ed il tuo nick sulla stessa riga
[15:10] <flowolf> potrei andare fuori di testa |
|
Back to top |
|
|
xveilsidex Guru
Joined: 27 Dec 2005 Posts: 370 Location: Bari
|
Posted: Sun Feb 03, 2008 9:52 am Post subject: |
|
|
quale stage hai utilizzato? nel make.conf cosa ti compare nelle chost? |
|
Back to top |
|
|
miksanta n00b
Joined: 25 Dec 2006 Posts: 31 Location: Padova
|
Posted: Sun Feb 03, 2008 10:51 am Post subject: |
|
|
Ho utilizzato lo stage3, l'ultima versione mi pare del 2 febbraio!
ho CHOST="x86_64-pc-linux-gnu"
facendo gcc-config -l ho :
[1] x86_64-pc-linux-gnu-4.1.2
[2] x86_64-pc-linux-gnu-4.2.2 *
ho tolto -O2 ma sono punto a capo!!!
Grazie intanto!! |
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Sun Feb 03, 2008 11:09 am Post subject: |
|
|
Posta il contenuto del tuo /etc/make.conf.
Probabilmente hai scritto male il valore della variabile CFLAGS (basta anche uno spazio in meno/più). _________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
miksanta n00b
Joined: 25 Dec 2006 Posts: 31 Location: Padova
|
Posted: Sun Feb 03, 2008 12:08 pm Post subject: |
|
|
Ecco il mio make.conf:
Code: | # These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
ACCEPT_KEYWORDS="~x86"
PORTAGE_BINHOST="http://gentoopackages.net/packages/i686/"
USE="X 3dnow alsa arts avi directfb cdparanoia berkdb dvdread bitmap-fonts cairo cdr cli crypt cups dbus aiglx dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gnome gpm gtk input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg xfce kernel_linux ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python quicktime readline reflection sdl session spell spl ssltcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU vorbis win32codecs x86 xml xorg xv postgres mysql java samba ffmpeg bzip2 pdf utempter jpeg2k apache2 gd zeroconf v4l v4l2 encode accessibility dbus"
FEATURES="ccache parallel-fetch"
#GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ "
LINGUAS="it"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://85.25.128.62 http://mirror.uni-c.dk/pub/gentoo/"
VIDEO_CARDS="v4l vesa vga fbdev"
| [/code] |
|
Back to top |
|
|
djinnZ Advocate
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Sun Feb 03, 2008 12:40 pm Post subject: |
|
|
miksanta wrote: | Code: | MAKEOPTS="-j5"
ACCEPT_KEYWORDS="~x86"
PORTAGE_BINHOST="http://gentoopackages.net/packages/i686/"
USE="X 3dnow alsa arts avi directfb cdparanoia berkdb dvdread bitmap-fonts cairo cdr cli crypt cups dbus aiglx dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gif gnome gpm gtk input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg xfce kernel_linux ldap libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd python quicktime readline reflection sdl session spell spl ssltcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU vorbis win32codecs x86 xml xorg xv postgres mysql java samba ffmpeg bzip2 pdf utempter jpeg2k apache2 gd zeroconf v4l v4l2 encode accessibility dbus |
|
a parte il fatto che non è una buona cosa usare il sistema instabile e che faresti meglio ad usare la variabile INPUT_DEVICES, -j5 sembra che abbia creato qualche problema.
prova a cambiare compilatore con gcc-config e torna al 4.1 (semmai successivamente puoi pensare di riselezionare il 4.2) o prova ad usare fix_libtool_files.sh.
Probabilmente è un problema di path oppure prova con -march=native (4.2). _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist |
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Sun Feb 03, 2008 12:41 pm Post subject: |
|
|
Scusa, hai un CHOST x86_64 ma hai
Code: |
ACCEPT_KEYWORDS="~x86"
PORTAGE_BINHOST="http://gentoopackages.net/packages/i686/"
|
A me la cosa non quaglia
Inoltre nel Gentoo Wiki, per il tuo processore (se non error) dicono di utilizzare -march=prescott.
Per fugare ogni dubbio, posta il risultato di
_________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
miksanta n00b
Joined: 25 Dec 2006 Posts: 31 Location: Padova
|
Posted: Sun Feb 03, 2008 2:31 pm Post subject: |
|
|
AHHhhH...quanti errori!! Per comodità mi sono portato il make.conf della vecchia macchina in questa ma mi sono dimenticato alcune importanti modifiche!
comunque
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 CPU T8300 @ 2,40GHz
ora provo a tornare al 4.1.1 e sistemo un po di cose!! |
|
Back to top |
|
|
Scen Retired Dev
Joined: 29 Jul 2003 Posts: 2470 Location: Padova, Italy
|
Posted: Sun Feb 03, 2008 2:43 pm Post subject: |
|
|
Fermo là! Volendo...
http://gentoo-wiki.com/CFLAGS#-march.3D.3Cyour_arch.3E
Quote: |
If you are using gcc-4.2.2 or newer you can also use
-march=native or -mtune=native.
See gcc doc. This comes especially handy if you have an Intel Core* CPU and are planning swiching between gcc-4.2 and gcc-4.3.
|
_________________ I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny |
|
Back to top |
|
|
miksanta n00b
Joined: 25 Dec 2006 Posts: 31 Location: Padova
|
Posted: Sun Feb 03, 2008 2:58 pm Post subject: |
|
|
FUNZIONA!!!
Allora ho sistemato il make.conf cosi:
Code: |
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"
PORTAGE_BINHOST="http://gentoopackages.net/packages/x86_64/"
USE="X 3dnow alsa arts avi directfb cdparanoia berkdb dvdread bitmap-fonts cairo cdr cli crypt cups dbus aiglx dri dvd dvdr eds elibc_glibc emboss encode es$
FEATURES="ccache parallel-fetch"
LINGUAS="it"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://85.25.128.62 http://mirror.uni-c.dk/pub/gentoo/"
VIDEO_CARDS="v4l vesa vga fbdev"
|
ho scelto con gcc-config:
x86_64-pc-linux-gnu-4.2.2
e compila tutto!!!
GRAZIE MILLE!!!
Michele! |
|
Back to top |
|
|
.:deadhead:. Advocate
Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
|
Back to top |
|
|
|