All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/acpitool: not available for bfin
Date: Mon, 18 Jul 2016 22:51:26 +0200	[thread overview]
Message-ID: <20160718205126.GC12720@free.fr> (raw)
In-Reply-To: <20160718222903.562311d5@free-electrons.com>

Thomas, All,

On 2016-07-18 22:29 +0200, Thomas Petazzoni spake thusly:
> On Mon, 18 Jul 2016 22:23:36 +0200, Yann E. MORIN wrote:
> 
> > Ok, so nothing in autoconf states that AC_PROG_CC should be before
> > AC_PROG_CXX.
> > 
> > So, I tried to autoreconf acpitool without changing the ordering. And it
> > still breaks at the same location, but for another reason:
> > 
> >     [...]
> >     checking host system type... bfin-buildroot-linux-uclibc
> >     checking whether the C++ compiler works... no
> >     configure: error: in `/home/ymorin/dev/buildroot/O/build/acpitool-0.5.1':
> >     configure: error: C++ compiler cannot create executables
> >     See `config.log' for more details
> > 
> > And config.log says:
> > 
> >     configure:3032: checking whether the C++ compiler works
> >     configure:3054: /home/ymorin/dev/buildroot/O/host/usr/bin/bfin-linux-g++ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  conftest.cpp  >&5
> >     /home/ymorin/dev/buildroot/O/host/opt/ext-toolchain/bin/../lib/gcc/bfin-buildroot-linux-uclibc/6.1.0/../../../../bfin-buildroot-linux-uclibc/bin/ld: a.out: hidden symbol `___udivsi3' in /home/ymorin/dev/buildroot/O/host/opt/ext-toolchain/bin/../lib/gcc/bfin-buildroot-linux-uclibc/6.1.0/libgcc.a(_udivsi3.o) is referenced by DSO
> >     /home/ymorin/dev/buildroot/O/host/opt/ext-toolchain/bin/../lib/gcc/bfin-buildroot-linux-uclibc/6.1.0/../../../../bfin-buildroot-linux-uclibc/bin/ld: final link failed: Bad value
> >     collect2: error: ld returned 1 exit status
> >     configure:3058: $? = 1
> >     configure:3096: result: no
> > 
> > So. Their configure file is borked. It was generated with autoconf 2.63,
> > if that is of any importance.
> 
> I'm probably missing something, but what makes you conclude that their
> configure file is borked? What I'm seeing here is a compiler issue, not
> a configure script issue.

OK, so I am starting to loose my sanity here...

So, my working assumption was that, with the bundled configure script,
the configure failure was different than if autoreconfiguring.

I checked again. It is not different; it is the same ___udivsi3 hidden
symbol issue.

Still, I don't understand why calling AC_PROG_CC before AC_PROG_CXX
does not exhibit the issue. Is autoconf happy enough to see that the C
compiler works that it does not check the C++ compiler?

OK, I'll back off hacking complex stuff for tonight... It's 35?C here,
so that's probably the reason why I'm all weird tonight... :-/

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2016-07-18 20:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17 17:56 [Buildroot] [PATCH] package/acpitool: not available for bfin Yann E. MORIN
2016-07-18 17:37 ` Erico Nunes
2016-07-18 18:30   ` Yann E. MORIN
2016-07-18 19:51     ` Thomas Petazzoni
2016-07-18 20:23       ` Yann E. MORIN
2016-07-18 20:29         ` Thomas Petazzoni
2016-07-18 20:51           ` Yann E. MORIN [this message]
2016-07-18 21:20       ` Yann E. MORIN
2016-07-18 21:31         ` Thomas Petazzoni
2016-07-24 20:47     ` Bernd Kuhls
2016-07-18 19:48   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160718205126.GC12720@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.