Hi Kusti,

Miguel Montiel Mtz reported similar problem, see http://sourceforge.net/p/sdcc/bugs/2058/?page=2

It seems that SDCC  upgrade to version 3.3.0 (and probably also gputils to version 1.2.0) and using #pragma config solved the problem.

Borut


On 22. 06. 2013 13:43, Kustaa Nyholm wrote:
Hi,

I returned to a project I'm working on after a few months and
things had gone sour. When I tried to build my code (with no
code changes) I found my gpasm had disappeared, probable because
I had messed with Mac OS X homebrew (great package manager for
Mac OS IMO/BTW). So I re-installed it from source using 'brew'
and now when I compile I get this:


nyholkus-MacBook-Pro:src-1.4.0.0 nyholku$ make
/Users/nyholku/sdcc-3.2.0/bin/sdcc -V -L
/Users/nyholku/sdcc-3.2.0/share/sdcc/non-free/lib/pic16
-Wl,-m,-s18f4550.lkr -mpic16 -p18f4550 --disable-warning 85 --std-sdcc99
--obanksel=3 --use-non-free -o ../obj/toad4.hex ../obj/stepper.o
../obj/cmdQueue.o ../obj/cmdInterp.o ../obj/stepperirq.o ../obj/main.o
../obj/usbcdc.o ../obj/printft.o ../obj/toad3.o libc18f.lib
libio18f4550.lib libm18f.lib libsdcc.lib
+ "gplink" -I"/Users/nyholku/sdcc-3.2.0/share/sdcc/non-free/lib/pic16"
-I"/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/lib/pic16"
-I"/usr/local/share/sdcc/lib/pic16"
-I"/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/non-free/lib/pic16"
-I"/usr/local/share/sdcc/non-free/lib/pic16"   -m -s18f4550.lkr  -w -r -o
"../obj/toad4.hex"  "../obj/stepper.o" "../obj/cmdQueue.o"
"../obj/cmdInterp.o" "../obj/stepperirq.o" "../obj/main.o"
"../obj/usbcdc.o" "../obj/printft.o" "../obj/toad3.o"  crt0i.o
"libc18f.lib" "libio18f4550.lib" "libm18f.lib" "libsdcc.lib"
"libdev18f4550.lib" "libsdcc.lib"
error: section ".config_300000_../OBJ/MAIN.O" is absolute but occurs in
more than one file
+ "gplink" -I"/Users/nyholku/sdcc-3.2.0/share/sdcc/non-free/lib/pic16"
-I"/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/lib/pic16"
-I"/usr/local/share/sdcc/lib/pic16"
-I"/Users/nyholku/sdcc-3.2.0/bin/../share/sdcc/non-free/lib/pic16"
-I"/usr/local/share/sdcc/non-free/lib/pic16"   -m -s18f4550.lkr  -w -r -o
"../obj/toad4.hex"  "../obj/stepper.o" "../obj/cmdQueue.o"
"../obj/cmdInterp.o" "../obj/stepperirq.o" "../obj/main.o"
"../obj/usbcdc.o" "../obj/printft.o" "../obj/toad3.o"  crt0i.o
"libc18f.lib" "libio18f4550.lib" "libm18f.lib" "libsdcc.lib"
"libdev18f4550.lib" "libsdcc.lib"  returned errorcode 256
make: *** [../obj/toad4.hex] Error 1
nyholkus-MacBook-Pro:src-1.4.0.0 nyholku$


these are my versions:

nyholkus-MacBook-Pro:src-1.4.0.0 nyholku$ gplink -v
gplink-1.2.0 #980 (Jun 22 2013)
nyholkus-MacBook-Pro:src-1.4.0.0 nyholku$
/Users/nyholku/sdcc-3.2.0/bin/sdcc -v
SDCC :
mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08
3.2.0 #8008 (Jul  6 2012) (Mac OS X i386)


Something to do with the config registers I think. I'm using the
deprecated
__code char __at 0x300000 form and I should be moving on I guess but right

now I would no like to figure out all  (and make mistakes with) names that
the new form requires.

I've got full backups of everything (including gputils) so I'm good if
I take that route, however that will be wholesale operation as far
/usr/local
is concerned so that will probably mess up something unrelated (which
originally
messed up gputils) so I'd rather just patch this up and move forward.

So it tried to look for the cause of 'is absolute but occurs in more than
one file"
but could not find it, all help appreciated!

br Kusti





This e-mail may contain confidential or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. We will not be liable for direct, indirect, special or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on or as of transmission of this e-mail in general.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user