# 00:01:27 |
mingwandroid |
quits : Ping timeout: 272 seconds |
# 00:10:31 |
mingwandroid |
joins #crosstool-ng |
# 00:13:29 |
mingwandroid_ |
quits : Ping timeout: 272 seconds |
# 00:14:33 |
mingwandroid |
quits : Remote host closed the connection |
# 01:10:25 |
djerome |
joins #crosstool-ng |
# 03:40:40 |
Martell |
joins #crosstool-ng |
# 03:56:46 |
RushPL |
quits : Ping timeout: 264 seconds |
# 03:57:14 |
RushPL |
joins #crosstool-ng |
# 04:18:38 |
djerome |
quits : Remote host closed the connection |
# 05:31:52 |
smik1982 |
joins #crosstool-ng |
# 05:33:55 |
Martell |
quits : Ping timeout: 244 seconds |
# 06:18:31 |
smik1982 |
quits : Ping timeout: 248 seconds |
# 06:19:25 |
smik1982 |
joins #crosstool-ng |
# 07:07:41 |
tlwoerner |
quits : Ping timeout: 272 seconds |
# 07:12:24 |
tlwoerner |
joins #crosstool-ng |
# 07:48:54 |
aalv |
joins #crosstool-ng |
# 08:06:03 |
tlwoerner |
quits : Ping timeout: 240 seconds |
# 08:06:34 |
tlwoerner |
joins #crosstool-ng |
# 10:58:57 |
ius |
quits : Ping timeout: 245 seconds |
# 11:00:07 |
ius |
joins #crosstool-ng |
# 11:10:32 |
Martell |
joins #crosstool-ng |
# 11:14:55 |
Martell |
quits : Ping timeout: 244 seconds |
# 11:44:37 |
Net147 |
joins #crosstool-ng |
# 12:23:57 |
ius |
quits : Ping timeout: 245 seconds |
# 12:24:46 |
ius |
joins #crosstool-ng |
# 12:30:51 |
Martell |
joins #crosstool-ng |
# 12:44:07 |
Martell |
hey bhundven |
# 12:44:22 |
Martell |
I got that toolchain working in the end with msys2 host |
# 12:44:46 |
Martell |
a few host tools just had to be patched to support msys2 |
# 12:55:08 |
Martell_ |
joins #crosstool-ng |
# 12:56:06 |
Net147 |
quits : Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D |
# 12:57:33 |
Martell_ |
quits : Client Quit |
# 12:58:03 |
Martell_ |
joins #crosstool-ng |
# 12:58:15 |
Martell |
quits : Ping timeout: 244 seconds |
# 12:58:38 |
Martell_ |
quits : Client Quit |
# 12:59:09 |
Martell |
joins #crosstool-ng |
# 13:14:16 |
Martell |
quits : Ping timeout: 244 seconds |
# 13:19:34 |
smik1982 |
quits : Remote host closed the connection |
# 13:35:24 |
guillaume__ |
joins #crosstool-ng |
# 15:05:13 |
Martell |
joins #crosstool-ng |
# 15:55:28 |
Martell |
quits : Ping timeout: 244 seconds |
# 16:34:29 |
felliott |
joins #crosstool-ng |
# 16:39:48 |
felliott |
parts #crosstool-ng |
# 16:40:45 |
guillaume_ |
joins #crosstool-ng |
# 16:42:32 |
guillaume__ |
quits : Ping timeout: 260 seconds |
# 16:50:36 |
Martell |
joins #crosstool-ng |
# 17:09:07 |
y_morin |
joins #crosstool-ng |
# 17:30:46 |
Martell |
hey y_morin |
# 17:32:42 |
Martell |
where in the .config file do i add --enable-threads=posix |
# 17:33:49 |
Martell |
CT_CC_GCC_CORE_EXTRA_CONFIG_ARRAY? |
# 17:36:15 |
Martell |
baisically its for an elf platform where i have to write a pthread wrapper |
# 17:52:43 |
Martell_ |
joins #crosstool-ng |
# 17:55:20 |
Martell |
quits : Ping timeout: 244 seconds |
# 18:16:39 |
Martell_ |
sorry i disconnected earlier |
# 18:16:54 |
Martell_ |
I dunno if anyone replied |
# 18:26:33 |
aalv |
quits : Ping timeout: 255 seconds |
# 18:30:14 |
RushPL |
quits : Ping timeout: 248 seconds |
# 18:30:40 |
RushPL |
joins #crosstool-ng |
# 18:48:48 |
djerome |
joins #crosstool-ng |
# 18:56:52 |
bhundven |
Martell_: CT_CC_CORE_EXTRA_CONFIG_ARRAY is correct, but... |
# 18:58:04 |
bhundven |
you'd want to check to make sure CT_THREADS_NPTL is not set |
# 18:58:14 |
bhundven |
because that sets --enable-threads=nptl |
# 18:58:36 |
Martell_ |
its not :) |
# 18:59:07 |
bhundven |
which libc? or baremetal? |
# 18:59:44 |
Martell_ |
newlib |
# 19:00:03 |
Martell_ |
I'm using newlib libc |
# 19:00:10 |
bhundven |
right |
# 19:00:13 |
bhundven |
thanks! |
# 19:00:13 |
Martell_ |
its a baremeta target |
# 19:00:23 |
Martell_ |
i think |
# 19:00:56 |
Martell_ |
so what will happen now when i try to use c++11 threads |
# 19:01:06 |
Martell_ |
will it just look for libpthreads.a ? |
# 19:01:10 |
bhundven |
not sure |
# 19:01:21 |
Martell_ |
heh will soon find out ^^ |
# 19:02:23 |
bhundven |
really should add CT_LIBC_SUPPORT_POSIXTHREADS and CT_THREADS_POSIX |
# 19:03:20 |
sh4rm4 |
c++11 + newlib ? i wasn't aware that works at all |
# 19:03:32 |
bhundven |
^^ I was going to say the same. |
# 19:05:01 |
Martell_ |
i will soon find out i guess |
# 19:05:26 |
Martell_ |
well see c++11 is linked into stdc++ |
# 19:05:34 |
Martell_ |
so the clibrary shouldn't matter much |
# 19:05:46 |
sh4rm4 |
it does |
# 19:06:03 |
Martell_ |
wel obviously it has to have core libc functionality |
# 19:06:08 |
sh4rm4 |
cause even if you have bleeding edge libstdc++, it still depends on libc |
# 19:06:27 |
sh4rm4 |
and libstdc++ uses pthreads, so... |
# 19:06:39 |
Martell_ |
i guess it will depends on how well newlib conforms to the libc std i guess |
# 19:07:25 |
bhundven |
I see there are a few patches for newlib to support c++11 |
# 19:07:34 |
bhundven |
but it's basic support |
# 19:07:34 |
Martell_ |
where? |
# 19:07:40 |
bhundven |
don't see thread support yet |
# 19:07:45 |
sh4rm4 |
i personally wouldnt even try to produce C++ stuff for baremetal targets simply by considering the bloat (at least 1.5 MB ram taken for libstdc++) |
# 19:07:49 |
bhundven |
on the newlib ml |
# 19:07:55 |
Martell_ |
its for the ps3 |
# 19:08:03 |
Martell_ |
high end baremetal |
# 19:08:14 |
Martell_ |
512mb ram |
# 19:08:47 |
Martell_ |
its for the lv2 hypervisor |
# 19:09:00 |
Martell_ |
so compiled code can run under gameos |
# 19:09:28 |
Martell_ |
basically i want to hook a pthread wrapper into the hypervisors thread calls |
# 19:44:48 |
djerome |
quits : Remote host closed the connection |
# 19:51:47 |
Martell_ |
bhundven |
# 19:51:48 |
Martell_ |
[ERROR] ./gthr-default.h:35:21: fatal error: pthread.h: No such file or directory |
# 19:52:04 |
Martell_ |
this is on building gcc before we even get to libc |
# 19:53:15 |
bhundven |
yup |
# 19:53:26 |
bhundven |
so newlib doesn't have startfiles for pthread |
# 19:53:55 |
Martell_ |
strange because I have a pthread.h in a built compiler |
# 19:54:10 |
Martell_ |
start files? |
# 19:54:36 |
Martell_ |
does ct-ng use newlib when building gcc? |
# 19:54:50 |
Martell_ |
i thought it was just compiled seperate afterwards |
# 19:54:54 |
bhundven |
startfiles is a step before gcc builds stage1 |
# 19:55:07 |
bhundven |
it copies headers to the right place before gcc is built the first time |
# 19:55:12 |
Martell_ |
well im on newlib 2.0.0 |
# 19:55:17 |
Martell_ |
I'll try 2.1.0 |
# 19:55:42 |
bhundven |
http://crosstool-ng.org/git/crosstool-ng/tree/scripts/build/libc/newlib.sh#n52 |
# 19:55:53 |
bhundven |
I'm saying it's not a problem with newlib |
# 19:57:32 |
Martell_ |
hmm okay well its when its building libgcc anyway |
# 19:57:48 |
Martell_ |
does that mean my host is missing pthread.h |
# 19:57:53 |
bhundven |
no |
# 19:58:14 |
Martell_ |
I may look more at CT_LIBC_SUPPORT_POSIXTHREADS and CT_THREADS_POSIX |
# 19:58:20 |
Martell_ |
i didn't add them yet |
# 19:58:39 |
bhundven |
they don't exist |
# 19:59:00 |
Martell_ |
ahh i see my bad |
# 19:59:09 |
Martell_ |
you meant they should be added |
# 19:59:11 |
Martell_ |
my bad |
# 19:59:15 |
bhundven |
right |
# 19:59:29 |
bhundven |
Martell_: you're in uncharted territory |
# 19:59:42 |
Martell_ |
I know :( |
# 19:59:59 |
Martell_ |
i really need std:thread |
# 20:00:36 |
guillaume_ |
quits : Ping timeout: 255 seconds |
# 20:09:13 |
aalv |
joins #crosstool-ng |
# 20:31:53 |
aalv |
quits : Quit: Leaving. |
# 20:38:24 |
smartin |
quits : Ping timeout: 255 seconds |
# 20:38:56 |
Martell_ |
bhundven I'm back :) |
# 20:39:31 |
Martell_ |
CC_CORE_EXTRA_CONFIG_ARRAY="--enable-threads=posix --enable-tls" |
# 20:39:51 |
Martell_ |
seems to affect the host build when it shouldn't |
# 20:40:25 |
Martell_ |
as in that flag makes gcc expect pthreads when it is being compiled |
# 20:40:29 |
bhundven |
I'm sorta like 7-Eleven. I'm not always doing business, but I'm always open. |
# 20:41:08 |
Martell_ |
instead of enabling posix threads in the compiler for the target |
# 20:41:17 |
smartin |
joins #crosstool-ng |
# 20:41:18 |
Martell_ |
if that makes sense |
# 20:41:26 |
bhundven |
yes, it does |
# 20:41:32 |
Martell_ |
heh sorry for spamming you |
# 20:42:24 |
bhundven |
Martell_: there is a use-case you are hitting in crosstool-ng that has not been traveled. |
# 20:42:51 |
Martell_ |
it seems to me to be a gcc bug |
# 20:42:56 |
bhundven |
it's not |
# 20:42:57 |
Martell_ |
where the host is windows |
# 20:43:16 |
bhundven |
can you pastebin your config |
# 20:44:33 |
Martell_ |
its essentially this config |
# 20:44:34 |
Martell_ |
https://github.com/martell/PS3-PACKAGES/blob/master/ps3-toolchain/ps3-ppu.config |
# 20:44:48 |
Martell_ |
but with CC_CORE_EXTRA_CONFIG_ARRAY="--enable-threads=posix --enable-tls" |
# 20:48:02 |
bhundven |
eh |
# 20:48:20 |
bhundven |
I'm guessing you are using latest from git? |
# 20:49:19 |
Martell_ |
yes |
# 20:49:33 |
Martell_ |
im using diorcety fork |
# 20:49:41 |
bhundven |
ah |
# 20:49:46 |
Martell_ |
it seperats gcc and clang |
# 20:49:55 |
Martell_ |
thats where the GCC_ comes from |
# 20:50:03 |
bhundven |
yea, until that stuff gets merged back into ct-ng |
# 20:50:04 |
Martell_ |
other wise it is the latest |
# 20:50:15 |
Martell_ |
exactly ya |
# 20:50:15 |
Martell_ |
until then :) |
# 20:50:42 |
bhundven |
so... |
# 20:51:28 |
bhundven |
why using diorcety fork? |
# 20:51:28 |
Martell_ |
it runs under msys2 |
# 20:51:28 |
Martell_ |
which the official repo doesn't |
# 20:51:29 |
Martell_ |
i have patched it |
# 20:51:35 |
Martell_ |
and ray has done patches also |
# 20:51:43 |
bhundven |
yes |
# 20:51:50 |
bhundven |
the problem is |
# 20:52:22 |
bhundven |
that is not "crosstool-ng", and is unsupported "until"(my until from above) it gets merged back into crosstool-ng |
# 20:53:11 |
Martell_ |
i know |
# 20:53:30 |
Martell_ |
it is constantly kept up to date with upstream however |
# 20:53:49 |
Martell_ |
as in it builds all the targets ct-ng official repo does |
# 20:54:09 |
Martell_ |
and they work, i've tested them |
# 20:54:16 |
bhundven |
so, could you post the generated .config after running 'ct-ng oldconfig'? |
# 20:54:37 |
Martell_ |
ahh i see |
# 20:56:56 |
Martell_ |
not atm :( |
# 20:57:54 |
bhundven |
btw, if you rename your .md files to '.md' and not '.MD', they will be displayed. |
# 20:58:19 |
Martell_ |
in my repo yes i learned that recently :) |
# 20:58:28 |
bhundven |
:D |
# 20:58:36 |
Martell_ |
I just haven't updated that repo yet ;) |
# 20:58:53 |
Martell_ |
I built an opengl 3.3 driver for the ps3 |
# 20:59:02 |
Martell_ |
based off mesa and rsxgl |
# 20:59:16 |
Martell_ |
so the last thing i need is these threads |
# 20:59:42 |
Martell_ |
and i basically have a compiler that has a usable target for developers |
# 20:59:46 |
Martell_ |
:D |
# 21:00:24 |
Martell_ |
I think the switch to git from you guys should help the merge of the fork |
# 21:00:28 |
Martell_ |
as we use git also |
# 21:00:55 |
bhundven |
well, I don't use windows at all. If I can get an updated config, I can try building it on my linux laptop and see if I can figure out the problem you're having |
# 21:01:13 |
Martell_ |
ahh i see |
# 21:01:33 |
Martell_ |
yes ray kept telling me in the past to compare linux builds |
# 21:01:50 |
Martell_ |
as our stuff was always bleeding edge |
# 21:02:41 |
Martell_ |
other than changing CT_CC_GCC to CT_CC |
# 21:02:42 |
bhundven |
my edge is always bleeding |
# 21:02:46 |
bhundven |
need some super glue |
# 21:02:49 |
Martell_ |
it is the same right? |
# 21:02:53 |
bhundven |
no |
# 21:03:04 |
bhundven |
CT_ is just a prefix, like CONFIG_ in the kernel |
# 21:03:08 |
Martell_ |
what else has changed? |
# 21:03:22 |
bhundven |
oh, I see |
# 21:03:37 |
bhundven |
yes, they are the same, but not used the same. |
# 21:05:10 |
Martell_ |
not used the same? |
# 21:05:15 |
Martell_ |
as in because it is a fork? |
# 21:05:21 |
bhundven |
well |
# 21:06:05 |
Martell_ |
hmm there is a flag |
# 21:06:06 |
Martell_ |
CT_THREADS_NONE |
# 21:06:15 |
Martell_ |
that is for the target? |
# 21:06:29 |
Martell_ |
maybe i am touching the wrong flags? |
# 21:06:34 |
bhundven |
:sigh: |
# 21:07:16 |
Martell_ |
lol I'm a pro noob right? |
# 21:08:01 |
bhundven |
I'm trying to figure out which questions you want answered |
# 21:08:18 |
Martell_ |
sorry |
# 21:08:21 |
bhundven |
CT_CC is the same in both the upstream and fork |
# 21:08:44 |
bhundven |
CT_CC_GCC is new in the fork |
# 21:09:04 |
Martell_ |
okay thats to seperate clang from gcc |
# 21:09:08 |
Martell_ |
that makes sense |
# 21:09:34 |
bhundven |
right |
# 21:09:43 |
bhundven |
I was explaining earlier about threads |
# 21:10:06 |
bhundven |
for bare metal gcc |
# 21:10:14 |
bhundven |
there are no required headers |
# 21:10:33 |
bhundven |
but you are using newlib in a non-baremetal setup |
# 21:10:53 |
bhundven |
so some headers are required to be in the right spots for that setup to work |
# 21:10:57 |
Martell_ |
CT_BARE_METAL=y |
# 21:10:57 |
Martell_ |
CT_KERNEL="bare-metal" |
# 21:10:57 |
Martell_ |
CT_KERNEL_bare_metal=y |
# 21:11:01 |
Martell_ |
mine is baremetal |
# 21:11:02 |
Martell_ |
? |
# 21:11:12 |
Martell_ |
newlib is just the clibrary im using |
# 21:13:18 |
bhundven |
let me know when you have a .config that is updated. |
# 21:15:20 |
Martell_ |
okay :) |
# 21:36:02 |
loide |
quits : Ping timeout: 252 seconds |
# 21:48:27 |
y_morin |
quits : Quit: Nighty Night! |
# 22:14:09 |
smartin_ |
joins #crosstool-ng |
# 22:21:58 |
smartin_ |
quits : Quit: leaving |
# 23:14:22 |
x56 |
quits : Ping timeout: 245 seconds |
# 23:15:11 |
x56 |
joins #crosstool-ng |