Building GCC 4.0.2 on a 32/64bit Linux distro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

We have decided to migrate from Solaris to Linux one year ago. Our
systems are based on AMD Opteron and it was decided that our Linux
distribution (Debian Sarge was chosen) had to be 32bit, except our
homebrew applications, which have to be 64bit. That's why we have a 64
bit GCC installation somewhere on our NFS that was tuned to use by
default /usr/lib64 instead of /usr/lib, and other workarounds like that.
This was done by a kind of Linux guru, who isn't with us anymore. So the
knowledge was lost... (Very professional, isn't it?)

For my project I need g77 (especially libg2c) in order to use the AMD
flavour of LAPACK (ACML). It wasn't included in our installation, that's
why I'm trying to compile GCC 4.0.2. I redefined CC in order to refer
our custom GCC and tried to launch 'configure' like this:

./configure --prefix=/some/where/ --with-cpu=opteron
--with-march=opteron

The result is (obviously) an error...

/tmp/ccHtARnb.s: Assembler messages:
/tmp/ccHtARnb.s:37: Error: `completed.4353(%rip)' is not a valid 32 bit
base/index expression
/tmp/ccHtARnb.s:38: Error: suffix or operands invalid for `push'
/tmp/ccHtARnb.s:39: Error: suffix or operands invalid for `movq'
/tmp/ccHtARnb.s:45: Error: `p.4352(%rip)' is not a valid 32 bit
base/index expression
/tmp/ccHtARnb.s:48: Error: `p.4352(%rip)' is not a valid 32 bit
base/index expression
/tmp/ccHtARnb.s:49: Error: `(%rax)' is not a valid 32 bit base/index
expression
/tmp/ccHtARnb.s:58: Error: `completed.4353(%rip)' is not a valid 32 bit
base/index expression
/tmp/ccHtARnb.s:72: Error: suffix or operands invalid for `push'
/tmp/ccHtARnb.s:75: Error: suffix or operands invalid for `movq'
/tmp/ccHtARnb.s:81: Error: `__JCR_LIST__(%rip)' is not a valid 32 bit
base/index expression
/tmp/ccHtARnb.s:87: Error: bad register name `%r11'
/tmp/ccHtARnb.s:89: Error: bad register name `%r11'


Not really surprising, according that the assembly code is certainly
64bit.
As far as I know, my binutils are in 32bit and without any option 'as'
and 'ld' will assume that they have to deal with 32bit code.
I tried to override LDFLAGS with '-m elf_x86_64' (before configure, like
CC), but there isn't any ASFLAGS...

Does anyone have an idea? Should I make something like a
cross-compilation?
Any help will be welcomed... 
Thanks for your answers,


Xavier Payn 

--------------------------------------------------------

Ce message et toutes les pieces jointes peuvent etre confidentiels, et, de plus, peuvent etre couverts par un privilege ou une protection legale. Il est etabli a l'intention exclusive de ses destinataires. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse prealable. Toutes opinions exprimees dans ce message, sont personnelles a leur auteur et ne sauraient necessairement refleter celle de IXIS Corporate & Investment Bank, de ses filiales ou de sa maison mere. Elles sont aussi susceptibles de modification sans notification prealable. Tous droits reserves. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute communication avec IXIS Corporate & Investment Bank peut etre controlee, enregistree et conservee. IXIS Corporate & Investment Bank decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. Les communications sur Internet n'etant pas securisees, IXIS Corporate & Investment Bank informe qu'il ne peut accepter aucune responsabilite quant au contenu de ce message.
This email and any attachment may be confidential and may also be legally privileged or otherwise protected from disclosure. It is intended only for the stated addressee(s) and access to it by any other person(s) is unauthorised. Any use, dissemination or disclosure not in accordance with its purpose, either in whole or in part, is prohibited without our prior formal approval. Any opinion expressed in this message may be personal to the author and may not necessarily reflect the opinion of IXIS Corporate & Investment Bank, its affiliates or parent company. It may also be subject to change without prior notice. Copyright reserved. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this email. If you have received it in error, please inform us immediately and delete all copies. Any communication made with IXIS Corporate & Investment Bank (whether personal or business) may be monitored and a record kept. IXIS Corporate & Investment Bank shall not be liable for the message if altered, changed or falsified. As communication on the Internet is not secure, IXIS Corporate & Investment Bank does not accept responsibility for the content of this message. --------------------------------------------------------


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux