WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore-12.0alpha1  (Read 19151 times)

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: piCore-12.0alpha1
« Reply #15 on: August 22, 2020, 09:42:26 AM »
Bluetooth is next on my list......

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #16 on: August 22, 2020, 09:46:45 PM »
Any chance either of you Gentlemen could show your build flags here please?
I could ask for assistance by pm, but that might not help other submitters?

for example for 32 bit Arm I plan to use
export CFLAGS="-Os -pipe -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
export CXXFLAGS="-Os -pipe -fno-exceptions -fno-rtti -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
export LDFLAGS="-Wl,-O1"
« Last Edit: August 22, 2020, 09:50:44 PM by aus9 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: piCore-12.0alpha1
« Reply #17 on: August 23, 2020, 01:17:19 AM »
piCore:
Code: [Select]
CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti"
piCore64:
Code: [Select]
CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti"

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #18 on: August 23, 2020, 01:40:34 AM »
thanks heaps for that.....sorry for being anal but what happened to the wiki entry suggesting we might need
LDFLAGS="-Wl,-O1"
http://wiki.tinycorelinux.net/doku.php?id=wiki:creating_extensions

Do we need it please?
« Last Edit: October 27, 2022, 10:50:13 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: piCore-12.0alpha1
« Reply #19 on: August 23, 2020, 02:16:42 AM »
I don't usually use it - maybe @curaga could comment?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: piCore-12.0alpha1
« Reply #20 on: August 23, 2020, 03:09:47 AM »
See man ld, it works for every arch.
The only barriers that can stop you are the ones you create yourself.

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #21 on: August 23, 2020, 04:14:00 AM »
curaga thanks for the heads up.

According to https://linux.die.net/man/1/ld
Quote
-O level
    If level is a numeric values greater than zero ld optimizes the output. This might take significantly longer and therefore probably should only be enabled for the final binary. At the moment this option only affects ELF shared library generation
This seems to be discussing the generation of shared objects (so) files

According to my eyesight the -W option is not even mentioned in my link. YMMV

 found a web page saying "SNIP your build system is passing LDFLAGS directly to the linker, and not by way of GCC"

So as I am writing this both for my benefit and any other submitter, based on Juanito's reply
I am going to drop those linker flags.

Thankyou all for helping me

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #22 on: August 23, 2020, 05:01:49 AM »
I know we are at alpha and you guys are busy beavers.
Would you like me to have a go at building full wget, zsync.

Is it ok to make other such requests for 12x here?
I can't see a web browser yet, yes I am impatient swine, netsurf is small enough for my needs but need a just a few more deps

cheers

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: piCore-12.0alpha1
« Reply #23 on: August 23, 2020, 07:17:05 AM »
Since we're still in alpha testing, it might be better to wait a while with extensions (firefox is in progress).

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #24 on: August 26, 2020, 03:39:22 AM »
thanks for firefox.

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #25 on: August 28, 2020, 08:50:48 AM »
WOOHOO thankyou very much for wget and zsync.

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #26 on: August 28, 2020, 09:44:13 AM »
piCore64:
Code: [Select]
CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti"

I made mistake again....but this might help me. I set the flags with
Code: [Select]
export CFLAGS="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe"
export CXXFLAGS="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti"
SNIP
./configure --prefix=/usr/local --with-doc=no
checking for gcc... gcc
checking whether the C compiler works... no

I closed the terminal to do something and when I returned, I forgot to set the flags and got past that error, but not prepared to proceed any further until hopefully I get some advice.
In repeating above configure line I got
Code: [Select]
Prefix  : /usr/local
Compiler   : gcc -g -O2

and that looks like it might succeed. Any chance you could supply the next best flag set to try if .....as yes I do not know if this is right....if the issue was purely flag related.

thanks for reading in any case ....packages gr* and na* relate

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: piCore-12.0alpha1
« Reply #27 on: August 28, 2020, 10:07:08 AM »
Quite a few source packages were created with autotools before aarch64 was common - if you overwrite config.guess and config.sub in the source with those from the libtool extension, it will usually fix things.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: piCore-12.0alpha1
« Reply #28 on: August 28, 2020, 12:39:25 PM »
Here is the official way to get the latest and greatest config.guess and config.sub

https://www.gnu.org/software/gettext/manual/html_node/config_002eguess.html


Also, from your above example.  this is not correct.
Code: [Select]
export CFLAGS="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe"
export CXXFLAGS="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti"

CFLAGS should not include the compiler reference
Code: [Select]
export CFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe"
export CXXFLAGS="-march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti"

There are of course a million ways to do things, it all depends on how the makefile was built.


« Last Edit: August 28, 2020, 12:44:23 PM by Paul_123 »

aus9

  • Guest
Re: piCore-12.0alpha1
« Reply #29 on: August 28, 2020, 10:22:41 PM »
thats great. I have a few things to try now.