pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: way to force using i686... on pkg-config?



On Fri, 21 Jan 2022 at 17:48, Boyd Lynn Gerber <gerberb%zenez.com@localhost> wrote:
>
> Hello,
>
> I can't seem to get past this issue natively I build using
>
> host='i686-unknown-sysv5UnixWare7.1.4'
> host_alias='i686-unknown-sysv5UnixWare7.1.4'
>
> This is what I am seeing.
>
> checking for lock-free atomic intrinsics... configure: error: GLib must
> be build with -march=i486 or later.
> configure: error: ./configure failed for glib
> *** Error code 1
>
> Stop.
> bmake[1]: stopped in /home/build/pkgsrc_build/devel/pkg-config
> WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package
> Makefile.
> *** Error code 1
>
> Stop.
> bmake: stopped in /home/build/pkgsrc_build/devel/pkg-config
>
> In config log I have the following:
>
> host='i486-unknown-sysv5UnixWare7.1.4'
> host_alias='i486-unknown-sysv5UnixWare7.1.4'
> host_cpu='i486'
> host_os='sysv5UnixWare7.1.4'
> host_vendor='unknown'
> htmldir='${docdir}'
>
> Any ideas?

OK, this is due to the following failing to compile/run (whitespace
compacted for email)

int main () {
volatile int atomic = 2;
__sync_bool_compare_and_swap (&atomic, 2, 3);;
return 0;
}

Just to confirm, what happens if you write that to swaptest.c and then run
gcc /tmp/swaptest.c && ./a.out && echo OK
and
gcc -march=i486 /tmp/swaptest.c && ./a.out && echo OK
or
gcc -march=i686 /tmp/swaptest.c && ./a.out && echo OK

David


Home | Main Index | Thread Index | Old Index