Re: OK: rust.spec

2020-10-05 Thread Jakub Bogusz
On Mon, Oct 05, 2020 at 01:12:44AM +0200, Jan Rękorajski wrote:
> On Sun, 04 Oct 2020, PLD th-x32 builder wrote:
> 
> > rust.spec (auto/th/rust-1.44.1-2): OK
> > 
> > --- rust.spec:auto/th/rust-1.44.1-2:
> > upgrading packages
> > Build-Time: user:22480.24s sys:327.35s real:7031.10s (faults io:17 
> > non-io:47582180)
> > 
> > Files queued for ftp:
> >   13348158 rust-debuginfo-1.44.1-2.x32.rpm
> >  10224 zsh-completion-cargo-1.44.1-2.x32.rpm
> >   8428 bash-completion-cargo-1.44.1-2.x32.rpm
> >4034573 cargo-1.44.1-2.x32.rpm
> >   14821218 rust-doc-1.44.1-2.noarch.rpm
> >   8969 rust-lldb-1.44.1-2.noarch.rpm
> >  10439 rust-gdb-1.44.1-2.noarch.rpm
> >   9304 rust-debugger-common-1.44.1-2.noarch.rpm
> >   56994390 rust-1.44.1-2.x32.rpm
> >410 rust-1.44.1-2.src.rpm.uploadinfo
> 
> Unfortunately this build does not produce x32 output.

It appeared that gnux32 ABI is not default for this compiler, one must
add --target=x86_64-unknown-linux-gnux32 to rustc or cargo.

With few hacks (simulating crosscompilation in rust part) and fixing one
vendored package librsvg built as x32.

ow I'm trying with mozjs78, which blocks more packages (e.g. current polkit
or gnome-shell).


-- 
Jakub Boguszhttp://qboosh.pl/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en


Re: OK: rust.spec

2020-10-04 Thread Jan Rękorajski
On Sun, 04 Oct 2020, PLD th-x32 builder wrote:

> rust.spec (auto/th/rust-1.44.1-2): OK
> 
> --- rust.spec:auto/th/rust-1.44.1-2:
> upgrading packages
> Build-Time: user:22480.24s sys:327.35s real:7031.10s (faults io:17 
> non-io:47582180)
> 
> Files queued for ftp:
>   13348158 rust-debuginfo-1.44.1-2.x32.rpm
>  10224 zsh-completion-cargo-1.44.1-2.x32.rpm
>   8428 bash-completion-cargo-1.44.1-2.x32.rpm
>4034573 cargo-1.44.1-2.x32.rpm
>   14821218 rust-doc-1.44.1-2.noarch.rpm
>   8969 rust-lldb-1.44.1-2.noarch.rpm
>  10439 rust-gdb-1.44.1-2.noarch.rpm
>   9304 rust-debugger-common-1.44.1-2.noarch.rpm
>   56994390 rust-1.44.1-2.x32.rpm
>410 rust-1.44.1-2.src.rpm.uploadinfo

Unfortunately this build does not produce x32 output.

Sample from building librsvg on x32:

libtool: link:  x86_64-pld-linux-gnux32-gcc -shared  -fPIC -DPIC  -pthread -O2 
-fstack-protector-strong -mtune=generic -march=x86-64 -Wl,-Bsymbolic-functions 
-Wl,--as-needed
+-Wl,--no-copy-dt-needed-entries -Wl,-z -Wl,relro -Wl,-z -Wl,combreloc   
-pthread  librsvg/.libs/2_la-librsvg-features.o librsvg/.libs/2_la-rsvg-base.o 
librsvg/.libs/2_la-rsvg-handle.o
+librsvg/.libs/2_la-rsvg-pixbuf.o  -Wl,--whole-archive ./.libs/librsvg_c_api.a 
-Wl,--no-whole-archive  -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 
/usr/libx32/libxml2.so -L/usr/libx32
+/usr/libx32/liblzma.so -lpthread -lpangocairo-1.0 -lcairo -lpangoft2-1.0 
-lpango-1.0 -lgobject-2.0 -lglib-2.0 /usr/libx32/libfontconfig.so 
/usr/libx32/libexpat.so /usr/libx32/libuuid.so
+/usr/libx32/libfreetype.so /usr/libx32/libbz2.so /usr/libx32/libpng16.so -lz 
-lharfbuzz /usr/libx32/libbrotlidec.so /usr/libx32/libbrotlicommon.so -lm -ldl 
-Wl,-soname -Wl,librsvg-2.so.2
+-Wl,-version-script -Wl,.libs/librsvg-2.ver -o .libs/librsvg-2.so.2.47.0
/usr/bin/ld: i386:x86-64 architecture of input file 
`./.libs/librsvg_c_api.a(rsvg_c_api-1bb89e3c1c21f1fa.rsvg_c_api.28lfa0sz-cgu.0.rcgu.o)'
 is incompatible with i386:x64-32 output
/usr/bin/ld: i386:x86-64 architecture of input file 
`./.libs/librsvg_c_api.a(rsvg_c_api-1bb89e3c1c21f1fa.rsvg_c_api.28lfa0sz-cgu.1.rcgu.o)'
 is incompatible with i386:x64-32 output
/usr/bin/ld: i386:x86-64 architecture of input file 
`./.libs/librsvg_c_api.a(rsvg_c_api-1bb89e3c1c21f1fa.rsvg_c_api.28lfa0sz-cgu.10.rcgu.o)'
 is incompatible with i386:x64-32 output
[... and so on for all files ...]

-- 
Jan Rękorajski| PLD/Linux
SysAdm | bagginspld-linux.org | http://www.pld-linux.org/
___
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en