-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

> I have also removed the @BROKEN symbol, as all packages build fine
> here with trunk r28297 for at least BRCM, AR7, x86 and UML
> architectures. I read on the forum that there was some problems
> building the programs but I did not find any reports on which
> architectures were failing or any build logs.

http://openwrt.linux-appliance.net/logs/adm5120_router_be/package/feeds/packages/re/compile.txt
http://openwrt.linux-appliance.net/logs/ar7/package/feeds/packages/re/compile.txt
http://openwrt.linux-appliance.net/logs/ar71xx/package/feeds/packages/re/compile.txt
http://openwrt.linux-appliance.net/logs/atheros/package/feeds/packages/re/compile.txt

... and so on, same for every single architecture. I tried to fix 
"libre" for a while but then it failed later because "re.mk" contained
CFLAGS, LDFLAGS which are completely unsuitable for cross compiling,
so restund failed as well.


A couple of problems I noticed in re.mk:

- - Calling host "uname" during cross compilation -> OpenWrt can be built on 
Darwin
  and FreeBSD, yet the target is Linux

- - The "MACHINE" ID obtained with "$(CC) -dumpmachine" matches none of the 
ones defined in re.mk;
  Not even the mipsel one. Examples of some platforms I built OpenWrt for:

  Example from adm5120/be:
    $ ./staging_dir/toolchain.../bin/mips-openwrt-linux-gcc -dumpmachine
    mips-openwrt-linux-uclibc

  Example from ppc40x:
    $ ./staging_dir/toolchain.../bin/powerpc-openwrt-linux-gcc -dumpmachine
    powerpc-openwrt-linux-uclibc

  Example from kirkwood:
    $ ./kirkwood/staging_dir.../bin/arm-openwrt-linux-gcc -dumpmachine
    arm-openwrt-linux-uclibcgnueabi

  Example from brcm47xx:
    $ ./staging_dir/toolchain.../bin/mipsel-openwrt-linux-gcc -dumpmachine
    mipsel-openwrt-linux-uclibc

- - The "ARCH" detection falls back to "uname" again since none of the 
predefined
  machine IDs are matched, this results in i386 here (since that is the build 
host OS) which
  a) causes a cosmetic issue with the build dir being called "build-i386" 
instead of e.g.
     "build-mipsel"
  b) passes a wrong -DARCH=... to the code

Finally I believe I had issues with the feature detection / CFLAGS (pthread, 
getopt, ...)
while trying to fix re.mk but I don't recall and cannot test due to the issues 
above.


~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5/Qj8ACgkQdputYINPTPMs2ACgolZMYXKS4SLrrh2SFafo3PKt
MmcAnithhdH0TQTbsM6fmPCQpIanLBer
=whqp
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to