This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Update default arch for x86


On Sat, Feb 27, 2010 at 8:32 AM, Matthias Klose <doko@ubuntu.com> wrote:
> On 27.02.2010 16:36, H.J. Lu wrote:
>>
>> On Sat, Feb 27, 2010 at 7:33 AM, H.J. Lu<hjl.tools@gmail.com> ?wrote:
>>>
>>> On Sat, Feb 27, 2010 at 3:59 AM, Matthias Klose<doko@ubuntu.com> ?wrote:
>>>>
>>>> On 27.02.2010 03:14, H.J. Lu wrote:
>>>>>
>>>>> On Fri, Feb 26, 2010 at 5:29 PM, Jack Howarth<howarth@bromo.med.uc.edu>
>>>>> ?wrote:
>>>>>>
>>>>>> On Fri, Feb 26, 2010 at 05:06:00PM -0500, Jason Merrill wrote:
>>>>>>>
>>>>>>> On 02/26/2010 03:56 PM, H.J. Lu wrote:
>>>>>>>>
>>>>>>>> Here is the updated patch to replace arch_fpmath_pentium4 with
>>>>>>>> arch_without_sse2. ?OK to install?
>>>>>>>
>>>>>>> OK.
>>>>>>>
>>>>>>> Jason
>>>>>>
>>>>>> ? The current gcc trunk no longer allows darwin10 to build with the
>>>>>> configuration...
>>>>>>
>>>>>> ../gcc-4.5-20100226/configure --prefix=/sw --prefix=/sw/lib/gcc4.5
>>>>>> --mandir=/sw/share/man --infodir=/sw/share/info
>>>>>> --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
>>>>>> --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw
>>>>>> --with-mpc=/sw
>>>>>> --with-system-zlib --x-includes=/usr/X11R6/include
>>>>>> --x-libraries=/usr/X11R6/lib --disable-libjava-multilib
>>>>>> --build=i686-apple-darwin10 --host=i686-apple-darwin10
>>>>>> --target=i686-apple-darwin10
>>>>>>
>>>>>> The build hangs in the x86_64 libgcc multilib subdirectory with the
>>>>>> config.log errors there of...
>>>>>>
>>>>>
>>>>> That will happen for all i[34567]86-*-* targets which also require
>>>>> 64bit
>>>>> ISA.
>>>>> This patch avoids setting the default arch if 64bit ISA is required and
>>>>> i[34567]86-*-* targets don't support 64bit ISA.
>>>>
>>>> build of a biarch compiler on i486-linux-gnu fails, even with this patch
>>>> applied:
>>>>
>>>> --enable-shared --enable-threads=posix --enable-targets=all
>>>> --with-arch-32=i486 --with-tune=generic --enable-checking=yes
>>>> --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
>>>>
>>>> checking for x86_64-linux-gnu-gcc...
>>>> /scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build/./gcc/xgcc
>>>> -B/scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build/./gcc/
>>>> -B/usr/i486-linux-gnu/bin/ -B/usr/i486-linux-gnu/lib/ -isystem
>>>> /usr/i486-linux-gnu/include -isystem /usr/i486-linux-gnu/sys-include
>>>> ?-m64
>>>> checking for suffix of object files... configure: error: in
>>>>
>>>> `/scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build/i486-linux-gnu/64/libgcc':
>>>> configure: error: cannot compute suffix of object files: cannot compile
>>>> See `config.log' for more details.
>>>> make[4]: *** [configure-stage1-target-libgcc] Error 1
>>>> make[4]: Leaving directory
>>>> `/scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build'
>>>> make[3]: *** [stage1-bubble] Error 2
>>>>
>>>>
>>>> configure:3232:
>>>> /scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build/./gcc/xgcc -
>>>> B/scratch/packages/gcc/4.5/u/gcc-4.5-4.5-20100227/build/./gcc/
>>>> -B/usr/i486-linux-gn
>>>> u/bin/ -B/usr/i486-linux-gnu/lib/ -isystem /usr/i486-linux-gnu/include
>>>> -isystem /us
>>>> r/i486-linux-gnu/sys-include ?-m64 -c -g -O2 ?conftest.c>&5
>>>> conftest.c:1:0: error: CPU you selected does not support x86-64
>>>> instruction
>>>> set
>>>> configure:3236: $? = 1
>>>>
>>>
>>> This patch works for me on Linux with
>>>
>>> # .../configure --enable-targets=all i686-linux
>>>
>>
>> Wrong patch. Here is the updated one.
>
> thanks! works when omitting the --with-arch-32=i486 flag, but not with it.
>

Try this one.

-- 
H.J.

Attachment: gcc-arch-64bit-4.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]