FORUMS
Remove All Ads from XDA

[TOOLCHAINS] [ARM/ARM64] [GCC 7.2.1] GNU and Linaro - September 15th, 2017

13,728 posts
Thanks Meter: 50,760
 
By nathanchance, Recognized Developer / Recognized Contributor on 15th May 2017, 09:55 AM
Post Reply Email Thread
22nd May 2017, 08:49 PM |#21  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
Quote:
Originally Posted by kykint

Nice stuff indeed, thanks
Btw i've once been told that gnueabi and androideabi are slightly different, would it be okay to compile android kernels with gnueabi?

Yes.
The Following User Says Thank You to nathanchance For This Useful Post: [ View ]
 
 
26th May 2017, 06:37 PM |#22  
juginkrebs's Avatar
Senior Member
Flag Frankfurt Am Main
Thanks Meter: 368
 
More
hey mate thx for guide but i need a Toolchain for Rom thats Build Rom+Kernel
26th May 2017, 08:07 PM |#23  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
Quote:
Originally Posted by juginkrebs

hey mate thx for guide but i need a Toolchain for Rom thats Build Rom+Kernel

I'm going to be uploading new toolchains tonight that may work with compiling a ROM but I never got any confirmation. These are primarily for kernels though.
The Following 3 Users Say Thank You to nathanchance For This Useful Post: [ View ]
3rd June 2017, 12:20 AM |#24  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
My apologies for the delay, real life and all I'll be uploading 6.x and 7.x toolchains today, in both Linaro and GNU variants for both ARM and ARM64.

This patch will allow Android kernels to boot with GCC 7.x and above (I won't be releasing 8.x toolchains as there is not enough differences between it and 7.x at the moment, plus I hate building from any master branch when stable is available and usable).

These will most likely not work with ROMs as they are built with glibc versus bionic. crosstool-ng has preliminary bionic support but it gave me some issues while compiling and I am not interested in hacking these to work with ROMs. I'm primarily a kernel developer so that's all I care about.

I will be uploading a crosstool-ng how to within the next week or so, there's a fair amount of info and options to go into.
The Following 5 Users Say Thank You to nathanchance For This Useful Post: [ View ]
5th June 2017, 01:41 PM |#25  
ashyx's Avatar
Recognized Contributor
Thanks Meter: 9,588
 
Donate to Me
More
Does anyone have a recommendation for compiling Samsung arm64 nougat kernels? Samsung recommend 4.9 versions, but they are old.
2nd July 2017, 08:13 AM |#26  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
Toolchains have been updated!

I am only doing GCC 7.x toolchains now, as it is the latest stable release. I have updated some info in the thread regarding what you need in your kernel source to avoid any issues. I have also made each toolchain have its own branch. Since there will be full history, I recommend doing a shallow clone so you don't pull down too much history.

Let me know if you have any issues!
The Following 5 Users Say Thank You to nathanchance For This Useful Post: [ View ]
2nd July 2017, 08:28 AM |#27  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
Quote:
Originally Posted by ashyx

Does anyone have a recommendation for compiling Samsung arm64 nougat kernels? Samsung recommend 4.9 versions, but they are old.

Wow so sorry I forgot to reply to this! 4.9 is stable, which is why most if not all OEMs will recommend using it. I personally use the latest (which is what this thread will always offer), given that it is still stable and will often reveal poorly written code that can be improved upon/cleaned up.
The Following User Says Thank You to nathanchance For This Useful Post: [ View ]
2nd July 2017, 10:23 AM |#28  
LordArcadius's Avatar
Senior Member
Flag Delhi
Thanks Meter: 2,808
 
Donate to Me
More
Wew! Thug *_*
3rd July 2017, 06:51 PM |#29  
Senior Member
Thanks Meter: 59
 
More
Seems to break on compiling sultan's OPO kernel with the following error:

LD .tmp_vmlinux1
drivers/built-in.o: In function `dump_lim_send_rrm_action':
governor_msm_cpufreq.c.text+0x4ac8c0): undefined reference to `__aeabi_ldivmod'
Makefile:876: recipe for target '.tmp_vmlinux1' failed
make: *** [.tmp_vmlinux1] Error 1

Seems to be 64 bit instructions on our 32 bit kernel, any suggestions?
4th July 2017, 12:09 AM |#30  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
Quote:
Originally Posted by Bladehawkz

Seems to break on compiling sultan's OPO kernel with the following error:

LD .tmp_vmlinux1
drivers/built-in.o: In function `dump_lim_send_rrm_action':
governor_msm_cpufreq.c.text+0x4ac8c0): undefined reference to `__aeabi_ldivmod'
Makefile:876: recipe for target '.tmp_vmlinux1' failed
make: *** [.tmp_vmlinux1] Error 1

Seems to be 64 bit instructions on our 32 bit kernel, any suggestions?

I'll try to pull it down and test tonight.
The Following User Says Thank You to nathanchance For This Useful Post: [ View ]
20th July 2017, 12:25 PM |#31  
nathanchance's Avatar
OP Recognized Developer / Recognized Contributor
Flag Mesa, AZ
Thanks Meter: 50,760
 
More
New toolchains have been released!

I will pretty much update these once a month, GCC 7.1.1 is in a very stable spot.

All you should need to do is run a git pull. If for some reason there are any odd errors, get your current branch by typing git branch then run the following commands:
Code:
git fetch origin <branch_name>
git reset --hard origin/<branch_name>
Nothing else to note, enjoy!
The Following 7 Users Say Thank You to nathanchance For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes