From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 17 18:35:34 2015 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35FEB4DE for ; Tue, 17 Mar 2015 18:35:34 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3D656E6 for ; Tue, 17 Mar 2015 18:35:33 +0000 (UTC) Received: by labjg1 with SMTP id jg1so16462422lab.2 for ; Tue, 17 Mar 2015 11:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Of1P59rKdv4aSS/Bn35Sm3vCcGepUUzLLTFYhF+qEos=; b=W3U0SahYiwh0L670zkCmT5ITxQrFUAK5WPbtO+gUSrw12qrtoW40Nt6pgyzTX/pIrq q0x4qrlFhR/GGMquxM+FjE8STtoYvbH/C29QpI5FsNG3VGNylG6wQ7jIDXlXibD8Pqn6 ZJENf+DZTbdbDUJfd3nCzy2JxGcLvKJpPg38GKxj2IQgOQXeUoBCDmfoNuf1GYcIGgXW 7H81Re1L7oOjRYVr2YkrI4LdyjKzjlTuSyx3CWesJ/+AYcYsB6ZNgYmlNdBCPKUXCXq3 eZMyT0xkzF7RW4qwIlQaJC08GYrcigED5WOoyvBGqZ7uM26ke4yXlk1tix0pnpWM77wE 57Zg== MIME-Version: 1.0 X-Received: by 10.112.62.135 with SMTP id y7mr60720024lbr.50.1426617331666; Tue, 17 Mar 2015 11:35:31 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.25.145.65 with HTTP; Tue, 17 Mar 2015 11:35:31 -0700 (PDT) In-Reply-To: <55082540.1020001@gmail.com> References: <55082540.1020001@gmail.com> Date: Tue, 17 Mar 2015 11:35:31 -0700 X-Google-Sender-Auth: RNojc3w2_g9Kka3DKyiJF-ByAcI Message-ID: Subject: Re: Something missing perhaps? From: Justin Hibbits To: Jukka Ukkonen Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD PowerPC ML X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2015 18:35:34 -0000 These symbol references are generated by the compiler to handle 64-bit atomic operations. I don't think there's currently any support, even in libgcc, for 64-bit atomics on 32-bit powerpc. Something *could* be hacked together to handle it, using a mutex wrapper, but to the best of my knowledge, nobody's done the work for it. - Justin On Tue, Mar 17, 2015 at 5:59 AM, Jukka Ukkonen wrote: > > Hello all, > > I was trying to build kyotocabinet from the ports tree > on an old PowerMac G4 Quicksilver, but the attempt failed > in a very peculiar manner... > Do these complaints from cc ring any bells... > > ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' > ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' > ./libkyotocabinet.so: undefined reference to > `__sync_bool_compare_and_swap_8' > ./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8' > ./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8' > ./libkyotocabinet.so: undefined reference to > `__sync_bool_compare_and_swap_8' > > Those missing names are apparenly being referenced by > work/kyotocabinet-1.2.76/kcthread.cc. Since I failed > to find the definition of these names anywhere in the > kyotocabinet source, I assume the names are used in > some compiler header file. > Were those names really intended to be in the headers > as-is or were they actually some sort of place holders > for something which have then been completely forgotten > for some reason? > > The all important details of the system are... > > # uname -a > FreeBSD yggdrasil 10.1-STABLE FreeBSD 10.1-STABLE #0 r280132: Mon Mar 16 > 06:12:57 EET 2015 root@yggdrasil:/opt2/obj/usr/src-10.1/sys/GENERIC > powerpc > > # uname -KU > 1001510 1001510 > > # freebsd-version -ku > 10.1-STABLE > 10.1-STABLE > > > --jau > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"