From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com ([209.85.221.54]) by ewsd; Fri Jan 3 10:15:05 EST 2020 Received: by mail-wr1-f54.google.com with SMTP id y17so42770190wrh.5 for <9front@9front.org>; Fri, 03 Jan 2020 07:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:to:subject:date:in-reply-to:mime-version :content-transfer-encoding; bh=gh4+hevtsOUVB0ItiknHs4mzD51q8EK7HPaREF8Btow=; b=Q5PV80X/sGZ3klAkDF2wds3woGgxXyRxRz/wMDh94Nwh3TX17f8TgRjzmZkez5wi+8 Z9NPa6Y6ANCZC0p99eD+1tcNZLsItuRW2igLPG7hoPuf5+c59h3sDNLbxGn2bgJNeply nTZIjL7KwIHSHBtA1XSDxB6cWqvjX8tvrG0Q2istuwvDg14MUklXFyEdqIOysRpWqP9s /VZ9oraT8wVcllF1lvvXIJ9lhtqsXSTYbTdCh2XflUoScHZZZPaupOqTeYHku4VUyXAl m/haTzFtuasnegwgj/qP25eA5a3g8HqGh4kfFQibFs/Rgg9KqzraztcWH2IeCsAM74mb hrVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version:content-transfer-encoding; bh=gh4+hevtsOUVB0ItiknHs4mzD51q8EK7HPaREF8Btow=; b=PEcgoiUtR+Hd7jjZWpGH1liCgK+7+l2u9Ut0B7eWlbBLYF7evlcMB1hKViHa08TYTW iDKGqnk0kNXZMmmll46rMVEVqCH3m/6sP837T7iR2mT4Rrzilc/+Ph7hhFoxfW57D1ZR TMeHyu7DnqJaSJZRmDtazObPyB7dUMJa6fN+/LgZj5kW3xEHqYmM/azWW6U2j3Ldf1ax TcycoHULEp+wKhtAoS9DZneGkC42eZAJU+DZfaCfvXzlPRoVDkvOwoRAlF+8p5/Dijjj QVPlK2TwRONCDv6FY1rtKwub5VwmtYsPnsAEELJcDBvxSIN0faARTF9yz0L7Gn9JpYsC MkYg== X-Gm-Message-State: APjAAAUWLwrdLpgUQ5xMDg7jMXItsakNn0r/XjlxAc43YiwvJPD9cIkG g2vw5hR+RIDJiAC3u/TGd/Y= X-Google-Smtp-Source: APXvYqx9iXIcKVR4CjD7yrW405eZ3D0THQskvGlHIAEuvOeuizhKIUK1fjowdeI/wkULmzsmmB1lRQ== X-Received: by 2002:a5d:6a02:: with SMTP id m2mr85616825wru.52.1578064501398; Fri, 03 Jan 2020 07:15:01 -0800 (PST) Return-Path: Received: from hades (lfbn-idf1-1-352-97.w86-195.abo.wanadoo.fr. [86.195.7.97]) by smtp.gmail.com with ESMTPSA id r68sm11468785wmr.43.2020.01.03.07.15.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Jan 2020 07:15:00 -0800 (PST) From: telephil9@gmail.com X-Google-Original-From: pme@gmail.com Message-ID: To: ori@eigenstate.org, telephil9@gmail.com, jamos@oboj.net, 9front@9front.org Subject: Re: [9front] Netsurf 3.9 for Plan 9 (work in progress) Date: Fri, 3 Jan 2020 16:14:59 +0100 In-Reply-To: <36072004F338AD25E8C15183B7B28397@eigenstate.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: just-in-time configuration-based SSL over JSON replication cloud app >>> Hi, >>> >>> For me, it does not even build. I get surprising errors from pcc: >>> ??none??: nsglobe.8: opcode out of range 25710 >>> probably not a .8 file >>> pcc: 8l: 8l 182088: error >>> mk: pcc -I ../include ... : exit status=rc 182050: pcc 182059: 8l: 8l 182088: error >>> ??none??: nsglobe.8: opcode out of range 25710 >>> probably not a .8 file >>> pcc: 8l: 8l 182089: error >>> ??none??: nsglobe.8: opcode out of range 25710 >>> probably not a .8 file >>> pcc: 8l: 8l 182090: error >>> ??none??: nsglobe.8: opcode out of range 25710 >>> probably not a .8 file >>> pcc: 8l: 8l 182091: error >>> >>> My 9front install is fairly up to date if that matters. >>> >>> Regards, >>> Philippe >> >> Forgot to mention the error is in libnsfb tests. >> When I skip this step, I got the browser building and running. > > Race condition in the mkfile: multiple rules try to output to > nslglobe.6 when the build is run in parallel, which works poorly. > > Try this version of the mkfile: > > > CC=pcc > DST=$O.frontend $O.polygon $O.polystar $O.plottest $O.text-speed $O.bitmap $O.path $O.rgb > > HFILES=\ > ../include/libnsfb.h ../include/libnsfb_cursor.h ../include/libnsfb_event.h \ > ../include/libnsfb_plot.h ../include/libnsfb_plot_util.h > > > CFLAGS=-I ../include -I . -I ../../posix/include \ > -D_POSIX_SOURCE -D_RESEARCH_SOURCE > > LIB=../src/libnsfb.$O.a > > > all:V: $DST > > $O.%: %.$O nsglobe.$O $HFILES $LIB > $CC -o $target $CFLAGS $stem.$O nsglobe.$O $LIB > > %.$O: $HFILES # don't combine with following %.$O rules > > %.$O: %.c > $CC -c $CFLAGS $stem.c > > clean:V: > rm -f $DST frontend.$O polygon.$O polystar.$O plottest.$O text-speed.$O rgb.$O \ > bitmap.$O globe.$O nsglobe.$O path.$O > > The mkfiles should really be converted to use a common mk include for these patterns. > If not /sys/src/cmd/mkmany, then at least ../../ns{lib,many}. That was it! Thanks Ori