Hi Patrick,

Patrick Meyer wrote:
> I've tried two heavily protracted approaches to getting this BSP to
> compile.

The "Phytec-phyCORE-i.MX27-PD11.1.1" board support package is provided by 
Phytec, not by Pengutronix. We made the base of this BSP long time ago, but 
never any of of the "-PD??.?.?" marked BSP archives.

> With the first, I attempted to use the most up to date OSELAS toolchain and
> PTXdist.
>
> selected_platformconfig -> configs/phyCORE-i.MX27-2010.11.1/platformconfig
> selected_ptxconfig -> configs/ptxconfig
> selected_toolchain -> /opt/OSELAS.Toolchain-2012.12.0/bin/
>
> After many hours of spot-corrections, I wound up at this point:
>
> $ ptxdist-2012.12.0 go
> make: *** No rule to make target
> `/home/patrick/Downloads/ptxdist/phyCORE/OSELAS.BSP-Phytec-phyCORE-i.MX27-
> PD11.1.1/configs/phyCORE-i.MX27-2010.11.1/barebox-defaultenv', needed by
> `/home/patrick/Downloads/ptxdist/phyCORE/OSELAS.BSP-Phytec-phyCORE-i.MX27-
> PD11.1.1/platform-phyCORE-i.MX27/state/barebox.prepare'.  Stop.
>
> And am completely unsure where to go from there.

All PTXdist based projects define their external dependencies like a 
corresponding toolchain and a PTXdist version. If you change any of the these 
components you become a developer of the BSP project.
 
> Next, I tried with the exact toolchain and PTXdist versions that
> corresponded with the BSP I'm using (as I've read suggested).
>
> selected_platformconfig -> configs/phyCORE-i.MX27-2010.11.1/platformconfig
> selected_ptxconfig -> configs/ptxconfig
> selected_toolchain -> /opt/OSELAS.Toolchain-2011.02.0/arm-v5te-linux-
> gnueabi/gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/bin
>
> However, I'm now running into a C standards issue.
>
> $ ptxdist-2010.11.1 go
>
> ----------------------------
> target: host-gettext.compile
> ----------------------------
>
> [...]
>
> gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I..  -I../intl -I../intl -
> DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -
> I/home/patrick/ptxdist/OSELAS.BSP-Phytec-phyCORE-i.MX27-PD11.1.1/platform-
> phyCORE-i.MX27/sysroot-host/include  -g -O2 -c -o propername.o propername.c
> In file included from fwriteerror.h:40:0,
>                  from fwriteerror.c:21:
> ./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
> make[6]: *** [fwriteerror.o] Error 1
>
> I figure that since every package except barebox compiled already for the
> first attempt, I'd like to figure that one out. But, I know it's not
> advised to mix versions up like that, so if someone can tell me what to
> do/what patch to apply/how to prevent PTXdist from noticing the source
> changes if necessary, I'd be very grateful.

It is a known issue with more recent host compiler versions. You can solve it 
by back-porting one of the required patches. You should take a look into the 
PTXdist GIT repository for patches for the host-gettext package.

For example commit "e0fa7f37ea3d5d5484f25587ab316aa42b2095bf9" in the PTXdist 
GIT repository may solve your issue.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to