Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build of windows 64bit #1

Open
bhavin192 opened this issue Jun 9, 2014 · 68 comments
Open

Build of windows 64bit #1

bhavin192 opened this issue Jun 9, 2014 · 68 comments

Comments

@bhavin192
Copy link

Please provide Windows 64 bit version
or where is the script to build

btw Nice Work !! :)

@xsacha
Copy link
Owner

xsacha commented Jun 9, 2014

Script is in gcc 4.6.3 source release by CodeSourcery. You'll need the full
source package because it includes other dependencies too.
On 09/06/2014 9:21 pm, "Bhavin" [email protected] wrote:

Please provide Windows 64 bit version
or where is the script to build

btw Nice Work !! :)


Reply to this email directly or view it on GitHub
#1.

@bhavin192
Copy link
Author

I have to pull this source and also have to download source from that site ?

@xsacha
Copy link
Owner

xsacha commented Jun 9, 2014

The source on that site includes about 7 different projects.
The source in here is only for gcc.

When you get source from that site, you will need to modify the script they
use.
Replace /scratch/ndiswell/nokia with a directory you want to use.
Replace i686 with x86_64.

Tell me if you run in to any errors.
On 09/06/2014 9:28 pm, "Bhavin" [email protected] wrote:

I have to pull this source and also have to download source from that site
?


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

Ok then I will try ASAP just give me exact link to that source or only name of that file containing source

@xsacha
Copy link
Owner

xsacha commented Jun 9, 2014

It's in the same place you download GCC 4.6.3, it has option for source
underneath. Can't hotlink, it requires you to sign up I think -- then they
send you link in email (Mentor Graphics).
On 09/06/2014 9:34 pm, "Bhavin" [email protected] wrote:

Ok then I will try ASAP just give me exact link to that source or only
name of that file containing source


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

Ok I'm here
downloaded source of gcce 4.6.3 it has .bz2 files along with sh script and also downloaded 4.7.3(not 4.8.3) source
now I'm confused what should I do because where should I put 4.7.3 source

please give little detailed cause I have never used scripts for compile

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

Ok so first you have to choose a build dir, where it will do all the work.
I chose the default one that they used which was:
/scratch/ndiswell/nokia
If you want a different one, just do search/replace in the build script.

So create that directory, make sure it is owned by user (chown). Inside
that directory, create a 'src' directory. Extract ALL the tar.bz2 files
there.

Now rename the gcc-4.6-2012.03 folder to something else. Then grab this
source code from my github and stick it in a folder called gcc-4.6-2012.03

Now you are all set. Just run the build script.
On 11/06/2014 2:55 am, "Bhavin" [email protected] wrote:

Ok I'm here
downloaded source of gcce 4.6.3 it has .bz2 files along with sh script and
also downloaded 4.7.3(not 4.8.3) source
now I'm confused what should I do because where should I put 4.7.3 source

please give little detailed cause I have never used scripts for compile


Reply to this email directly or view it on GitHub
#1 (comment).

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

If you change source from 4.6.3 to 4.7.3, for example, you need to do a
search/replace for those numbers in the script too.
On 11/06/2014 2:55 am, "Bhavin" [email protected] wrote:

Ok I'm here
downloaded source of gcce 4.6.3 it has .bz2 files along with sh script and
also downloaded 4.7.3(not 4.8.3) source
now I'm confused what should I do because where should I put 4.7.3 source

please give little detailed cause I have never used scripts for compile


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

Ok now I know what to do should I compile 4.7.3 or again download 4.8.3 ?
Is is 4.8.3 will be latest or you will add 4.9 ?

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

Definitely 4.8.3. It compiles faster and cleaner.

I won't add 4.9.
On 11/06/2014 3:07 am, "Bhavin" [email protected] wrote:

Ok now I know what to do should I compile 4.7.3 or again download 4.8.3 ?
Is is 4.8.3 will be latest or you will add 4.9 ?


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

Ok extracting files
will download 4.8.3 tomorrow morning

@bhavin192
Copy link
Author

I have to use linux ? Because when I run script in git bash I get error on line 140 and 141 that command not found grep and sed

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

You need Linux to compile it I think. It compiles the Windows binaries
using mingw.
On 11/06/2014 3:30 am, "Bhavin" [email protected] wrote:

I have to use linux ? Because when I run script in git bash I get error on
line 140 and 141 that command not found grep and sed


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

I'm going to use kali linux for that purpose. It will work,wouldn't it ?

@bhavin192
Copy link
Author

or simply I should use ubuntu ? Because kali linux doesn't have mingw preinstalled

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

Any linux should work. The build script tries to build for linux and then
windows. You can remove the Linux parts if you want to make it quicker.
On 11/06/2014 3:42 am, "Bhavin" [email protected] wrote:

I'm going to use kali linux for that purpose. It will work,wouldn't it ?


Reply to this email directly or view it on GitHub
#1 (comment).

@xsacha
Copy link
Owner

xsacha commented Jun 10, 2014

None of them have mingw preinstalled, it's ok.
On 11/06/2014 3:49 am, "Bhavin" [email protected] wrote:

or simply I should use ubuntu ? Because kali linux doesn't have mingw
preinstalled


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

then I will build it tomorrow with 4.8.3
also I will try to write a wiki on how to build it ;)

@bhavin192
Copy link
Author

after installing mingw
in terminal
bash scriptname.sh
gives me
scriptname.sh line 141: grep: command not found
scriptname.sh line 141: sed: command not found

@xsacha
Copy link
Owner

xsacha commented Jun 11, 2014

Mingw is installed in linux? Grep and sed are preinstalled on Linux.
On 11/06/2014 9:03 pm, "Bhavin" [email protected] wrote:

after installing mingw
in terminal
bash scriptname.sh
gives me
scriptname.sh line 141: grep: command not found
scriptname.sh line 141: sed: command not found


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

then some package installing is not completed :(

@bhavin192
Copy link
Author

yes linux

@xsacha
Copy link
Owner

xsacha commented Jun 11, 2014

All linux have grep and sed installed. Are you running in bash?
On 11/06/2014 9:15 pm, "Bhavin" [email protected] wrote:

yes linux


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

I have just opened terminal and ran the script using

bash scriptname.sh

@xsacha
Copy link
Owner

xsacha commented Jun 11, 2014

Not sure how your bash does not have grep or sed installed. Which Linux
distro is this?
On 11/06/2014 9:28 pm, "Bhavin" [email protected] wrote:

I have just opened terminal and ran the script using

bash scriptname.sh


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

It's Kali linux
I think I should use Ubuntu now :(

@xsacha
Copy link
Owner

xsacha commented Jun 11, 2014

Kali Linux should work fine. I don't understand how grep and sed aren't
there.

Can you try running this:
grep -r bash ~

Does it say unknown command?
On 11/06/2014 9:31 pm, "Bhavin" [email protected] wrote:

It's Kali linux
I think I should use Ubuntu now :(


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

nope
gives some binary files matches etc. Etc.

@xsacha
Copy link
Owner

xsacha commented Jun 11, 2014

Ok then it works.what's the exact error the script gives?
On 11/06/2014 9:51 pm, "Bhavin" [email protected] wrote:

nope
gives some binary files matches etc. Etc.


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

scriptname.sh line 141: grep: command not found

scriptname.sh line 141: sed: command not found

@bhavin192
Copy link
Author

All folders are in correct place
chown -R root /scratch/nsidwell/nokia/src
gives chown: cannot access No such file or directory
but other folders i.e. nsidwell, scratch, nokia are accessible

@bhavin192
Copy link
Author

even if I create new folder in any folder i.e. scratch, nokia, nsidwell it displays (cd and chown) no such file or directory

@bhavin192
Copy link
Author

even now I have replaced whole path with only /arm still it gives same error

@xsacha
Copy link
Owner

xsacha commented Jun 12, 2014

Your user shouldn't be root.
What user are you running the script as?

/scratch/nsidwell/nokia/src/ should contain all the extracted .tar.bz2
files. So that directory should exist.

On Thu, Jun 12, 2014 at 1:37 PM, Bhavin [email protected] wrote:

even now I have replaced whole path with only /arm still it gives same
error


Reply to this email directly or view it on GitHub
#1 (comment).

@bhavin192
Copy link
Author

I was running it in Kali linux persistence mode(from removable disk) it wasn't real installation of linux that's why the user was root I'm installing ubuntu in VM then I will try it

@bhavin192
Copy link
Author

Here I'm
next error

all files are now owned by me
also no such file error solved by replacing /scratch from script to scratch

@xsacha
Copy link
Owner

xsacha commented Jun 12, 2014

OK, problem:
#1: Don't run build scripts as sudo. It just makes life difficult when you try to look and modify the modify. All that stuff will be owned by root so you need to delete those folders all over again.
#2: Don't run it via bash. You are already in bash, that will just hide things.

So command is: ./arm-2012.03-42-arm-none-symbianelf.sh

For those .tar.gz files, you can either remove the line where they are extracted or you can make sure they exist (i.e. copy them over).

Personally I used /scratch/ndiswell/nokia instead of a local dir but both should work.

@bhavin192
Copy link
Author

who wrote this script :@:@:@
they used rm to delete *.tar.bz2 and after that tried to use tar to extract the deleted file what the hell is that

@bhavin192
Copy link
Author

I removed the tasks from 3 to 23
now I'm getting error ./configure: Permission Denied for task 27

@xsacha
Copy link
Owner

xsacha commented Jun 13, 2014

Haha yeah and their build dir was in /
Could have been written better

If you get any permission denied that is because it is owned by root. Make sure it is all owned by user.

@bhavin192
Copy link
Author

It will be good if you can give me corrected script so that it will be able to build without extracting tar.bz2 files

@xsacha
Copy link
Owner

xsacha commented Jun 13, 2014

MMM you should be able to remove those lines.

@bhavin192
Copy link
Author

Already done that
should I only remove tar command or better I removed whole task from 3 to 23

and btw every file is owned by me but still it's permission denied :(

@xsacha
Copy link
Owner

xsacha commented Jun 13, 2014

Permission denied means you don't have permission to execute the file. Either not owned by you or not set to executable (but it was by default). From: BhavinSent: Friday, 13 June 2014 2:19 PMTo: xsacha/SymbianGCCReply To: xsacha/SymbianGCCCc: xsachaSubject: Re: [SymbianGCC] Build of windows 64bit (#1)Already done that
should I only remove tar command or better I removed whole task from 3 to 23

and btw every file is owned by me but still it's permission denied :(

—Reply to this email directly or view it on GitHub.

@bhavin192
Copy link
Author

Ok I will try again
will edit it carefully and will again start from beginning

@bhavin192
Copy link
Author

Hey @xsacha please build it for windows 64 bit :P I will try though but someone rather than me want it

@bhavin192
Copy link
Author

Please upload it

@xsacha
Copy link
Owner

xsacha commented Jun 25, 2014

I'll work on the script today but probably won't compile it. You should be able to compile it though.

@bhavin192
Copy link
Author

It will be fine

@xsacha
Copy link
Owner

xsacha commented Jun 27, 2014

Hmm if i build the Windows binary, I still need to update the SDK for Windows I think. Unless the Linux one already includes all that stuff.

By the way, since you were using Linux to compile this, would you be able to just compile for Symbian off your Linux install?

@bhavin192
Copy link
Author

No it will need to install all needed things there in VM just to compile for symbian and if you make it work on windows it will be very good for other developers for there development

@xsacha
Copy link
Owner

xsacha commented Jun 30, 2014

I've added a mingw script.

@fedor4ever
Copy link

Exist more simple and convinient way to build crosscompilers. I have builded scummvm with GCC 5.3.0 =)

@xsacha
Copy link
Owner

xsacha commented May 18, 2016

@fedor4ever Sorry I missed this.
How did you cross-compile it with GCC 5.3.0? You used a different method?
I didn't bother going past 4.8.3 since it won't support c++14, threads etc. you end up with a sort of frankenstein gcc.

@fedor4ever
Copy link

ScummVM works for me. I build gcc 5.x.0 series for Symbian with mingw 4.8.3. Also I build with latest binutils. I write build shell script for automate build process. This script based on binutils, gcc and gdb build manuals and Linux from scratch book. What wrong - can't build gdb, need investigation. What bad - need patch configure script in libstdc++ dir because can't deduce some types, need manual edit ( I work at autopatching). Binutils buids. Simple builds.
Of course I build gcc from scratch with single thread support.
What didn't work with c++14?
Always yours, Fiodar Stryzniou

исходное сбщ
Тема: Re: [xsacha/SymbianGCC] Build of windows 64bit (#1)
От: xsacha [email protected]
Дата: 18.05.2016 14.08

@fedor4ever Sorry I missed this.
How did you cross-compile it with GCC 5.3.0? You used a different method?
I didn't bother going past 4.8.3 since it won't support c++14, threads etc. you end up with a sort of frankenstein gcc.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1 (comment)

@xsacha
Copy link
Owner

xsacha commented May 18, 2016

Do you have this script in your github? I couldn't find it.
Any binaries? I'd love to update my apps to use latest gcc.
I couldn't get c++14 working because it relied on threads working.

@fedor4ever
Copy link

You can look at script now, but readme and link to my blog missed. If you have good knowledge regexps look at patch4libstdc++v4.sh

Always yours, Strizhniou Fiodar
Всегда ваш, Стрижнёв Фёдор

Пользователь xsacha [email protected] писал:

Do you have this script in your github? I couldn't find it.
Any binaries? I'd love to update my apps to use latest gcc.
I couldn't get c++14 working because it relied on threads working.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@xsacha
Copy link
Owner

xsacha commented May 18, 2016

Thanks.
Is it patch4libstdc++-v3.sh? I can't find v4.

You build GCC 6.1 now?

@fedor4ever
Copy link

My current target - GCC 6.1.
You right, it is patch4libstdc++-v3.sh.

@fedor4ever
Copy link

I stick also with error in c++14 mode: operator new(TUint, TUint)' is a usual (non-placement) deallocation function in C++14 (or with -fsized-deallocation) [-Wc++14-compat]. -fpermissive dowgrade this error to warning but this operator illegal from c++14 =(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants