public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Blackfin, uClibc-ng, and fdpic
@ 2015-10-28 18:22 Bryan Hundven
  2015-10-29  0:14 ` Reinoud Koornstra
  0 siblings, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2015-10-28 18:22 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: crossgcc maillist

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-28 18:22 Blackfin, uClibc-ng, and fdpic Bryan Hundven
@ 2015-10-29  0:14 ` Reinoud Koornstra
  2015-10-29 19:40   ` Bryan Hundven
  0 siblings, 1 reply; 12+ messages in thread
From: Reinoud Koornstra @ 2015-10-29  0:14 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: Thomas Petazzoni, crossgcc maillist

Hi Bryan,

Can you also try with gcc 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-29  0:14 ` Reinoud Koornstra
@ 2015-10-29 19:40   ` Bryan Hundven
  2015-10-29 20:34     ` Reinoud Koornstra
  0 siblings, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2015-10-29 19:40 UTC (permalink / raw)
  To: Reinoud Koornstra; +Cc: Thomas Petazzoni, crossgcc maillist

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-29 19:40   ` Bryan Hundven
@ 2015-10-29 20:34     ` Reinoud Koornstra
  2015-10-29 20:44       ` Bryan Hundven
  0 siblings, 1 reply; 12+ messages in thread
From: Reinoud Koornstra @ 2015-10-29 20:34 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: Thomas Petazzoni, crossgcc maillist

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.
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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-29 20:34     ` Reinoud Koornstra
@ 2015-10-29 20:44       ` Bryan Hundven
  2015-11-03  0:43         ` Bryan Hundven
  2015-11-12  1:27         ` Reinoud Koornstra
  0 siblings, 2 replies; 12+ messages in thread
From: Bryan Hundven @ 2015-10-29 20:44 UTC (permalink / raw)
  To: Reinoud Koornstra; +Cc: Thomas Petazzoni, crossgcc maillist

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-29 20:44       ` Bryan Hundven
@ 2015-11-03  0:43         ` Bryan Hundven
  2015-11-12  1:27         ` Reinoud Koornstra
  1 sibling, 0 replies; 12+ messages in thread
From: Bryan Hundven @ 2015-11-03  0:43 UTC (permalink / raw)
  To: Reinoud Koornstra; +Cc: Thomas Petazzoni, crossgcc maillist

Hello,

On Thu, Oct 29, 2015 at 1: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.

I noticed another problem today, where blackfin sets CROSS_COMPILE in
linux to bfin-uclinux- if CROSS_COMPILE is not set. I am updating the
pull request so CROSS_COMPILE is set for creating the linux headers.

I also noticed that in the crosstool-ng scripts/build/libc/uClibc.sh
script, we set CROSS="${CT_TARGET}-", but maybe that is something from
an older uClibc?
It should be setting CROSS_COMPILE, just like the kernel. I'm updating
the pull request right now. But the same  problem occurs. Has anyone
else been able to figure this out?

-Bryan

> -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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-10-29 20:44       ` Bryan Hundven
  2015-11-03  0:43         ` Bryan Hundven
@ 2015-11-12  1:27         ` Reinoud Koornstra
  2015-11-12  5:59           ` Bryan Hundven
  1 sibling, 1 reply; 12+ messages in thread
From: Reinoud Koornstra @ 2015-11-12  1:27 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: Thomas Petazzoni, crossgcc maillist

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-11-12  1:27         ` Reinoud Koornstra
@ 2015-11-12  5:59           ` Bryan Hundven
  2015-11-13 19:54             ` Reinoud Koornstra
  0 siblings, 1 reply; 12+ messages in thread
From: Bryan Hundven @ 2015-11-12  5:59 UTC (permalink / raw)
  To: Reinoud Koornstra; +Cc: Thomas Petazzoni, crossgcc maillist

Reinoud,

On Wed, Nov 11, 2015 at 5:27 PM, Reinoud Koornstra
<reinoudkoornstra@gmail.com> wrote:
> Hy Bryan,
>
> I think you patch gcc by now as 4.9.3 builds with uclibc-ng.

Actually, I just recently removed blackfin support.

If we want to add it back in, I want to wait until after 1.22.0 is released.

> 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.

-Bryan

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-11-12  5:59           ` Bryan Hundven
@ 2015-11-13 19:54             ` Reinoud Koornstra
  2015-11-13 20:17               ` Waldemar Brodkorb
  0 siblings, 1 reply; 12+ messages in thread
From: Reinoud Koornstra @ 2015-11-13 19:54 UTC (permalink / raw)
  To: Bryan Hundven; +Cc: Thomas Petazzoni, crossgcc maillist

On Wed, Nov 11, 2015 at 10:59 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> Reinoud,
>
> On Wed, Nov 11, 2015 at 5:27 PM, Reinoud Koornstra
> <reinoudkoornstra@gmail.com> wrote:
>> Hy Bryan,
>>
>> I think you patch gcc by now as 4.9.3 builds with uclibc-ng.
>
> Actually, I just recently removed blackfin support.
>
> If we want to add it back in, I want to wait until after 1.22.0 is released.
>

Well this is not blackfin, this is for mips or arm actually.
The issue in this case is that uclibc-ng isn't installed correctly,
utmp.h isn't correctly copied in the right location, it doesn't go to
sysroot.
This issue is not present in the installation of uclibc.


>> 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.
>
> -Bryan

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-11-13 19:54             ` Reinoud Koornstra
@ 2015-11-13 20:17               ` Waldemar Brodkorb
  2015-11-13 20:38                 ` Reinoud Koornstra
  2015-11-13 21:32                 ` Reinoud Koornstra
  0 siblings, 2 replies; 12+ messages in thread
From: Waldemar Brodkorb @ 2015-11-13 20:17 UTC (permalink / raw)
  To: Reinoud Koornstra; +Cc: Bryan Hundven, Thomas Petazzoni, crossgcc maillist

Hi,
Reinoud Koornstra wrote,

> On Wed, Nov 11, 2015 at 10:59 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> > Reinoud,
> >
> > On Wed, Nov 11, 2015 at 5:27 PM, Reinoud Koornstra
> > <reinoudkoornstra@gmail.com> wrote:
> >> Hy Bryan,
> >>
> >> I think you patch gcc by now as 4.9.3 builds with uclibc-ng.
> >
> > Actually, I just recently removed blackfin support.
> >
> > If we want to add it back in, I want to wait until after 1.22.0 is released.
> >
> 
> Well this is not blackfin, this is for mips or arm actually.
> The issue in this case is that uclibc-ng isn't installed correctly,
> utmp.h isn't correctly copied in the right location, it doesn't go to
> sysroot.
> This issue is not present in the installation of uclibc.

Are you sure UCLIBC_HAS_UTMP/UCLIBC_HAS_UTMPX is set in your config?
uClibc git master and so uClibc-ng only have this feature when the
symbol is activated.

I would love to get a solution for Blackfin and recent gcc.
But this one is still unresolved:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779
Should I handle it in uClibc-ng?

best regards
 Waldemar
 

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-11-13 20:17               ` Waldemar Brodkorb
@ 2015-11-13 20:38                 ` Reinoud Koornstra
  2015-11-13 21:32                 ` Reinoud Koornstra
  1 sibling, 0 replies; 12+ messages in thread
From: Reinoud Koornstra @ 2015-11-13 20:38 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: Bryan Hundven, Thomas Petazzoni, crossgcc maillist

On Fri, Nov 13, 2015 at 1:17 PM, Waldemar Brodkorb <wbx@openadk.org> wrote:
> Hi,
> Reinoud Koornstra wrote,
>
>> On Wed, Nov 11, 2015 at 10:59 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>> > Reinoud,
>> >
>> > On Wed, Nov 11, 2015 at 5:27 PM, Reinoud Koornstra
>> > <reinoudkoornstra@gmail.com> wrote:
>> >> Hy Bryan,
>> >>
>> >> I think you patch gcc by now as 4.9.3 builds with uclibc-ng.
>> >
>> > Actually, I just recently removed blackfin support.
>> >
>> > If we want to add it back in, I want to wait until after 1.22.0 is released.
>> >
>>
>> Well this is not blackfin, this is for mips or arm actually.
>> The issue in this case is that uclibc-ng isn't installed correctly,
>> utmp.h isn't correctly copied in the right location, it doesn't go to
>> sysroot.
>> This issue is not present in the installation of uclibc.
>
> Are you sure UCLIBC_HAS_UTMP/UCLIBC_HAS_UTMPX is set in your config?
> uClibc git master and so uClibc-ng only have this feature when the
> symbol is activated.

I wasn't aware that uclibc-ng has the option  UCLIBC_HAS_UTMP in it's config.
I was aware of the option  UCLIBC_HAS_UTMPX, but i didn't set that as
i don't need UTMPX, but i DO need UTMP. :)

>
> I would love to get a solution for Blackfin and recent gcc.
> But this one is still unresolved:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779
> Should I handle it in uClibc-ng?

Right now bluefin is gone from crosstools, but it can be brought back of course.
As such there is also no patch for this.
buildroot might have a patch for this if they support bluefin.
you can do the git clone like Bryan described earlier and bluefin
might still be there and try it.


> best regards
>  Waldemar
>

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Blackfin, uClibc-ng, and fdpic
  2015-11-13 20:17               ` Waldemar Brodkorb
  2015-11-13 20:38                 ` Reinoud Koornstra
@ 2015-11-13 21:32                 ` Reinoud Koornstra
  1 sibling, 0 replies; 12+ messages in thread
From: Reinoud Koornstra @ 2015-11-13 21:32 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: Bryan Hundven, Thomas Petazzoni, crossgcc maillist

On Fri, Nov 13, 2015 at 1:17 PM, Waldemar Brodkorb <wbx@openadk.org> wrote:
> Hi,
> Reinoud Koornstra wrote,
>
>> On Wed, Nov 11, 2015 at 10:59 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>> > Reinoud,
>> >
>> > On Wed, Nov 11, 2015 at 5:27 PM, Reinoud Koornstra
>> > <reinoudkoornstra@gmail.com> wrote:
>> >> Hy Bryan,
>> >>
>> >> I think you patch gcc by now as 4.9.3 builds with uclibc-ng.
>> >
>> > Actually, I just recently removed blackfin support.
>> >
>> > If we want to add it back in, I want to wait until after 1.22.0 is released.
>> >
>>
>> Well this is not blackfin, this is for mips or arm actually.
>> The issue in this case is that uclibc-ng isn't installed correctly,
>> utmp.h isn't correctly copied in the right location, it doesn't go to
>> sysroot.
>> This issue is not present in the installation of uclibc.
>
> Are you sure UCLIBC_HAS_UTMP/UCLIBC_HAS_UTMPX is set in your config?
> uClibc git master and so uClibc-ng only have this feature when the
> symbol is activated.

Ok, UCLIBC_HAS_UTMPX=y made it happen.
So when this is set, utmp.h will also be copied it seems.

> I would love to get a solution for Blackfin and recent gcc.
> But this one is still unresolved:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779
> Should I handle it in uClibc-ng?
>
> best regards
>  Waldemar
>

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-11-13 21:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 18:22 Blackfin, uClibc-ng, and fdpic Bryan Hundven
2015-10-29  0:14 ` Reinoud Koornstra
2015-10-29 19:40   ` Bryan Hundven
2015-10-29 20:34     ` Reinoud Koornstra
2015-10-29 20:44       ` Bryan Hundven
2015-11-03  0:43         ` Bryan Hundven
2015-11-12  1:27         ` Reinoud Koornstra
2015-11-12  5:59           ` Bryan Hundven
2015-11-13 19:54             ` Reinoud Koornstra
2015-11-13 20:17               ` Waldemar Brodkorb
2015-11-13 20:38                 ` Reinoud Koornstra
2015-11-13 21:32                 ` Reinoud Koornstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).