Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Problemi compilazione
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
miksanta
n00b
n00b


Joined: 25 Dec 2006
Posts: 31
Location: Padova

PostPosted: Sun Feb 03, 2008 2:54 am    Post subject: [RISOLTO] Problemi compilazione Reply with quote

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
View user's profile Send private message
Nuitari
Apprentice
Apprentice


Joined: 15 May 2005
Posts: 245

PostPosted: Sun Feb 03, 2008 9:02 am    Post subject: Reply with quote

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
View user's profile Send private message
xveilsidex
Guru
Guru


Joined: 27 Dec 2005
Posts: 370
Location: Bari

PostPosted: Sun Feb 03, 2008 9:52 am    Post subject: Reply with quote

quale stage hai utilizzato? nel make.conf cosa ti compare nelle chost?
Back to top
View user's profile Send private message
miksanta
n00b
n00b


Joined: 25 Dec 2006
Posts: 31
Location: Padova

PostPosted: Sun Feb 03, 2008 10:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Sun Feb 03, 2008 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
miksanta
n00b
n00b


Joined: 25 Dec 2006
Posts: 31
Location: Padova

PostPosted: Sun Feb 03, 2008 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Sun Feb 03, 2008 12:40 pm    Post subject: Reply with quote

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:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Sun Feb 03, 2008 12:41 pm    Post subject: Reply with quote

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
Code:

cat /proc/cpuinfo

_________________
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
View user's profile Send private message
miksanta
n00b
n00b


Joined: 25 Dec 2006
Posts: 31
Location: Padova

PostPosted: Sun Feb 03, 2008 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Sun Feb 03, 2008 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
miksanta
n00b
n00b


Joined: 25 Dec 2006
Posts: 31
Location: Padova

PostPosted: Sun Feb 03, 2008 2:58 pm    Post subject: Reply with quote

FUNZIONA!!! :D

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
View user's profile Send private message
.:deadhead:.
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 2963
Location: Milano, Italy

PostPosted: Sun Feb 03, 2008 10:30 pm    Post subject: Reply with quote

Son contento per te, ti dirò a me + di tutti non quadrava quel
Code:

ACCEPT_KEYWORDS="~x86"
sia per il solo x86 ma sopratutto per via del ~ abilitato a livello totale globale nel sistema.
_________________
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum