mainSavannah Administration - Support: sr #111036, llvm internal options are ignored ...

 
 

sr #111036: llvm internal options are ignored by libtool.

Submitter:  Umesh <ukalappa>
Submitted:  Thu 21 Mar 2024 07:37:15 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Duplicate
Privacy:  Public Assigned to:  None
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 21 Mar 2024 07:37:15 AM UTC, original submission:  

Hi ,

we tried to compile the audio decoder lib with clang like https://github.com/markjeee/libmad with overriding the CFLAGS with llvm internal option like

export CFLAGS="-O3 clang -mllvm -inline-threshold=1000  -mllvm -enable-loop-distribute   test.c " ,
here libtool sorts the options before giving to driver and options ends up option like "-O3 -mllvm -mllvm  -enable-loop-distribute -inline-threshold=1000  "

libtool commandline looks like ./libtool --mode=compile clang -O3 -mllvm -mllvm  -enable-loop-distribute -inline-threshold=1000  -MT stream.lo -MD -MP -MF ".deps/stream.Tpo" -c -o stream.lo stream.c; \
then mv -f ".deps/stream.Tpo" ".deps/stream.Plo"; else rm -f ".deps/stream.Tpo"; exit 1; fi

hence the clang driver errors out like

clang: error: unknown argument '-inline-recursion=2'; did you mean '-finline-recursion=2'?

which is expected ,since the clang driver expect all internal options prepend with "-mllvm".

Please let us know ,if required more info on this ,

thank you

Umesh <ukalappa>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ineiev (Updated the item)
  • -email is unavailable- added by ukalappa (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-04-16 ineiev StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code