[cfe-dev] choosing the gcc toolchain
reed kotler
rkotler at mips.com
Mon Mar 3 07:15:16 PST 2014
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
./Release+Asserts/bin/clang++ -v
clang version 3.5 (gitosis at dmz-portal.mips.com:clang.git
f4481e0e412e3f817e65d5ce1c835381dc7a7773)
(gitosis at dmz-portal.mips.com:llvm.git
18fe44cb057e4b11533bd3f814b96fdca724baf0)
Target: mips64el-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4.6
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6.3
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.7.2
Selected GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6
Candidate multilib: .;@m32
Candidate multilib: 64;@m64
Candidate multilib: n32;@mabi=n32
Selected multilib: 64;@m64
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$ find /usr/lib -name
crtbegin.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/crtbegin.o
/usr/lib/gcc/mipsel-linux-gnu/4.6/64/crtbegin.o
/usr/lib/gcc/mipsel-linux-gnu/4.6/n32/crtbegin.o
/usr/lib/gcc/mipsel-linux-gnu/4.6/crtbegin.o
/usr/lib/gcc/mipsel-linux-gnu/4.4/crtbegin.o
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$ which gcc
/usr/bin/gcc
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$ gcc --version -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/mipsel-linux-gnu/4.7/lto-wrapper
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Target: mipsel-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-libitm --enable-plugin
--with-mips-plt --with-arch-32=mips2 --with-tune-32=mips32
--enable-targets=all --with-arch-64=mips3 --with-tune-64=mips64
--enable-checking=release --build=mipsel-linux-gnu
--host=mipsel-linux-gnu --target=mipsel-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)
COLLECT_GCC_OPTIONS='--version' '-v' '-march=mips2' '-mtune=mips32'
'-mllsc' '-mplt' '-mno-synci' '-mno-shared' '-EL' '-mabi=32'
/usr/lib/gcc/mipsel-linux-gnu/4.7/cc1 -quiet -v -imultiarch
mipsel-linux-gnu help-dummy -mel -quiet -dumpbase help-dummy
-march=mips2 -mtune=mips32 -mllsc -mplt -mno-synci -mno-shared -mabi=32
-auxbase help-dummy -version --version -o /tmp/ccMqrJTq.s
GNU C (Debian 4.7.2-5) version 4.7.2 (mipsel-linux-gnu)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version
3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='--version' '-v' '-march=mips2' '-mtune=mips32'
'-mllsc' '-mplt' '-mno-synci' '-mno-shared' '-EL' '-mabi=32'
as -v -EL -O1 -no-mdebug -mabi=32 -march=mips2 -mno-shared
-mtune=mips32 -mfix-loongson2f-nop -call_nonpic --version -o
/tmp/cc4RqYZu.o /tmp/ccMqrJTq.s
GNU assembler version 2.22 (mipsel-linux-gnu) using BFD version (GNU
Binutils for Debian) 2.22
GNU assembler (GNU Binutils for Debian) 2.22
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `mipsel-linux-gnu'.
COMPILER_PATH=/usr/lib/gcc/mipsel-linux-gnu/4.7/:/usr/lib/gcc/mipsel-linux-gnu/4.7/:/usr/lib/gcc/mipsel-linux-gnu/:/usr/lib/gcc/mipsel-linux-gnu/4.7/:/usr/lib/gcc/mipsel-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/mipsel-linux-gnu/4.7/:/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/:/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../../lib/:/lib/mipsel-linux-gnu/:/lib/../lib/:/usr/lib/mipsel-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='--version' '-v' '-march=mips2' '-mtune=mips32'
'-mllsc' '-mplt' '-mno-synci' '-mno-shared' '-EL' '-mabi=32'
/usr/lib/gcc/mipsel-linux-gnu/4.7/collect2 --sysroot=/ --build-id
--no-add-needed --eh-frame-hdr -EL -EL -dynamic-linker /lib/ld.so.1
-melf32ltsmip --version
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crt1.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crti.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/crtbegin.o
-L/usr/lib/gcc/mipsel-linux-gnu/4.7
-L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu
-L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../../lib
-L/lib/mipsel-linux-gnu -L/lib/../lib -L/usr/lib/mipsel-linux-gnu
-L/usr/lib/../lib -L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../..
/tmp/cc4RqYZu.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/mipsel-linux-gnu/4.7/crtend.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crtn.o
collect2 version 4.7.2
/usr/bin/ld --sysroot=/ --build-id --no-add-needed --eh-frame-hdr -EL
-EL -dynamic-linker /lib/ld.so.1 -melf32ltsmip --version
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crt1.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crti.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/crtbegin.o
-L/usr/lib/gcc/mipsel-linux-gnu/4.7
-L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu
-L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../../lib
-L/lib/mipsel-linux-gnu -L/lib/../lib -L/usr/lib/mipsel-linux-gnu
-L/usr/lib/../lib -L/usr/lib/gcc/mipsel-linux-gnu/4.7/../../..
/tmp/cc4RqYZu.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/mipsel-linux-gnu/4.7/crtend.o
/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu/crtn.o
GNU ld (GNU Binutils for Debian) 2.22
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later
version.
This program has absolutely no warranty.
rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
On 03/03/2014 02:48 AM, Simon Atanasyan wrote:
> And one a couple of questions more. When you check the first patch the
> target triple was mipsel-unknown-linux-gnu. When you check the last
> patch the target triple is mips64el-unknown-linux-gnu. Do you use the
> same clang command line options both time? Does the 4.7.2 toolchain
> contain 64-bit support?
>
> On Mon, Mar 3, 2014 at 10:03 AM, Simon Atanasyan <simon at atanasyan.com> wrote:
>> Could you:
>> 1. Send the command line options used to run the clang
>> 2. Run the following command and send its output:
>> $ find /usr/lib -name crtbegin.o
>>
>> Thanks.
>>
>> On Mon, Mar 3, 2014 at 6:33 AM, Reed Kotler <rkotler at mips.com> wrote:
>>> With this latest patch I'm seeing:
>>>
>>> rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
>>> ./Release+Asserts/bin/clang++ -v
>>> clang version 3.5 (gitosis at dmz-portal.mips.com:clang.git
>>> f4481e0e412e3f817e65d5ce1c835381dc7a7773)
>>> (gitosis at dmz-portal.mips.com:llvm.git
>>> 18fe44cb057e4b11533bd3f814b96fdca724baf0)
>>> Target: mips64el-unknown-linux-gnu
>>>
>>> Thread model: posix
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4.6
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.4.7
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6.3
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.7
>>> Found candidate GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.7.2
>>> Selected GCC installation: /usr/lib/gcc/mipsel-linux-gnu/4.6
>>> Candidate multilib: .;@m32
>>> Candidate multilib: 64;@m64
>>> Candidate multilib: n32;@mabi=n32
>>> Selected multilib: 64;@m64
>>> rkotler at mipsswbrd006-le:~/caviumnativellvm/build$
>>>
>>> The day before I was getting 4.7
>> --
>> Simon Atanasyan
>
>
More information about the cfe-dev
mailing list