Browsing this Thread:
1 Anonymous Users
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
no, ucontext_t should be a typedef of type struct xxxx.
Posted on: 2018/4/9 21:49
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Home away from home
![]() |
Quote:
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Home away from home
![]()
|
Quote:
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
|
|||
|
||||
|
Re: a more modern gcc?
|
||||
|---|---|---|---|---|
|
Quite a regular
![]() |
Quote:
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
|
|||
|
||||
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.







