gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with Compiler Option -fobject-path=


From: Gaius Mulley
Subject: Re: Problem with Compiler Option -fobject-path=
Date: Wed, 26 Apr 2023 16:22:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

john o goyo <jog37@riddermarkfarm.ca> writes:

> Greetings, Derek.
>
> On 2023-04-22 19:22, Derek Wyss wrote:
>> Hello,
>>
>> I'm attempting to compile using some build/ninja scripts that were
>> previously working:
>>
>> tez@cibolo:~/Desktop/zona/lib/List$ ninja
>> [1/1] gm2 -g -Wall -fsoft-check-all -I.:/home/tez/prog/def/
>> -fobject-path=.:/home/tez/prog/lib/ -c List.mod
>> FAILED: List.o
>> gm2 -g -Wall -fsoft-check-all -I.:/home/tez/prog/def/
>> -fobject-path=.:/home/tez/prog/lib/ -c List.mod
>> gm2: error: unrecognized command-line option
>> ‘-fobject-path=.:/home/tez/prog/lib/’
>
> That option does not appear to be in the current gm2
> (https://gcc.gnu.org/onlinedocs/gm2/Compiler-options.html).  Perhaps 
> '-flibs=.:/home/tez/prog/lib' may be the equivalent.  Sorry that I
> cannot be definitive here but I have never used the previous option.
>
> Sincerely,
> john
>
>
>> ninja: build stopped: subcommand failed.
>>
>> I was previously using the Debian gm2 package that came from
>> floppsie. My current version info:
>>
>> tez@cibolo:~/Desktop/zona/lib/List$ gm2 --version
>> gm2 (GCC) 13.0.0 20221214 (experimental)
>>
>> Any suggestions?
>>
>> Best regards,
>>
>> Derek

Hi Derek and John,

yes (gm2) gcc-13 uses a different linking implementation and
-fobject-path is no longer present in gcc-13.  Users now add m2 objects
to the driver program (similar to linking with gcc/g++)

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]