**** BEGIN LOGGING AT Wed Apr 29 02:59:57 2020 Apr 29 03:00:25 gentooman? Apr 29 03:02:04 Last time I installed Chrome it took over my browser. Not nice. Apr 29 03:02:13 KenUnix: for me it works fine in chrome: https://photos.app.goo.gl/1LBJ4Yx5ZPpRLAnS8 and in firefox: https://photos.app.goo.gl/eSaPJHKhUG7rQuU77 Apr 29 03:02:31 "took over your browser" ? Apr 29 03:02:39 Firefox 75 is what I have Apr 29 03:02:42 any browser will usually ask if you want it to be the default browser Apr 29 03:03:29 this is 74 still but I doubt it matters... I can update it just to check Apr 29 03:03:47 Beaglebone boxes Apr 29 03:04:30 ? Apr 29 03:05:36 ok just tested it, works fine in firefox 75 too Apr 29 03:05:40 The photos Beaglebone boxes Apr 29 03:06:10 ? Apr 29 03:06:20 what? Apr 29 03:06:47 I have no idea what you're trying to communicate, not even if it's a question or a remark Apr 29 03:06:58 https://photos.app.goo.gl/1LBJ4Yx5ZPpRLAnS8The links you put up Apr 29 03:07:15 yeah, quick videos showing the site works fine on my laptop Apr 29 03:08:28 what about them? Apr 29 03:08:41 I wonder what setting in FF is causing this. Bt Edge & IE same thing Apr 29 03:09:52 I wonder what setting in FF is causing this. But Edge & IE same thing Apr 29 03:13:02 looking at the source code, it appears that it might break if you're blocking traffic to google analytics Apr 29 03:13:41 I use fire fox currently but not opera. Haven't used opera in 6 years. Apr 29 03:13:54 I don't use chrome. Apr 29 03:14:09 Yes I am. OK let me try with that enabled Apr 29 03:17:18 they should probably change that to ensure it's also posted after timeout (like the google analytics documentation strongly urges you to do) Apr 29 03:19:34 or better yet, just make them normal links so open in new tab works :P Apr 29 03:19:41 OK I had to bisable Ghostery and enable site.analytics for scritping. This ca't stand Apr 29 03:21:18 KenUnix: it's dumb trying to prevent sites from collecting analytics via google... there's absolutely nothing you can do to prevent sites from collecting analytics in general and it's really not your business to decide a site is not allowed to use some particular analytics provider Apr 29 03:23:17 I'll agree it's also pretty bad that the links break if GA can't be reached, but no doubt there are more websites that break in subtle or unsubtle ways if you block GA Apr 29 03:32:32 OK I white listed bbb.io and enabled scripts for site analytics Apr 29 03:32:36 google analytics I ALWAYS BLOCK and no I have had almost no websites go nuts for blocking it. Apr 29 03:33:11 It works this way Apr 29 03:33:13 probably because I use noscript which does some substitution for GA scripts Apr 29 03:34:15 GenTooMan: probably it just pretends all submissions to GA are successful (without actually sending anything) Apr 29 03:34:33 I set site.anal to conditionally ok in no script Apr 29 03:35:18 What about bbb.io make site.anal so anal Apr 29 03:37:19 when tracking links (using anything other than html5) you have to wait until the tracking has been confirmed before the page can be navigated to the final destination, you can't simply asynchronously trigger your analytics since when the window navigates away to another site anything you were doing asynchronously will be killed Apr 29 03:37:29 *using anything other than html5 ping Apr 29 03:37:54 this is true regardless of how it's done, not GA-specific Apr 29 03:39:25 You know I have a feeling I have been here before in the late 2000's Apr 29 03:40:08 OK at least they are controlled Apr 29 03:40:50 Fricking nosey gooogle, big brother Apr 29 03:41:13 KenUnix: this has nothing to do with google, this is beagleboard.org wanting to track how many people follow the links to which distributor Apr 29 03:41:40 they're just using google to collect their statistics for them, instead of having to set something up for it themselves Apr 29 03:42:22 Do you really think look at the data? Apr 29 03:44:19 Gotta go. Good nigh. It's been another fun night. Apr 29 03:44:19 yes! Apr 29 03:44:26 Okay. Later! Apr 29 03:44:34 looks like a chunk of your sentence is missing. however again, it's not something google is doing, it's something beagleboard.org chose to implement Apr 29 03:44:57 google isn't snooping, beagleboard.org is sending data to them for analysis Apr 29 03:45:40 Gotta go. Good night. It's been another fun night.:b :b Apr 29 03:49:20 google actually also offers an extension to block google analytics: https://chrome.google.com/webstore/detail/google-analytics-opt-out/fllaojicojecljbmefodhfapmkghcbnh (and their service agreement forbids website owners from attempting to circumvent it) Apr 29 03:51:31 right... not that it has ever stopped someone from doing something like that. Apr 29 03:52:01 there's intrinsically nothing you can do to prevent a website owner from collecting analytics Apr 29 03:52:14 cookies? Apr 29 03:52:42 but google does forbid website owners to use Google Analytics for that purpose unless they comply with a bunch of requirements Apr 29 03:53:17 I wanted to use google analytics for a bunch of stuff years ago. Too much of a headach to comply w/ everything. Apr 29 03:53:45 I really don't see google as being the boogyman here... Apr 29 03:54:18 Maybe not but conforming to another person's or peoples' ideas is overwhelming. Apr 29 03:54:35 ? Apr 29 03:54:57 You make rules, I make rules, groups make rules. Apr 29 03:55:10 ? Apr 29 03:55:22 It just seems like not every piece of interior rule was meant for the general public. Apr 29 03:55:34 I have absolutely no idea what you're trying to say Apr 29 03:55:52 Okay. Apr 29 03:55:54 Okay. Apr 29 03:58:56 I found something promising for webscraping on github. Apr 29 03:59:04 bs4! Apr 29 04:05:03 sort of like a PS4 only... hmm Apr 29 04:07:00 GenTooMan: How is the Cape coming along? Apr 29 10:39:09 hi , i have debian 8 try to enable the SPIDEV0 in th Apr 29 10:39:55 debian 8 is ancient and obsolete Apr 29 10:46:10 sorry , i use debian 9.12 and try to enable SPIDEV0 in the BBB Apr 29 10:47:32 if i use the Example in Adafruit , i get this output : [0,0,0,0] Apr 29 10:47:48 from Adafruit_BBIO.SPI import SPIspi = SPI(1,0)print(spi.xfer2([32, 11, 110, 22, 220]))spi.close() Apr 29 10:50:04 have you configured the pins? Apr 29 10:51:28 actually I need to go, but perhaps someone else can help you Apr 29 10:51:29 afk Apr 29 10:52:09 if i right "ls ./spi*" i have the output "enable-spi.py" Apr 29 10:53:30 zmatt : i try to configured it Apr 29 11:00:05 zmatt : OK thanks , maybe another person can help me ! Apr 29 11:58:54 hi , i have a problem if i will configure the SPI , can you help me ? Apr 29 11:59:40 if i run ls ./spi* , i get this answer ls: cannot access ./spi*: No such file or directory Apr 29 12:34:12 module not loaded? Apr 29 12:35:21 veremitzwhich module ? Apr 29 12:35:31 veremitz : which module ? Apr 29 14:35:37 hi , how can i loading cape-universal in Debian9 ? Apr 29 15:27:31 jan34: it should be enabled by default Apr 29 15:28:38 if you're booting from sd card, beware that the presence of an old system on eMMC (specifically an old bootloader) can cause all sorts of weird problems, including malfunctioning of cape-universal (due to the old bootloader on eMMC being unable to understand the directives in /boot/uEnv.txt on a new system) Apr 29 15:31:11 in general I recommend either flashing the system to eMMC, or if you need/want to continue booting from SD card instead then I recommend erasing eMMC (using: sudo blkdiscard /dev/mmcblk1) Apr 29 15:35:26 if that doesn't fix the problem (or if you're not running from SD card in the first place) then please run sudo /opt/scripts/tools/version.sh and share its output via a paste service like pastebin.com and I'll take a look at it when I get back from shopping Apr 29 15:36:13 (if your beaglebone has internet access then you can even more conveniently do "sudo /opt/scripts/tools/version.sh | pastebinit" to create a sharable link from the output of the script) Apr 29 15:36:17 bbl Apr 29 15:59:52 zmatt : thanks for your replay : Apr 29 16:00:06 zmatt : http://paste.debian.net/1143750/ Apr 29 16:44:25 I want to run flask server on beaglebone and then i have a sensor connected on the ethernet port. I have some c codes that communicate with the sensor. I want to fetch data from these c codes into webbrowser. Can anyone give some pointers or suggest libraries to run c codes through python. Apr 29 16:55:34 deepankarmaithani: a bit hacky, but https://cffi.readthedocs.io/en/latest/ will let you build a prototype. Apr 29 16:56:22 ultimately, you'll just want to make a native C module https://docs.python.org/3/extending/extending.html Apr 29 16:58:18 jkridner: Thanks alot. it seems, it will do the job for me, will study it. :) Apr 29 17:53:45 jan34: that shows cape-universal is enabled Apr 29 17:54:27 jan34: but you also have two overlays enabled (BB-SPIDEV0 and BB-SPIDEV1) so cape-universal will be disabled for the pins used by those overlays Apr 29 17:55:38 deepankarmaithan: you could also make the C code a separate executable that's invoked by python, or it could run as a service and communicate via flask in various ways Apr 29 17:59:30 jan34: you're doing something with the 3d gpu? I just noticed you're using the ImgTec image Apr 29 18:13:48 zmatt : hi , no i would like to use SPI , but i have a strange output Apr 29 18:14:07 jan34: you're using a really weird non-standard image, why? Apr 29 18:14:23 it was mistake Apr 29 18:17:40 jan34: please use the latest image (second link from the top at https://beagleboard.org/latest-images ) Apr 29 18:23:27 let me confirm a known-good way to use spi, one moment Apr 29 18:35:11 zmatt : Ok i will flashing the the latest image Apr 29 18:35:29 https://pastebin.com/nS6FELGH Apr 29 18:35:34 I've tested that this works Apr 29 18:39:25 jan34: I've tested all three options for configuring the pins, and both ways to use the spi device in python3 Apr 29 18:39:38 so you can pick whichever you prefer Apr 29 19:49:52 e Apr 29 19:54:01 zmatt : i tried to run the first option , tho Output ist [0,0] Apr 29 20:29:16 zmatt : i tried also the second option , the Output is too [0,0] Apr 29 20:57:46 <_axu_> hello! Apr 29 20:58:54 <_axu_> i am stuck for 3 days trying to get my bbb to talk to an "external" i2c device but i just cant get i2cdetect to see it Apr 29 20:59:16 <_axu_> i use a standard beaglebone black Linux beaglebone 4.1.15-ti-rt-r43 #1 SMP PREEMPT RT Thu Jan 21 20:13:58 UTC 2016 armv7l GNU/Linux Apr 29 20:59:29 <_axu_> connected to every possible i2c pin Apr 29 20:59:32 <_axu_> nothing Apr 29 21:00:21 <_axu_> also editig uEnv.txt and adding cape_enable=bone_capemgr.enable_partno="BB-I2C0,BB-I2C1" did not fix that Apr 29 21:00:30 <_axu_> i seem to miss something basic Apr 29 21:00:49 <_axu_> also this capes, overlays devicetree thing still confiuses me Apr 29 21:01:06 <_axu_> pinmux seems to be straightforward Apr 29 21:01:37 <_axu_> any advice, anyone? Apr 29 21:02:15 <_axu_> the i2c device is a 3.3v device, htu21d it works fine when testing it via a beaglebone and logiclevelshifter Apr 29 21:02:53 Does the device have the correct pullups on it? Apr 29 21:03:38 <_axu_> mhm Apr 29 21:04:24 they were pulled 3.3V? and they were 1 to 3.3 k? Apr 29 21:04:30 <_axu_> gentooman: didnt thnk about that :) very good point Apr 29 21:05:10 <_axu_> no pullups i think, but nontheless working with arduino, maybe internal pullups, lets see, ill search for some resistors and tre :) Apr 29 21:05:23 I would check with your dvm (carefully) on your test device to avoid shorting the BBB bus pins Apr 29 21:10:08 <_axu_> ill do, just need to find resistors :) Apr 29 21:11:16 I'll keep bad puns from punishing you ... Apr 29 21:38:03 <_axu_> two time 4,5k pullups, nothing :( Apr 29 21:38:49 <_axu_> actually 2 times 3 1,5k resistors in groups of 3 Apr 29 21:56:02 what voltage do you see on the I2C bus it should read 3.3V Apr 29 21:56:40 I just got this odd linear actuator! Apr 29 21:56:48 Time to party! Apr 29 22:21:34 part E? which part is that? Apr 29 22:28:07 JIECANG! Apr 29 22:28:54 I am testing this linear act. now and it is not returning anything. I have two wires, i.e. like a dc motor has. Apr 29 22:29:11 But...one is white and the other is black w/ white stripe. Apr 29 22:29:53 What do you believe is the correct way to wire this pup up? Apr 29 22:30:29 I mean...it does not matter b/c I can change the direction of the motor but I do not have a pot on me right now. Apr 29 22:32:08 <_axu_> set_:id say it downst matter since you do h bridge control Apr 29 22:36:00 Right! Apr 29 22:36:09 I have the MotorCape to use, too. Apr 29 22:36:29 it would still be nice if the co. put this info. in a datasheet. Apr 29 22:37:43 _axu_: "cape_enable=bone_capemgr.enable_partno" .. that way of enabling overlays has been obsolete for many years Apr 29 22:43:16 Pushing instead of rolling is nice! Apr 29 22:43:41 Think of a push/pull bot, yee! Apr 29 22:43:58 Should I do it? Apr 29 22:45:01 <_axu_> zmatt: i simply dont get the devicetree stuff Apr 29 22:45:14 <_axu_> capemanager and such... Apr 29 22:45:26 <_axu_> so much information nothing works for me. Apr 29 22:49:13 <_axu_> but i check with a raspberry, with and without pullups, and then a trinklet, and afterwards an stm, and if all work i come back to beaglebone :) Apr 29 22:55:51 That 12v battery did it. It works! Apr 29 22:56:08 chu, chu, chu, chu, chu <<< this is the sound it makes when moving. Apr 29 22:56:21 simple things make me happy. yea! Apr 29 22:57:33 I will go and make a post in case other people want to know how to use Push/Pull mechanisms for items of interest. Apr 29 22:59:07 The dang thing beeps too. Apr 29 23:03:43 _axu_: I'll get back to you in a moment Apr 29 23:07:42 there, posted an issue-report about bonescript Apr 29 23:09:36 _axu_: the i2c bus on P9.19 (scl) + P9.20 (sda) is enabled by default and has pinmux configured correctly by default, so you can use it (/dev/i2c-2) without any special setup Apr 29 23:11:57 <_axu_> ok Apr 29 23:12:01 _axu_: you will need pull-ups on both lines of your i2c bus, iirc 4.7 kΩ is a typical value. The bbb does have internal pull-ups enabled by default on those pins, but those are just to keep the pins from floating, they are way too weak (100 kΩ ±50%) to function as i2c bus pull-ups Apr 29 23:13:28 <_axu_> zmatt: ok, thanks! ill revert to default config and then try again with my 4.5k pullups Apr 29 23:13:43 pull up to 3.3V of beaglebone obviously Apr 29 23:14:23 <_axu_> obviously :) Apr 29 23:15:27 btw be careful with i2cdetect... i2c is in general not a discoverable bus, and i2cdetect just attempts to perform an i2c transfer to each scanned address while praying this has no harmful effects Apr 29 23:18:17 and usually it doesn't, but there's no guarantee for that. the manpage notes that of the two types of transfers it uses to probe for devices, one is known to corrupt a certain type of EEPROMs and the other is known to cause some i2c devices to lock up the bus Apr 29 23:18:43 and iirc I've encountered a device that no longer responded to any i2c requests after performing an i2cdetect Apr 29 23:18:44 <_axu_> mhm, ok, so nomore i2cdetect Apr 29 23:19:08 preferably just perform a transfer that's correct for your device Apr 29 23:19:17 e.g. using i2cget Apr 29 23:19:22 what device is it? Apr 29 23:19:25 <_axu_> yeah, seems the way to go Apr 29 23:19:32 <_axu_> htu21d Apr 29 23:19:39 <_axu_> temp/hum sensor Apr 29 23:20:24 (also, addresses 0x54 - 0x57 on the beaglebone's i2c-2 bus are reserved for cape identification eeproms) Apr 29 23:22:28 <_axu_> should be 0x40 Apr 29 23:24:58 i2cget -y 2 0x40 0xE3 w Apr 29 23:24:59 maybe Apr 29 23:25:46 if it fails, be sure to also check kernel log (journalctl -k -f) Apr 29 23:26:37 <_axu_> ok, still cleaning up all the changes i made Apr 29 23:30:34 <_axu_> zmatt: haha, thanks Apr 29 23:30:38 <_axu_> that was it Apr 29 23:30:40 <_axu_> :) Apr 29 23:34:13 <_axu_> zmatt: something got fcked up by i2cdetect. :) Apr 29 23:37:19 _axu_: just curious, does whatever breakout you're using for the htu21d not have integrated pull-ups? Apr 29 23:37:33 <_axu_> it may have Apr 29 23:37:37 <_axu_> :) Apr 29 23:37:48 <_axu_> no, it has Apr 29 23:37:54 <_axu_> spparkfun breakout Apr 29 23:38:48 yeah it has 4.7.k pullups (which can be disconnected by clearing a solder-jumper): https://cdn.sparkfun.com/datasheets/Sensors/Weather/SparkFun_Si7021_Breakout.pdf Apr 29 23:39:53 also be careful with hotplugging devices on i2c, it's not designed for that either, and glitches can definitely also confuse devices. (in fact glitches usually also lock up the i2c controller on the am335x, but the kernel driver will detect that and reset the controller to fix it) Apr 29 23:40:07 <_axu_> i was just mistakenly trusting in a tool i dont know Apr 29 23:40:47 <_axu_> yeah i was looking into pru i2c for matters of stability and such Apr 29 23:40:57 using pru for i2c seems silly Apr 29 23:41:00 <_axu_> or fast kill and reload for that matter Apr 29 23:41:27 I think the kernel driver handles i2c just fine Apr 29 23:41:35 <_axu_> maybe, im just phantasizing Apr 29 23:42:24 i2c would be a waste of pru's time... it's so slow :P Apr 29 23:43:06 <_axu_> true :) but i dont have a use for it anyways :) Apr 29 23:44:00 also. bidirectional buses a somewhat tricky for pru since it cannot change the direction of direct pru gpio (their direction is part of pinmux config), so you'd instead have to use edio or normal gpio Apr 29 23:44:07 *are somewhat Apr 29 23:44:30 (or you'd need an external buffer with output-enable) Apr 29 23:45:30 <_axu_> well, since i havent even started hitting the linux kernels i2c drivers walls ill go with it for a while :) Apr 29 23:46:00 and based on the htu21d's documented protocol, I think I can guess why i2cdetect doesn't see it: it most likely tries to perform a read, but the htu21d probably only acknowledges a read after a command has first been given Apr 29 23:47:12 I mean, making pru do i2c would still be pretty easy, if you actually have some need for it Apr 29 23:47:30 Hi, how to enable UART2 on pocketbeagle and save enabled state after reboot? sudo config-pin P1_08 uartsudo config-pin P1_10 uart works only till reboot. Apr 29 23:47:30 <_axu_> on arduinos its just a Wire.beginTransmission(0x40); Apr 29 23:47:56 _axu_: an adruino is not really the same as a linux system ;P Apr 29 23:48:01 nor as pru Apr 29 23:48:21 <_axu_> zmatt: yes, as you said, its way overpowered for such task, but bitbanging is what it does good as far as i read Apr 29 23:48:26 Siegurd: yeah, config-pin is designed to be convenient for experimenting, but it's not persistent Apr 29 23:48:43 <_axu_> zmatt: i know, but the simple i2c detect loop i thought was kind of universal Apr 29 23:49:37 <_axu_> cry out every poissible device name and wait for something Apr 29 23:49:46 _axu_: it really isn't. like I mentioned it has two types of probe, and by default the probe it uses varies per slave address based on its best guess of what will work and not fuck stuff up Apr 29 23:50:15 but a guess is all it is Apr 29 23:50:38 <_axu_> zmatt: getting less dumber from day to day :) Apr 29 23:51:35 _axu_: and yeah, pru is pretty decent at bitbanging... it can bitbang signals with 5ns timing resolution Apr 29 23:52:07 <_axu_> lightning Apr 29 23:53:46 another nice showcase of PRU is "BeagleLogic", which is some pru software that turns your beaglebone into a 12-channel 100Msps logic analyzer Apr 29 23:54:10 <_axu_> yeah :) i know, "built it" too, and used it Apr 29 23:54:25 <_axu_> but i need the bone for other things now :) Apr 29 23:54:36 ah. ever looked at its firmware? that samplerate means it has to sample every other pru clock cycle, which makes offloading the data an interesting exercise :) Apr 29 23:54:51 <_axu_> but its great, with sigrok protocoll analyzers, very practile Apr 29 23:54:58 <_axu_> before i used a sealogic Apr 29 23:55:04 <_axu_> no comaprison Apr 29 23:55:11 <_axu_> also, not live Apr 29 23:55:38 especially since a store instruction (to memory) takes more than 1 cycle (specifically 1+n cycles to write n words assuming no stalls) Apr 29 23:55:52 <_axu_> magic Apr 29 23:57:19 <_axu_> i hvent looked into its firmware :) i just downlaoded, breadboarded and used it :) Apr 29 23:58:19 zmatt, When you get a minute I'm having a problem Apr 29 23:58:28 _axu_: this is the 100Msps (2 bytes per sample) loop for pru1: https://github.com/abhishek-kakkar/BeagleLogic/blob/master/firmware/beaglelogic-pru1-core.asm#L67-L104 Apr 29 23:58:51 sorry the loop starts at line 72, not 67 Apr 30 00:00:02 it samples every other cycle, and in between samples it squeezes some code (consisting of single-cycle instructions only obviously) that tosses the data to the other pru core in blocks of 36 bytes (18 samples) Apr 30 00:00:16 and the other core then writes those blocks out to memory Apr 30 00:00:23 <_axu_> zmatt: within the nops'? Apr 30 00:00:34 <_axu_> nopsynced Apr 30 00:00:55 the nops are just to fill the space between sampling instructions when it has nothing else to do Apr 30 00:01:59 so it always samples every other cycle, i.e. at 100 Msps Apr 30 00:02:59 <_axu_> i really dont have a clou about asm, but this R31.w0 is the one holding the sampled data and gets processed during nopes, really just reading coffee grounds Apr 30 00:05:08 In Linux a program with no-ops will that allow the kernel to give time to another running task? Apr 30 00:11:26 <_axu_> well, it has been a pleassure. Apr 30 00:12:01 https://www.hackster.io/functt/beaglebone-black-wireless-motorcape-and-linear-actuator-89abf1 <<< I did it. Do not laugh. Apr 30 00:12:09 <_axu_> thanks gentooman, zmatt, have a nice one everyone Apr 30 00:12:11 <_axu_> cu Apr 30 00:16:45 KenUnix: nops are just code, your program would still be busy executing nops Apr 30 00:17:24 linux will give time to other tasks anyway regardless, but if you have nothing to do for a while you should block Apr 30 00:17:46 i.e. perform a synchronous kernel call Apr 30 00:20:08 in all but the smallest programs it's often useful to use an event handling library, which lets you arrange for callbacks to be invoked on certain events (e.g. timers and socket activity), and whenever no event is available to dispatch it will block your program until one is Apr 30 00:20:39 that way the kernel won't switch to your program unless your program actually has something to do Apr 30 00:23:52 actually "all but the smallest programs" is wrong... some types of program have no use for event handling no matter how large they are (e.g. a compiler) Apr 30 00:25:04 but services and interactive programs (basically anything that is often running without necessarily having anything to do right away) typically have use for one Apr 30 00:29:08 zmatt, I'm having a problem perhaps you could help Apr 30 00:32:43 I have been trying to finish up thie "bwbasic" package. Now BOTH fine on a BBB. When copied over to Ubunto the original compile script run fines but the Makefile craps out. I can paste the compile file the Makefile and the errors file? Apr 30 00:33:55 Unless make on the BBB and Ubuntu work differently Apr 30 00:37:04 set_ we can laugh with you maniacally if you want? Apr 30 00:37:22 THat is okay too! Apr 30 00:38:10 zmatt ?? Apr 30 00:38:41 wha ha ha ha. Apr 30 00:44:39 You guys familiar with Makefiles ? Apr 30 00:44:44 kenunix you may wish to type something like make -v Apr 30 00:44:56 so as you know what version of make you are using. Apr 30 00:45:41 Both the BBB an Ubuntu are version 3 but the BBB has a newer date Apr 30 00:46:22 I have 4.2.1 it should say GNU Make M.M.R Apr 30 00:46:41 major.minor.revision Apr 30 00:46:55 set_ I been tied up trying to finish this bwbasic package Apr 30 00:47:45 I am going to learn about some .js libraries some more one day. Apr 30 00:48:05 BBB - GNU Make 4.2.1Built for arm-unknown-linux-gnueabihfCopyright (C) 1988-2016 Free Software Foundation, Inc. Apr 30 00:48:07 I think someone in here mentioned vue.js once. I should try it out. Apr 30 00:48:36 right that's what I have check uclonedebian? Apr 30 00:49:02 Ubuntu - GNU Make 4.2.1Built for arm-unknown-linux-gnueabihfCopyright (C) 1988-2016 Free Software Foundation, Inc. Apr 30 00:49:36 Ok all the same sounds too me. Apr 30 00:49:47 are the make files different? Apr 30 00:50:10 No wait - Ubutnu GNU Make 4.2.1Built for arm-unknown-linux-gnueabihfCopyright (C) 1988-2016 Free Software Foundation, Inc. Apr 30 00:50:36 Who taught you two how to communicate? Apr 30 00:50:37 Ha. Apr 30 00:50:42 Dame I can't copy pastre from within a virtual vindow wait Apr 30 00:51:05 you doing that in QEMU? Apr 30 00:51:35 Ubuntu - GNU Make 4.1Built for x86_64-pc-linux-gnuCopyright (C) 1988-2014 Free Software Foundation, Inc. Apr 30 00:52:12 X server not qemu Apr 30 00:52:55 So now you have both versions Apr 30 00:53:01 so unbuntu is using 4.1 and everything else is 4.2.1 Apr 30 00:53:36 It fails on Ubuntu 18.04 and 20.04 Apr 30 00:54:09 Hey. How can I start a cheap-o, depot package.json file? Apr 30 00:54:16 Spose I could try Linux but the will take a few minutes setup time. Apr 30 00:54:41 Spose? Oh. suppose. I got it. Apr 30 00:54:47 Sorry. Apr 30 00:54:53 Ubuntu is supposed to be linux... that's kind of odd. Apr 30 00:54:58 Spose I could try Linux Mint but the will take a few minutes setup time. Apr 30 00:55:24 Stop saying SPose. Apr 30 00:55:27 I don't think the make version is different enough to be an issue. Apr 30 00:55:30 spose not. Apr 30 00:55:34 Aw! Apr 30 00:56:00 I am going to dive my face in a vue.js tutorial. Apr 30 00:56:01 how are you generating the make file? are you using cmake auto tools... Apr 30 00:56:18 don't get paper cuts those really hurt. Apr 30 00:56:29 Got too many taks running on my laptop don't think enough memory to file up VM Apr 30 00:58:15 heh.. I have 8gigs on this machine, newer version of firefox are eating twice as much memory on it. I would say firefox has become a bug more than anything now. Well it's funded mostly by google so it's probably bugged in more was than just programming. Apr 30 00:58:25 Here is the Makefile. It works on BBB. I made it http://paste.ubuntu.com/p/V63dd7xvF7/ Apr 30 00:59:25 I thought Google was Chrome Apr 30 01:00:36 Here is the script file http://paste.ubuntu.com/p/YnMpV3Xgvp/ Apr 30 01:01:58 And here are the errors http://paste.ubuntu.com/p/dZyvDQmcMD/ Apr 30 01:01:58 Google funds firefox 70% of the companies (yes it's a company) they have a seperate part that handles open source related things. Apr 30 01:02:26 look it up on wikipedia it will make more sense. Apr 30 01:03:05 What do you think about the Makefile, compile script and errors file ? Apr 30 01:05:01 hmm what makefile? Apr 30 01:05:22 Here is the Makefile. It works on BBB. I made it http://paste.ubuntu.com/p/V63dd7xvF7/ Apr 30 01:06:07 set_ I'm screwed if I can't fix this Apr 30 01:06:28 Why? Apr 30 01:06:45 Why are you messed up if you cannot fix the Makefile? Apr 30 01:06:53 I will go and read it. Apr 30 01:07:14 I can't roll out package is make is broke Apr 30 01:07:22 Oh. Apr 30 01:07:23 Okay. Apr 30 01:07:24 I can't roll out package if make is broke Apr 30 01:07:28 Hmm. Apr 30 01:07:55 I am looking at it now. Maybe you can try a tutorial. I can try to help but I do not know each file you are trying to make. Apr 30 01:08:06 It's a simple makefile. pretty basic why work on BBB and not Ubuntu Apr 30 01:08:35 B/c...you are making on arm versus a different arch. Right? So, maybe you need another updated version? Apr 30 01:08:50 Let me fire up Linux Mint and try it there Apr 30 01:09:09 KenUnix: I think it is the arch. and not the OS. Apr 30 01:09:29 What the errors point to don;t make sense Apr 30 01:09:41 Okay. Let me see Apr 30 01:09:43 . Apr 30 01:09:51 Show the errors. Apr 30 01:09:58 And here are the errors http://paste.ubuntu.com/p/dZyvDQmcMD/ Apr 30 01:10:35 ldconfig once the files have changed? Apr 30 01:10:45 I am sure you keep changing them. Apr 30 01:11:32 So, if you change bwb-rint.c 10 times, ldconfig needs be used 10 times if you are using make to compile them. Apr 30 01:11:53 But...that is if you are only trying to compile each time you change the file. Apr 30 01:12:21 I had an issue w/ PocketSphinx the other day. Apr 30 01:12:24 And... Apr 30 01:12:38 That was the issue when I was using make to compile. I changed the file w/out running ldconfig. Apr 30 01:13:12 And I completely erased the file basically to nothing to compile w/ make w/out ldconfig. Apr 30 01:13:13 Oops! Apr 30 01:14:00 kenunix is their a path issue? It looked like it couldn't find some information to link in Apr 30 01:14:15 Aw! Apr 30 01:14:46 they all seemed to be in the math library too Apr 30 01:16:26 Everything is in one directoy Apr 30 01:17:21 including the math libraries? it's not using libc for the math functions then? Apr 30 01:19:11 OK. It compiled without issue on Linux Mint and that to is make 4.2.1 Apr 30 01:19:37 Can I up rev Ubuntu make? Apr 30 01:19:46 Are you missing any libraries on Ubuntu? Apr 30 01:20:15 Are the libraries you missing in $PATH? Apr 30 01:20:18 How the frick would I know? Apr 30 01:20:29 * GenTooMan ducks Apr 30 01:20:31 You would know b/c you are the developer! Apr 30 01:20:47 type echo $PATH. Apr 30 01:20:55 w/out the period. Apr 30 01:21:00 * GenTooMan mentions "don't worry we only let him out on occasion" Apr 30 01:21:12 I am just saying... Apr 30 01:21:29 If things are not in $PATH and not installed, how can one use it? Apr 30 01:22:09 Well it's more like if their isn't a path for the linker to link with. Normally auto config and cmake handle such things. Apr 30 01:22:32 Here is Ubuntu path. BUT the compile script WORKS /home/ken/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/ATI Apr 30 01:22:33 Technologies/ATI.ACE/Core-Static:/mnt/c/WINDOWS/System32/OpenSSH:/%USERPROFILE%/AppData/Local/Microsoft/WindowsApps Apr 30 01:23:02 oh windows Apr 30 01:23:07 Just tripple boot. Apr 30 01:23:23 Here is the Linux Mint path /home/ken/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/games:/usr/local/games Apr 30 01:23:32 Download the Debian, Ubuntu, Windows OSs and triple boot them. Apr 30 01:23:56 "Um lets think on useful things set_ ... Apr 30 01:24:11 OK I have BBB, Ubuntu and Liux Mint up Apr 30 01:24:23 Okay. Obviously, something is going on that has nothing to do w/ what is being typed here. Apr 30 01:24:30 I will bow out. Apr 30 01:25:52 right with the c compiler normally the auto config sets up things in the make file with paths to the needed libraries. It fails when building in ubuntu so dumb question do you have libc installed in Ubuntu? Apr 30 01:26:14 So it's something retarded with Ubuntu. BUT compile script works. unless make is looking for something on Ubuntu Apr 30 01:28:08 you have -lm ... that specifies libm however their is one difference between the two command sets. Apr 30 01:28:43 you have "-ansi" "-lm" in the one that works Apr 30 01:29:02 and the one that doesn't is "-ansi -lm" Apr 30 01:29:12 could it be order? Apr 30 01:29:56 the makefile and script work under BBB? Apr 30 01:31:34 yes Apr 30 01:33:45 I would suggest CFLAGS=-ansi and LIB=-ml then use $(CC) $(CFLAGS) -o bwbasic bw*.c $(LIB) so that it's done the same way in the script just to see if that works in Ubuntu. Apr 30 01:34:20 IE make the them use things exactly the same way. Apr 30 01:38:51 How is it going, fellows? Apr 30 01:39:26 Oh. Me? Well, vue.js is kicking me face in right now. I hope you two are happy. Apr 30 01:40:45 * GenTooMan suggests https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ for ideas on make files but it's not an ideal tutorial. Apr 30 01:42:05 set_ kenunix is probably working on the Makefile. Apr 30 01:44:42 OK. So Ubuntu dosen't like the -lm option where it is??? So I oved it now make works?? Ubuntu only? Apr 30 01:45:41 Now I have copys of bwbasic source all over the place Apr 30 01:46:15 Maybe it is the version of make on Ubuntu? Apr 30 01:47:26 I'll have to create a PFLAG=-lm Apr 30 01:47:29 could be the version of gcc if it has an older version of make it likely has an older version of GCC there are some differences between major version of how the CLI is processed. Apr 30 01:48:22 I would suggest LIB because -lm means -lm Apr 30 01:48:33 but that's me :D Apr 30 01:48:37 It's what came installed on Ubuntu. Version 20.04 the latest 9.3.0 Apr 30 01:49:27 So what library is -lm Apr 30 01:49:52 Option -Os is still valid, no? Apr 30 01:50:34 -Os = Optomize for size Apr 30 01:51:00 on BBB that saves about 75KB Apr 30 01:51:23 it should Apr 30 01:51:49 * GenTooMan now remembers all the crazy testing that autoconfige does in .configure and why. Apr 30 01:54:12 Probably good or better at least. bwbasic must be fairly self contained to need so few files. Or they are massive 1Meg files like MS would use ;) Apr 30 01:54:15 No, Ubuntu dosen't like -Os or -O2 Apr 30 01:55:23 Theres about 70 files. Remember this strted out in 1993 Apr 30 01:56:43 When I try to optomize I get weird errors like bwb_cmd.c:4269:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread (v->Value.Number, sizeof (DoubleType), t, f); Apr 30 01:59:10 you build on the BBB correct? Apr 30 01:59:43 Testing now on Linux Mint & Ubunto Apr 30 02:01:49 Here is edited makefile https://paste.ubuntu.com/p/JF5DMFRn9D/ Apr 30 02:06:59 Um, so optomize is broke on Ubuntu Apr 30 02:07:51 well https://pastebin.com/dfzDdhQ3 for suggestions on how to identify the system :D Apr 30 02:08:28 So apparently the folsks at Ubuntu rolled out a tird X) X) Apr 30 02:08:51 Also sleep dosen't work Apr 30 02:08:56 and polished it... Apr 30 02:09:14 What their knob Apr 30 02:09:24 8) 8) Apr 30 02:09:50 sleep isn't part of the shell is it? Apr 30 02:10:22 I mean the compiler optomize option is -Os or -O2 rite? Apr 30 02:15:52 try -O2 or -O3 -Os does a few extra optimization steps that might be the cause of the problems. Apr 30 02:16:58 https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html for reference Apr 30 02:19:04 It dosen't like -O anything Apr 30 02:24:01 that's really weird. Apr 30 02:25:38 you did a clean first didn't you? you can't mix object files between -O switches too well. Apr 30 02:45:08 yep Apr 30 02:46:40 Ok ... I guess weird states it all :/ Apr 30 02:47:14 So? Apr 30 02:47:18 What happened? Apr 30 02:54:49 It seems ubuntu has some differences in how the compiler behaves enough to make it difficult to use the same flags with it. Reminds me of how autoconfig checks every options to see what works in the current compiler suite suddenly. Apr 30 02:57:40 Well, I guess that was it. Apr 30 02:58:09 So, KenUnix: are you going to learn how Ubuntu 20.04 wants you to compile now? Apr 30 02:58:50 Well, if that have that info. available...then it would seem normal. But, do they? Do they have that info. available? **** ENDING LOGGING AT Thu Apr 30 02:59:57 2020