Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2020 18:53:07 +0100
From:      Rainer Hurling <rhurlin@gwdg.de>
To:        Nuno Teixeira <ed.arrakis@gmail.com>, <freebsd-ports@freebsd.org>
Subject:   Re: textproc/cast2gif not compiling on i386
Message-ID:  <e6e37524-7ebf-ff1c-aad3-ee69d618bab9@gwdg.de>
In-Reply-To: <CAFDf7UJAQbu_cx%2B=Hb=LSNM_Vg9c0mZ787RtbZN4HafhSjcZBg@mail.gmail.com>
References:  <CAFDf7UJAQbu_cx%2B=Hb=LSNM_Vg9c0mZ787RtbZN4HafhSjcZBg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Nuno,

I think you are right. cargo-crates/font-kit lists only the following
platforms:

  x86_64-unknow-linux-gnu
  x86_64-pc-windows-msvc
  i686-pc-windows-msvc
  x86_64-apple-darwin

ONLY_FOR_ARCHS=amd64 seems right to me.

Greetings,
Rainer


Am 07.12.20 um 08:09 schrieb Nuno Teixeira:
> Hello,
> 
> textproc/cast2gif is not compiling on i386 and "expected `i32`, found
> `i64`" error seems to tell that font-kit rust dependency is not i386
> buildable.
> 
> Should I use ONLY_FOR_ARCHS= amd64?
> 
> Full log
> <http://beefy10.nyi.freebsd.org/data/114i386-default/557100/logs/cast2gif-0.1.0.p1.log>;
> 
> Thanks,
> 
> Nuno Teixeira
> 
> (...)
> 
> error[E0308]: mismatched types
>    --> /wrkdirs/usr/ports/textproc/cast2gif/work/cast2gif-4f76eeb/cargo-crates/font-kit-0.6.0/src/loaders/freetype.rs:811:21
>     |
> 811 |                 yy: matrix.w() as i64,
>     |                     ^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
> 
> error: aborting due to 6 previous errors
> 
> For more information about this error, try `rustc --explain E0308`.
> error: could not compile `font-kit`
> 
> Caused by:
>   process didn't exit successfully: `/usr/local/bin/rustc --crate-name
> font_kit --edition=2018
> /wrkdirs/usr/ports/textproc/cast2gif/work/cast2gif-4f76eeb/cargo-crates/font-kit-0.6.0/src/lib.rs
> --error-format=json --json=diagnostic-rendered-ansi,artifacts
> --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C
> linker-plugin-lto --cfg 'feature="default"' --cfg 'feature="freetype"'
> --cfg 'feature="loader-freetyp
> 
> (...)
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e6e37524-7ebf-ff1c-aad3-ee69d618bab9>