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 Saturday 2022-01-22 12:51, David Brownlee wrote:
On Fri, 21 Jan 2022 at 17:48, Boyd Lynn Gerber <gerberb%zenez.com@localhost> wrote:
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
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;
}
gcc /tmp/swaptest.c && ./a.out && echo OK
$ gcc /tmp/swaptest.c && ./a.out && echo OK
/var/tmp//ccLlWqFA.o: In function `main':
swaptest.c:(.text+0x24): undefined reference to
`__sync_bool_compare_and_swap_4'
collect2: error: ld returned 1 exit status
gcc -march=i486 /tmp/swaptest.c && ./a.out && echo OK
$ gcc -march=i486 /tmp/swaptest.c && ./a.out && echo OK
OK
gcc -march=i686 /tmp/swaptest.c && ./a.out && echo OK
$ gcc -march=i686 /tmp/swaptest.c && ./a.out && echo OK
OK
Regards,
--
Boyd Gerber <gerberb%zenez.com@localhost> 801 849-0213
ZENEZ 1042 East Fort Union #135, Midvale Utah 84047
Home |
Main Index |
Thread Index |
Old Index