curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: [ilink64 Error] Fatal: Invalid object file 'altsvc.o'

From: Claus Dybdal Nielsen via curl-users <curl-users_at_lists.haxx.se>
Date: Wed, 26 Jul 2023 10:53:26 +0200

You are right, it was during link the error came.

No trace of  altsvc.* anywhere in files. It seems to be a problem with
"curllib.a".

Here the same problem:

https://stackoverflow.com/questions/69316932/cbuilder-10-4-11-help-wanted-to-resolve-fatal-error-invalid-object-file-alt

"I am attempting to port a 32-bit program to 64-bit, using the CLANG
compiler within C++Builder 10.4/11. However, when C++Builder attempts to
link the EXE it generates the following error message:

    C:\Program Files
    (x86)\Embarcadero\Studio\21.0\bin\CodeGear.Cpp.Targets(3988,5):
    error : Fatal: Invalid object file 'altsvc.o'

I cannot find a file called "altsvc.cpp" anywhere in my source files or
in the C++Builder library file folders. It is not listed in the
executable's project (.cbproj) file either.

Has anyone encountered this error before and know what causes it?"




Den 25-07-2023 kl. 22:34 skrev Jeffrey Walton via curl-users:
> On Tue, Jul 25, 2023 at 4:24 PM Gisle Vanem via curl-users
> <curl-users_at_lists.haxx.se> wrote:
>> Jeffrey Walton wrote:
>>
>> >> *[ilink64 Error] Fatal: Invalid object file 'altsvc.o'*
>> ...
>>
>>> Clang will get into code paths that it
>>> cannot compile.
>> Compile? The error was from 'ilink64' which the clang/LLMV
>> linker.
> My bad, you're right. More specifically, Clang pretends to be other
> compilers, but then it exhibits different behavior than the tool it is
> pretending to be.
>
> In this case, I would examine the Borland project files. It sounds
> like one is missing a reference to a source file. Check the *.bdsproj
> files, and ensure the source file is present under the
> CppStaticLibrary personality.
>
> Or, the source file could be conditionally included, and it is not
> included in the source tree for the project because the condition was
> written for the borland compiler, and not the Clang compiler.
>
> Jeff

-- 
Hilsen
Claus Dybdal Nielsen
Nordtårnet
Amager Strandvej 114C,10.mf
2300 København S
claus_at_dybdal-nielsen.dk
+45 40 31 84 89


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-07-26