Blackfin, uClibc-ng, and fdpic

Reinoud Koornstra reinoudkoornstra@gmail.com
Thu Nov 12 01:27:00 GMT 2015


Hy Bryan,

I think you patch gcc by now as 4.9.3 builds with uclibc-ng.
It fails now with gdbserver. Looking in the logs I also see this for gdbserver:

[CFG  ]    configure: WARNING: unrecognized options:
--with-build-sysroot, --without-uiout, --disable-tui, --disable-gdbtk,
--without-x, --without-included-gettext, --without-develop

[ALL  ]    mipsel-coconut-linux-uclibc-gcc -g -O2    -I.
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../common
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../regformats
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/..
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../../include
-I/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../gnulib/import
-Ibuild-gnulib-gdbserver/import  -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
-DGDBSERVER -c -o linux-osdata.o -MT linux-osdata.o -MMD -MP -MF
.deps/linux-osdata.Tpo
/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../nat/linux-osdata.c
[ERROR]    /home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/../nat/linux-osdata.c:26:18:
fatal error: utmp.h: No such file or directory

reinoud@Mipam:~/Downloads/crosstool-ng-uclibc-ng$ find . -name utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc/include/bits/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc/include/internal/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc/include/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc/libc/sysdeps/linux/common/bits/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc-headers/include/bits/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc-headers/include/internal/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc-headers/include/utmp.h
./.build/mipsel-coconut-linux-uclibc/build/build-libc-headers/libc/sysdeps/linux/common/bits/utmp.h
./.build/src/uClibc-ng-1.0.8/include/internal/utmp.h
./.build/src/uClibc-ng-1.0.8/include/utmp.h
./.build/src/uClibc-ng-1.0.8/libc/sysdeps/linux/common/bits/utmp.h

CC=mipsel-coconut-linux-uclibc-gcc'
'CPP=mipsel-coconut-linux-uclibc-cpp'
'LD=mipsel-coconut-linux-uclibc-ld' 'LDFLAGS=-static'
'/home/reinoud/Downloads/crosstool-ng-uclibc-ng/.build/src/gdb-7.9.1/gdb/gdbserver/configure'
'--build=x86_64-build_pc-linux-gnu'
'--host=mipsel-coconut-linux-uclibc'
'--target=mipsel-coconut-linux-uclibc' '--prefix=/usr'
'--sysconfdir=/etc' '--localstatedir=/var'
'--includedir=/home/reinoud/Downloads/crosstool-ng-uclibc-ng/linux-mips/mipsel-coconut-linux-uclibc/sysroot/usr/include'
'--with-build-sysroot=/home/reinoud/Downloads/crosstool-ng-uclibc-ng/linux-mips/mipsel-coconut-linux-uclibc/sysroot'
'--program-prefix=' '--without-uiout' '--disable-tui'
'--disable-gdbtk' '--without-x' '--without-included-gettext'
'--without-develop' '--disable-werror' '--with-pkgversion=crosstool-NG
crosstool-ng-1.20.0-376-g84ad0f3' '--disable-inprocess-agent

Ok, utmp.h isn't installed in sysroot ......
Something must have gotten wrong

[ALL  ]      INSTALL include ->
/home/reinoud/Downloads/crosstool-ng-uclibc-ng/linux-mips/mipsel-coconut-linux-uclibc/sysroot//usr/include

Thanks,

Reinoud.

On Thu, Oct 29, 2015 at 2:43 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> Reinoud,
>
> On Thu, Oct 29, 2015 at 1:34 PM, Reinoud Koornstra
> <reinoudkoornstra@gmail.com> wrote:
>> Hi Bryan,
>>
>> I suspected so.
>> At home I was able to build uclibc-ng with gcc 5.1.0 I believe, let me
>> check for the config.
>> It was 1.5 or 2 months ago that I tried, that, but it might depend on
>> the options you select for uclibc-ng.
>> Thanks for trying.
>> Let me get back to you tonight.
>
> You can reproduce what I have by:
> ============================================
> git clone https://github.com/bhundven/crosstool-ng
> cd crosstool-ng
> git checkout uclibc-ng
> ./bootstrap
> ./configure --enable-local
> make
> ct-ng bfin-unknown-linux-uclibc
> ct-ng build
> ============================================
>
> By default it will use gcc-5.2.0, but you can change that with `ct-ng
> menuconfig`.
> I just updated the pull request so that it also has the patch needed
> for gcc for gcc 4.9.2 and 4.9.3.
>
> -Bryan
>
>> Thanks,
>>
>> Reinoud.
>>
>> On Thu, Oct 29, 2015 at 1:40 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>>> Reinoud,
>>>
>>> On Wed, Oct 28, 2015 at 5:14 PM, Reinoud Koornstra
>>> <reinoudkoornstra@gmail.com> wrote:
>>>> Hi Bryan,
>>>>
>>>> Can you also try with gcc 4.9.2?
>>>
>>> I have the same issue with 4.9.2.
>>>
>>>> Thanks,
>>>>
>>>> Reinoud.
>>>>
>>>> On Wed, Oct 28, 2015 at 12:22 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>>>>> Thomas, list,
>>>>>
>>>>> I recently started working on uClibc-ng support in crosstool-ng:
>>>>>
>>>>> https://github.com/crosstool-ng/crosstool-ng/pull/221
>>>>>
>>>>> As I mentioned on IRC (irc.freenode.net #crosstool-ng), the blackfin
>>>>> sample fails with:
>>>>>
>>>>>     cc1: error: unrecognized command line option '-mfdpic'
>>>>>
>>>>> as seen on travis-ci:
>>>>>
>>>>> https://travis-ci.org/crosstool-ng/crosstool-ng/jobs/86800468
>>>>>
>>>>> The sample has been updated to use newer tools, and its possible that
>>>>> I'm maybe missing a patch for binutils-2.25.1 or gcc-5.2.0?
>>>>>
>>>>> Yann told me that you're pretty knowledgeable with blackfin support,
>>>>> and I was wondering if you could give me any pointers.
>>>>>
>>>>> I'm also looking for feedback/review on any of the other changes or
>>>>> issues found with the new uClibc-ng support.
>>>>>
>>>>> Thanks in advance,
>>>>>
>>>>> -Bryan
>>>>>
>>>>> --
>>>>> For unsubscribe information see http://sourceware.org/lists.html#faq
>>>>>

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list