Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who is Online
76 user(s) are online (6 user(s) are browsing Forum)

Members: 0
Guests: 76

more...


Browsing this Thread:   1 Anonymous Users




« 1 (2) 3 4 5 6 »


Re: a more modern gcc?
#42
Home away from home
Home away from home


See User information
Quote:

simplex wrote:
Now it failed on not finding <tt>Xcursor.h</tt>. Found and installed the Fedora package for that, continuing…


Glad to see it is making progress ... every day is an adventure lol.

Posted on: 2018/4/9 21:50
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#41
Home away from home
Home away from home


See User information
Quote:

simplex wrote:
I looked up the <tt>ucontext.h</tt> source and I think maybe you meant that I should change it to <tt>struct ucontext_t</tt>. I made that change and I’'ll update the moment I know something.



no, ucontext_t should be a typedef of type struct xxxx.



Posted on: 2018/4/9 21:49
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#40
Quite a regular
Quite a regular


See User information
Now it failed on not finding <tt>Xcursor.h</tt>. Found and installed the Fedora package for that, continuing…

Posted on: 2018/4/9 21:42
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#39
Quite a regular
Quite a regular


See User information
I looked up the <tt>ucontext.h</tt> source and I think maybe you meant that I should change it to <tt>struct ucontext_t</tt>. I made that change and I’'ll update the moment I know something.

Posted on: 2018/4/9 21:37
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#38
Quite a regular
Quite a regular


See User information
That gets me this:
<pre style="margin-left:10%;margin-right:10%;background-color:#ddeeff;"><tt>
In file included from /home/cantanima/Downloads/AROS-20180326-source/arch/all-unix/kernel/kernel_cpu.h:16:0,
from /home/cantanima/Downloads/AROS-20180326-source/rom/kernel/kernel_base.h:25,
from /home/cantanima/Downloads/AROS-20180326-source/arch/x86_64-all/kernel/cpu_init.c:9:
/home/cantanima/Downloads/AROS-20180326-source/arch/all-linux/kernel/cpu_x86_64.h:217:9: error: unknown type name 'ucontext_t'
typedef ucontext_t regs_t;
^~~~~~~~~~
</tt></pre>

Posted on: 2018/4/9 21:31
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#37
Home away from home
Home away from home


See User information
Can you try editing arch/all-linux/kernel/cpu_x86_64.h

Look for

typedef struct ucontext regs_t


And try changing to

typedef ucontext_t regs_t

Posted on: 2018/4/9 0:59
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#36
Quite a regular
Quite a regular


See User information
Thanks! I actually did figure out that fix on my own (for some reason AROS Exec doesn?t come up for me at times) but now I?ve encountered one that I?m not sure what to think of. It?s not a GCC bug:
<pre style="margin-left:10%;margin-right:10%;background-color:#ddeeff;"><tt>
In file included from /home/cantanima/Downloads/AROS-20180326-source/arch/all-unix/kernel/kernel.c:24:0:
/home/cantanima/Downloads/AROS-20180326-source/arch/all-unix/kernel/kernel.c: In function 'core_TrapHandler':
/home/cantanima/Downloads/AROS-20180326-source/arch/all-linux/kernel/cpu_x86_64.h:92:30:
error: dereferencing pointer to incomplete type 'regs_t {aka struct ucontext}'
#define SP(uc) ((uc)->uc_mcontext.gregs[REG_RSP])
^
/home/cantanima/Downloads/AROS-20180326-source/rom/kernel/kernel_debug.h:45:35:
note: in definition of macro 'bug'
#define bug(...) _bug(KernelBase, __VA_ARGS__)
^~~~~~~~~~~
/home/cantanima/Downloads/AROS-20180326-source/arch/all-linux/kernel/cpu_x86_64.h:206:5:
note: in expansion of macro 'SP'
, SP(sc), FP(sc), PC(sc) \
^~
/home/cantanima/Downloads/AROS-20180326-source/arch/all-unix/kernel/kernel.c:65:5:
note: in expansion of macro 'PRINT_SC'
PRINT_SC(regs);
^~~~~~~~
make[1]: *** [mmakefile:131: /home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/gen/rom/kernel/arch/kernel.o] Error 1
</tt></pre>

Posted on: 2018/4/8 4:29
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#35
Home away from home
Home away from home


See User information
Quote:

Kalamatee wrote:
... there should be rules in the build system to re-create the patch for gcc after the modification but im not 100% sure offhand.


would be great if they were, its pita, these diffs, but i can fix it and make a patch tomorrow, by hand.. errm by diff and commit it if its desirable.

Posted on: 2018/4/8 3:23
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#34
Home away from home
Home away from home


See User information
Quote:

simplex wrote:
Quote:

wawa wrote:
aros has gcc-6, its just still not the default compiler. dont ask me why. you need to configure toolchain with --with-binutils-version=2.25 --with-gcc-version=6.3.0 to enable it.

No luck, I?m afraid.
<pre style="margin-left:10%;margin-right:10%;background-color:#ddeeff"><tt>
/home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/Ports/host/gcc/gcc-6.3.0/gcc/ubsan.c:
In function ?bool ubsan_use_new_style_p(location_t)?:
/home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/Ports/host/gcc/gcc-6.3.0/gcc/ubsan.c:1474:23:
<span style="color:red;">error:</span> ISO C++ forbids comparison between pointer and integer [<span style="color:red;">-fpermissive</span>]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
<span style="color:red;">^~~~</span>
</tt></pre>


Seems to be a bug in gcc ..https://mail.coreboot.org/pipermail/coreboot/2017-June/084488.html though im not in a position to fix our patch.


for now, the easiest thing to do seems to be to just edit /home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/Ports/host/gcc/gcc-6.3.0/gcc/ubsan.c and change that line ... there should be rules in the build system to re-create the patch for gcc after the modification but im not 100% sure offhand.

Posted on: 2018/4/8 0:35

Edited by Kalamatee on 2018/4/8 1:11:14
Resized Image
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: a more modern gcc?
#33
Quite a regular
Quite a regular


See User information
Quote:

wawa wrote:
aros has gcc-6, its just still not the default compiler. dont ask me why. you need to configure toolchain with --with-binutils-version=2.25 --with-gcc-version=6.3.0 to enable it.

No luck, I?m afraid.
<pre style="margin-left:10%;margin-right:10%;background-color:#ddeeff"><tt>
/home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/Ports/host/gcc/gcc-6.3.0/gcc/ubsan.c:
In function ?bool ubsan_use_new_style_p(location_t)?:
/home/cantanima/Downloads/AROS-20180326-source/bin/linux-x86_64/Ports/host/gcc/gcc-6.3.0/gcc/ubsan.c:1474:23:
<span style="color:red;">error:</span> ISO C++ forbids comparison between pointer and integer [<span style="color:red;">-fpermissive</span>]
|| xloc.file == '\0' || xloc.file[0] == '\xff'
<span style="color:red;">^~~~</span>
</tt></pre>

Posted on: 2018/4/7 22:44
 Top  Twitter  Facebook  Google Plus  Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




« 1 (2) 3 4 5 6 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4462
2 nikolaos
nikolaos
4206
3 magorium
magorium
4095
4 phoenixkonsole
phoenixkonsole
3942
5 deadwood
deadwood
2917
6 ncafferkey
ncafferkey
2810
7 mazze
mazze
2222
8 Kalamatee
Kalamatee
2212
9 clusteruk
clusteruk
2114
Powered by XOOPS © 2001-2025 The XOOPS Project