This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: unrecognized command line option '-mlong-double-80' '-fbuilding-libgcc'
- From: Dmitry Mikushin <dmitry at kernelgen dot org>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 24 Oct 2013 07:51:09 +0200
- Subject: Re: unrecognized command line option '-mlong-double-80' '-fbuilding-libgcc'
- Authentication-results: sourceware.org; auth=none
- References: <5264B5D2 dot 5090602 at kernelgen dot org> <CAKOQZ8z2H7ko9CEiBzG3PjC4w4Oei9JxUcB4m_mDs7ET=YguAA at mail dot gmail dot com> <CAJoDaPbWBCBGFisq+ZbPh=UuiDcwDV63BD9twmLj07f9wb0H=A at mail dot gmail dot com> <CAKOQZ8zyS69wfNXBGabUUKSc51ki6g6OOjhf5YaVic+=5om-Ew at mail dot gmail dot com> <CAJoDaPYWVH6hY1DdNS265-N8huPVMkd7Ma5Vihw9-6m9ZG=kQg at mail dot gmail dot com> <CAKOQZ8y4B_Uuz87FoE5OJV7XY1OSCBc3iU1A-nBM2Ey3FECn2A at mail dot gmail dot com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ian,
I'm NOT using --build/--host/--target:
+ CC=gcc -m32 CXX=g++ -m32 FC=gfortran -m32 F77=gfortran -m32
../configure --enable-build-with-cxx
-
--prefix=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/
- --program-prefix=kernelgen- --enable-languages=fortran,c++
-
--with-mpfr-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
-
--with-mpfr-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
-
--with-gmp-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
-
--with-gmp-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
-
--with-mpc-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
-
--with-mpc-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
- --enable-plugin --enable-gold=default --disable-ld
-
--with-ld=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/bin/kernelgen-ld
- --disable-multilib
-
--libdir=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/lib
But I get:
checking dynamic linker characteristics... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES.
Or actually even earlier than that there is
configure:2934: checking for C compiler default output file name
configure:2956:
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912/build/./prev-gcc/xgcc
-
-B/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912/build/./prev-gcc/
-
-B/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/x86_64-unknown-linux-gnu/bin/
-
-B/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/x86_64-unknown-linux-gnu/bin/
-
-B/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/x86_64-unknown-linux-gnu/lib/
- -isystem
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/x86_64-unknown-linux-gnu/include
- -isystem
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/x86_64-unknown-linux-gnu/sys-include
-m32 -gtoggle -static-libstdc++ -static-libgcc conftest.c >&5
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/bin/kernelgen-ld:
error:
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912/build/./prev-gcc/crtbegin.o:
incompatible target
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/bin/kernelgen-ld:
error:
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912/build/./prev-gcc/crtend.o:
incompatible target
collect2: error: ld returned 1 exit status
So, crtbegin.o/crtend.o are still ELF64.
On 10/24/2013 07:07 AM, Ian Lance Taylor wrote:
> On Wed, Oct 23, 2013 at 9:59 PM, Dmitry Mikushin
> <dmitry@kernelgen.org> wrote:
>> Still all sorts of problems:
>>
>> with BOOT_CFLAGS="-m32" and CFLAGS_FOR_TARGET="-m32" I get a
>> number of compilation errors e.g. "error: unknown type name
>> 'UTItype'" with BOOT_CFLAGS="-m32" only I get "configure: error:
>> Link tests are not allowed after GCC_NO_EXECUTABLES."
>
>
> Should have said this last time: please reply to the mailing list,
> not just to me. Thanks.
>
> I would not expect to see the "Link tests" error unless you are
> still using the --build/--host/--target configure arguments. I
> was suggesting that you omit those.
>
> Ian
>
>> 2013/10/24 Ian Lance Taylor <iant@google.com>
>>>
>>>
>>> On Oct 23, 2013 8:27 PM, "Dmitry Mikushin"
>>> <dmitry@kernelgen.org> wrote:
>>>>
>>>> Dear Ian,
>>>>
>>>> I started exactly with adding -m32 options as you mentioned,
>>>> but in this case the resulting toolchain executables are
>>>> ELF64.
>>>
>>> You'll probably also have to set BOOT_CFLAGS or something like
>>> that--see the install instructions.
>>>
>>> Ian
>>>
>>>> 2013/10/21 Ian Lance Taylor <iant@google.com>
>>>>>
>>>>> On Sun, Oct 20, 2013 at 10:04 PM, Dmitry Mikushin
>>>>> <dmitry@kernelgen.org> wrote:
>>>>>>
>>>>>> I'm trying to build a GCC toolchain (4.8-20130912
>>>>>> snapshot) targeting x86-64 multiarch on i686 host, using
>>>>>> x86-64 builder:
>>>>>>
>>>>>> + cd
>>>>>>
>>>>>> /home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912
>>>>>>
>>>>>>
+ mkdir build
>>>>>> + cd build/ + CC=gcc -m32 CXX=g++ -m32 FC=gfortran -m32
>>>>>> F77=gfortran -m32 ../configure --enable-build-with-cxx -
>>>>>>
>>>>>> --prefix=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/
>>>>>>
>>>>>>
- - --program-prefix=kernelgen- --enable-languages=fortran,c++
>>>>>> -
>>>>>>
>>>>>> --with-mpfr-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
>>>>>>
>>>>>>
- -
>>>>>>
>>>>>> --with-mpfr-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
>>>>>>
>>>>>>
- -
>>>>>>
>>>>>> --with-gmp-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
>>>>>>
>>>>>>
- -
>>>>>>
>>>>>> --with-gmp-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
>>>>>>
>>>>>>
- -
>>>>>>
>>>>>> --with-mpc-include=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/
>>>>>>
>>>>>>
- -
>>>>>>
>>>>>> --with-mpc-lib=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib
>>>>>>
>>>>>>
- - --enable-plugin --enable-gold=default --disable-ld
>>>>>> -
>>>>>>
>>>>>> --with-ld=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/bin/kernelgen-ld
>>>>>>
>>>>>>
- - --disable-multilib
>>>>>> -
>>>>>>
>>>>>> --libdir=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILDROOT/lib
>>>>>>
>>>>>>
- - --build=x86_64-linux-gnu --host=i686-linux-gnu
>>>>>> --target=x86_64-linux-gnu
>>>>>>
>>>>>> + cd
>>>>>>
>>>>>> /home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/BUILD/gcc-4.8-20130912/build
>>>>>>
>>>>>>
+ CC=gcc -m32 CXX=g++ -m32 FC=gfortran -m32 F77=gfortran -m32
>>>>>>
>>>>>> CPLUS_INCLUDE_PATH=/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include:/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/include/libelf
>>>>>>
>>>>>>
KERNELGEN_FALLBACK=1 make -j24 CFLAGS=-g -O0 CXXFLAGS=-g -O0
>>>>>>
>>>>>> The build fails with
>>>>>>
>>>>>> cc -g -O2 -O2 -g -O2 -DIN_GCC
>>>>>> -DCROSS_DIRECTORY_STRUCTURE - -DNATIVE_CROSS -W -Wall
>>>>>> -Wno-narrowing -Wwrite-strings -Wcast-qual -
>>>>>> -Wstrict-prototypes -Wmissing-prototypes
>>>>>> -Wold-style-definition - -isystem ./include -fpic
>>>>>> -mlong-double-80 -g -DIN_LIBGCC2 - -fbuilding-libgcc
>>>>>> -fno-stack-protector -Dinhibit_libc -fpic -
>>>>>> -mlong-double-80 -I. -I. -I../.././gcc -I../../../libgcc
>>>>>> - -I../../../libgcc/. -I../../../libgcc/../gcc -
>>>>>> -I../../../libgcc/../include
>>>>>> -I../../../libgcc/config/libbid -
>>>>>> -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o
>>>>>> morestack_s.o - -MT morestack_s.o -MD -MP -MF
>>>>>> morestack_s.dep -DSHARED -c - -xassembler-with-cpp
>>>>>> ../../../libgcc/config/i386/morestack.S sed -e
>>>>>> 's/__PFX__/__/g' \ -e 's/__FIXPTPFX__/__/g' <
>>>>>> ../../../libgcc/libgcc-std.ver.in > libgcc-std.ver
>>>>>> dest=../.././gcc/include/tmp$$-unwind.h; \ cp unwind.h
>>>>>> $dest; \ chmod a+r $dest; \ sh
>>>>>> ../../../libgcc/../move-if-change $dest
>>>>>> ../.././gcc/include/unwind.h echo timestamp >
>>>>>> libgcc_tm.stamp cc1: error: unrecognized command line
>>>>>> option '-mlong-double-80' cc1: error: unrecognized
>>>>>> command line option '-mlong-double-80' cc1: error:
>>>>>> unrecognized command line option '-fbuilding-libgcc' cc1:
>>>>>> warning: unrecognized command line option
>>>>>> "-Wno-narrowing" [enabled by default]
>>>>>>
>>>>>> What's wrong here?
>>>>>
>>>>> You're trying to do a fairly complex Canadian Cross. To
>>>>> make this work you must first build the build-x-target and
>>>>> host-x-target compilers, and put them on your PATH.
>>>>>
>>>>> Basically "cc" in this command needs to be a build-x-target
>>>>> compiler built from the same sources that you are using to
>>>>> build your Canadian Cross.
>>>>>
>>>>> By the way I'm not sure exactly what you are trying to do
>>>>> but it might would work more easily if you omitted the
>>>>> --build, --host, and --target options from your configure
>>>>> line and simply set CC="gcc -m32" CXX="g++ -m32" when
>>>>> building.
>>>>>
>>>>> Ian
>>>>
>>>>
>>
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJSaLVIAAoJENwm3+sbf/pMF04H/jAHGMYWj0mTnj+aKQf1ZiVK
Nx/YFRgVyoN98p//FWX3yd9ia/RgtrdNcgyzEZbxrvd13IY/TvozuSFYNUf/EqlP
PBqmGg34L++6rP34orSN31N4oYprrcDe6I4BkVQXPORBslo6iK/RzppubTW3Qa6p
r9VJhhlutLCCrzPERlK0xTQvP7nJ35RzSvKEM7+6OMwqjBgXGIfZMAOGhAI6ee7H
lD3aRvwNyf5guxJC2ZqDHG0DyDFmmM230wZoYKRo/jAkmQK284nNgJ6EL49/S5Gq
ufhnzii+oESvFtan2Dbf2gkTFNjeQlkGaQfbpdq21NLl5QswYS+clS/YQMr9oAw=
=5xsK
-----END PGP SIGNATURE-----