Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] TARGET_CONFIGURE_OPTS
@ 2008-11-13  4:14 malcolm blaney
  2008-11-13 13:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: malcolm blaney @ 2008-11-13  4:14 UTC (permalink / raw)
  To: buildroot

Hello,

I'm trying to build dropbear, and have found that having
$(TARGET_CONFIGURE_OPTS) in the command to build:
$(DROPBEAR_DIR)/$(DROPBEAR_BINARY) in the file:
package/dropbear/dropbear.mk breaks my build. With it present the
value of CFLAGS in dropbear's makefile is not used and so some include
paths go missing. It seems to build fine when removed, or when placed
before $(MAKE) on the line.

I read the discussion from last year on having
$(TARGET_CONFIGURE_OPTS) before or after $(MAKE), so is this an
example of a package that needs fixing? Was there a general solution
for this problem?

thanks,
Malcolm.

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

* [Buildroot] TARGET_CONFIGURE_OPTS
  2008-11-13  4:14 [Buildroot] TARGET_CONFIGURE_OPTS malcolm blaney
@ 2008-11-13 13:07 ` Thomas Petazzoni
  2008-11-14  0:42   ` malcolm blaney
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2008-11-13 13:07 UTC (permalink / raw)
  To: buildroot

Le Thu, 13 Nov 2008 14:44:10 +1030,
"malcolm blaney" <mblaney@gmail.com> a ?crit :

> I'm trying to build dropbear, and have found that having
> $(TARGET_CONFIGURE_OPTS) in the command to build:
> $(DROPBEAR_DIR)/$(DROPBEAR_BINARY) in the file:
> package/dropbear/dropbear.mk breaks my build. With it present the
> value of CFLAGS in dropbear's makefile is not used and so some include
> paths go missing. It seems to build fine when removed, or when placed
> before $(MAKE) on the line.

What are the error messages ? What version of Buildroot are you using ?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

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

* [Buildroot] TARGET_CONFIGURE_OPTS
  2008-11-13 13:07 ` Thomas Petazzoni
@ 2008-11-14  0:42   ` malcolm blaney
  2008-11-14  0:53     ` Thiago A. Corrêa
  0 siblings, 1 reply; 6+ messages in thread
From: malcolm blaney @ 2008-11-14  0:42 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

On Thu, Nov 13, 2008 at 11:37 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> What are the error messages ? What version of Buildroot are you using ?

I'm using the latest svn co, which tells me 24010.

error message:

make[1]: Entering directory `/home/malcolm/buildroot/build_i386/dropbear-0.51'
/home/malcolm/buildroot/build_i386/staging_dir/usr/bin/i386-linux-uclibc-gcc
-Os  -I/home/malcolm/buildroot/build_i386/staging_dir/usr/include
-I/home/malcolm/buildroot/build_i386/staging_dir/include
-Wl,--rpath-link
-Wl,/home/malcolm/buildroot/build_i386/staging_dir/lib
-Wl,--rpath-link
-Wl,/home/malcolm/buildroot/build_i386/staging_dir/usr/lib -mtune=i386
-march=i386 -Os
-I/home/malcolm/buildroot/build_i386/staging_dir/usr/include
-I/home/malcolm/buildroot/build_i386/staging_dir/include
-Wl,--rpath-link
-Wl,/home/malcolm/buildroot/build_i386/staging_dir/lib
-Wl,--rpath-link
-Wl,/home/malcolm/buildroot/build_i386/staging_dir/usr/lib -mtune=i386
-march=i386   -c -o dbmulti.o dbmulti.c
In file included from includes.h:30,
                 from dbmulti.c:25:
options.h:436:2: error: #error You must compiled with either
DROPBEAR_CLIENT or DROPBEAR_SERVER selected
In file included from includes.h:124,
                 from dbmulti.c:25:
libtomcrypt/src/headers/tomcrypt.h:12:29: error: tomcrypt_custom.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:67:26: error: tomcrypt_cfg.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:68:29: error: tomcrypt_macros.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:69:29: error: tomcrypt_cipher.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:70:27: error: tomcrypt_hash.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:71:26: error: tomcrypt_mac.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:72:27: error: tomcrypt_prng.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:73:25: error: tomcrypt_pk.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:74:27: error: tomcrypt_math.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:75:27: error: tomcrypt_misc.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:76:29: error: tomcrypt_argchk.h: No
such file or directory
libtomcrypt/src/headers/tomcrypt.h:77:27: error: tomcrypt_pkcs.h: No
such file or directory
In file included from includes.h:125,
                 from dbmulti.c:25:
libtommath/tommath.h:95: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'mp_word'
make[1]: *** [dbmulti.o] Error 1

thanks,
Malcolm.

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

* [Buildroot] TARGET_CONFIGURE_OPTS
  2008-11-14  0:42   ` malcolm blaney
@ 2008-11-14  0:53     ` Thiago A. Corrêa
  2008-11-14  1:07       ` malcolm blaney
  0 siblings, 1 reply; 6+ messages in thread
From: Thiago A. Corrêa @ 2008-11-14  0:53 UTC (permalink / raw)
  To: buildroot

[cut]
> -Wl,/home/malcolm/buildroot/build_i386/staging_dir/usr/lib -mtune=i386
> -march=i386   -c -o dbmulti.o dbmulti.c
> In file included from includes.h:30,
>                 from dbmulti.c:25:
> options.h:436:2: error: #error You must compiled with either
> DROPBEAR_CLIENT or DROPBEAR_SERVER selected
> In file included from includes.h:124,
>                 from dbmulti.c:25:
[cut]

Having the same with avr32.

But the first error about the missing define shouldn't be fixed with
an includepath change AFAIK. Unless it's finding same include with
different contents in the host. Have to try it to make sure.

Kind Regards,
    Thiago A. Correa

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

* [Buildroot] TARGET_CONFIGURE_OPTS
  2008-11-14  0:53     ` Thiago A. Corrêa
@ 2008-11-14  1:07       ` malcolm blaney
  2008-11-14 14:34         ` Thiago A. Corrêa
  0 siblings, 1 reply; 6+ messages in thread
From: malcolm blaney @ 2008-11-14  1:07 UTC (permalink / raw)
  To: buildroot

Hi Thiago,

On Fri, Nov 14, 2008 at 11:23 AM, Thiago A. Corr?a
<thiago.correa@gmail.com> wrote:
> [cut]
>> -Wl,/home/malcolm/buildroot/build_i386/staging_dir/usr/lib -mtune=i386
>> -march=i386   -c -o dbmulti.o dbmulti.c
>> In file included from includes.h:30,
>>                 from dbmulti.c:25:
>> options.h:436:2: error: #error You must compiled with either
>> DROPBEAR_CLIENT or DROPBEAR_SERVER selected
>> In file included from includes.h:124,
>>                 from dbmulti.c:25:
> [cut]
>
> Having the same with avr32.
>
> But the first error about the missing define shouldn't be fixed with
> an includepath change AFAIK. Unless it's finding same include with
> different contents in the host. Have to try it to make sure.

The dropbear makefile adds "-DDROPBEAR_CLIENT -DDROPBEAR_SERVER" to
CFLAGS (along with the include path libtomcrypt/src/headers) so
everything works if dropbear's CFLAGS gets used.

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

* [Buildroot] TARGET_CONFIGURE_OPTS
  2008-11-14  1:07       ` malcolm blaney
@ 2008-11-14 14:34         ` Thiago A. Corrêa
  0 siblings, 0 replies; 6+ messages in thread
From: Thiago A. Corrêa @ 2008-11-14 14:34 UTC (permalink / raw)
  To: buildroot

>> But the first error about the missing define shouldn't be fixed with
>> an includepath change AFAIK. Unless it's finding same include with
>> different contents in the host. Have to try it to make sure.
>
> The dropbear makefile adds "-DDROPBEAR_CLIENT -DDROPBEAR_SERVER" to
> CFLAGS (along with the include path libtomcrypt/src/headers) so
> everything works if dropbear's CFLAGS gets used.


I see... commited as r24038.

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

end of thread, other threads:[~2008-11-14 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-13  4:14 [Buildroot] TARGET_CONFIGURE_OPTS malcolm blaney
2008-11-13 13:07 ` Thomas Petazzoni
2008-11-14  0:42   ` malcolm blaney
2008-11-14  0:53     ` Thiago A. Corrêa
2008-11-14  1:07       ` malcolm blaney
2008-11-14 14:34         ` Thiago A. Corrêa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox