Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-29 Thread keystroke
在 2012年11月28日星期三UTC+8下午8时22分30秒,Bence Fábián写道: > but what is _most_ likely is that you really have them initialized two times. > just do > g '(op|et)names ?=' > > you should find 4 initializations. just delete the redundant ones. > > > 2012/11/28 Bence Fábiá

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-29 Thread keystroke
在 2012年11月28日星期三UTC+8下午8时48分09秒,erik quanstrom写道: > you're right. a quick trip through sort|uniq -d says that FALL is listed > > twice. > > > > - erik Thank you erik and Bence, it's a good lesson to learn.

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-29 Thread keystroke
在 2012年11月28日星期三UTC+8下午8时48分09秒,erik quanstrom写道: > you're right. a quick trip through sort|uniq -d says that FALL is listed > > twice. > > > > - erik Thank you erik, it's a good lesson.

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread erik quanstrom
you're right. a quick trip through sort|uniq -d says that FALL is listed twice. - erik

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
but what is _most_ likely is that you really have them initialized two times. just do g '(op|et)names ?=' you should find 4 initializations. just delete the redundant ones. 2012/11/28 Bence Fábián > DATA opnames<1>+116(SB)/4,$string<1>+739(SB) > and > DATA etnames<1)+72(SB)/4,$string<1>+912(SB

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
DATA opnames<1>+116(SB)/4,$string<1>+739(SB) and DATA etnames<1)+72(SB)/4,$string<1>+912(SB) are the second initializations of both opnames and etnames. you can grep for them in the output of 8c -S source.c that's all i can help, cause i can't tell what $string<1>+739(SB) and $string<1>+912(SB)

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread lucio
> int num = 20; > int num = 30; Looks easy to fix, but I understand where you're coming from. What stops you from using a workaround? ++L

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
This is a multiple initialization problem. Here is an example code: #include #include int num = 20; int num = 30; void main(void) { print("%d\n", num); exits(nil); } relevant parts: /sys/src/cmd/8l/asm.c:424: /sys/src/cmd/8l/pass.c:16: 2012/11/28 keystroke > Thank you for your reply, er

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread keystroke
Thank you for your reply, erik. But I don't quite follow you. Are you suggesting that the error has nothing to do with "opnames" and "etnames", but is about the following word "memccpy"? I had grep opnames and etnames before, and finds only one initial place. And I grep memccpy, no result was f

Re: [9fans] Linking error with 8l, guys, could you tell me where to look?

2012-11-26 Thread erik quanstrom
On Mon Nov 26 04:56:23 EST 2012, zhangrui0...@gmail.com wrote: > The message is: > > (2050) DATA opnames<1>+116(SB)/4,$string<1>+739(SB) > memccpy: multiple initialization > (2170) DATA etnames<1)+72(SB)/4,$string<1>+912(SB) > memccpy: multiple initialization > > I know 2050 is somehow related

[9fans] Linking error with 8l, guys, could you tell me where to look?

2012-11-26 Thread keystroke
The message is: (2050) DATA opnames<1>+116(SB)/4,$string<1>+739(SB) memccpy: multiple initialization (2170) DATA etnames<1)+72(SB)/4,$string<1>+912(SB) memccpy: multiple initialization I know 2050 is somehow related to the line number where opnames appear in the code, and so is 2170 with etnam