lekernel changed the topic of #milkymist to: Milkymist One, Migen, Milkymist SoC & Flickernoise :: Logs: http://en.qi-hardware.com/mmlogs
xiangfu has joined #milkymist
xiangfu has quit [Remote host closed the connection]
azonenberg has quit [Read error: Operation timed out]
azonenberg has joined #milkymist
qi-bot has quit [Ping timeout: 260 seconds]
qi-bot has joined #milkymist
stekern_ has joined #milkymist
azonenberg has left #milkymist [#milkymist]
jimmythehorn has quit [Quit: jimmythehorn]
xiangfu has joined #milkymist
azonenberg has joined #milkymist
stekern_ is now known as stekern
xiangfu has quit [Ping timeout: 240 seconds]
xiangfu has joined #milkymist
xiangfu has quit [Remote host closed the connection]
xiangfu has joined #milkymist
xiangfu has quit [Client Quit]
xiangfu has joined #milkymist
antgreen has joined #milkymist
antgreen_ has joined #milkymist
antgreen has quit [Ping timeout: 248 seconds]
xiangfu has quit [Remote host closed the connection]
aeris has quit [Ping timeout: 240 seconds]
aeris has joined #milkymist
kilae has joined #milkymist
jimmythehorn has joined #milkymist
jimmythehorn has quit [Quit: jimmythehorn]
jimmythehorn has joined #milkymist
mumptai has joined #milkymist
Martoni has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130218165301]]
Gurty has quit [Ping timeout: 248 seconds]
Gurty has joined #milkymist
<lekernel> mwalle, do you have a contact to get my urjtag patch merged?
Alarm has joined #milkymist
lekernel has quit [Quit: Leaving]
kyak has quit [Ping timeout: 245 seconds]
kilae has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
<Fallenou> hum I have some troubles with lm32 GNU as when trying to compile NetBSD kernel
<Fallenou> I get this error message from GNU as (called by GCC): /var/folders/ab/abyj3M5qFtefd2hEj876WU+++TI/-Tmp-//ccjcEt9q.s: Error: .size expression for compat_offseterr does not evaluate to a constant
<Fallenou> here is more information about the issue: http://pastebin.com/qy3gPC7s
<Fallenou> it seems my GNU as is having troubles with the ".size" gas operation
<Fallenou> all the warnings are "debug" I added inside GNU as to try to understand what goes wrong
<Fallenou> the assembly generated by gcc seems correct : .size symbol_name, .-symbol_name
<Fallenou> right after the end of the function
<Fallenou> so it seems to be a GNU AS only issue
<wpwrak> "Warning: This is the end!" such optimism ;-)
<Fallenou> the resolve_expression() of GAS seems to return 0 over there , leading to the Error : https://github.com/fallen/lm32-binutils-mmu/blob/master/gas/expr.c#L2197
<Fallenou> wpwrak: actually those messages mean that some of resolve_expression() call make it to the end of the function , to the return 1 meaning "all is ok" :)
<Fallenou> after verification left != right
<Fallenou> called by elf_frob_symbol (what a strange name, I wonder what it means ...)
<Fallenou> and you can see a few lines below my error message "does not evaluate to a constant"
<wpwrak> maybe there's something weird in the function ?
<Fallenou> oh wait ...
<Fallenou> size->X_op is not O_constant
<Fallenou> it's O_subtract
<wpwrak> maybe try a code snippet from a (working) non-BSD build. then see if the .size works with the gas-for-BSD
<Fallenou> I wonder if resolve_expression() is called first ... (before the test of size->X_op == O_constant)
<wpwrak> if it does, take the problem code, then reduce it until it passes
<wpwrak> (reduce) first in C, then in assembler
<Fallenou> yeah you're right
<wpwrak> actually ... are those things even defined ?
<Fallenou> if ( f(x) && x->something == a ) <=== is f() called before the test x->something == a ?
<Fallenou> I would say yes
<Hawk777> Yes, because if f(x) returns false then the second expression is unevalutaed.
<Hawk777> Short circuit && operator.
<Fallenou> ok, that's what I would have said
<Fallenou> so size->X_op is not reduced by resolve_expression() to a constant, it stays a subtraction
<wpwrak> in the .s you pastebinned, i see no definition of compat_offseterr
<Fallenou> oh
<Fallenou> indeed
<Fallenou> I have mistaken the .global for a definition
<Fallenou> but it's not ...
<wpwrak> same for emul_find_root, etc.
<Fallenou> ok so it's GCC's fault :)
<Fallenou> gcc forgot to add "compat_offseterr: "
<wpwrak> so it seems :)
<Fallenou> great ! thanks :)
* Fallenou stops torturing GNU AS
<wpwrak> or maybe it's one of the build options. -ffreestanding or -fno-common (i never used them)
Alarm has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130215130331]]
* Fallenou trying to understand gcc internals ... defines everywhere ...
<Fallenou> chaos
<Fallenou> ASM_DECLARE_FUNCTION_NAME ...
<Fallenou> ok it misses some "ASM_OUTPUT_LABEL"
<Fallenou> ok thanks for the help I was starting to lose my mind ^^
<Fallenou> gn8 !
<wpwrak> sane dreams ! ;-)