Hi,

sorry to hear about your problems.

First, I guess you should find out which .o files contain sections at 0x300000. If you still have the generated .asm files around, you can

    grep config_3000 *.asm

Otherwise,

    for i in *.o; do echo "### $i"; gpvo "$i" | grep -A12 -B1 config_3000; done

should do the trick.

After that, you should try to remove the section from all but one of these files. Maybe you just #include the configuration stuff into multiple files?

Should your source be reasonably self-contained and not critically secret, you may also send your buildable sources to me via personal mail so that I can have a look at the problem.

Best regards,
Raphael


On Sat, Jun 22, 2013 at 1:43 PM, Kustaa Nyholm <Kustaa.Nyholm@planmeca.com> 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