bugCERTI - Bugs: bug #53964, clang: error: no such file or...

 
 

bug #53964: clang: error: no such file or directory: ';-flat_namespace'

Submitter:  None
Submitted:  Wed 23 May 2018 03:05:51 PM UTC
 
Category:  CERTI Severity:  * 3 - Normal
Item Group:  Compilation error Status:  Fixed
Privacy:  Public Assigned to:  jb_ch
Open/Closed:  Open Release:  * GIT-master
Reproducibility:  Every Time Fixed Release:  Unknown
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Tue 19 Jun 2018 01:34:30 PM UTC, comment #5: 

Fix applied on release branch br_jbch_4.0.0, commit #1c571992

JbCh <jb_ch>
Project Administrator
Mon 18 Jun 2018 04:19:36 PM UTC, comment #4: 

Sorry for the late reply. This patch works well for macOS Sierra 10.12.6 and also High Sierra 10.13.4.

For having CERTI working with Ptolemy, I need also to execute this command as indicated in $ PTII/org/hlcerti/.build-certi.sh:
sudo sh -c "cd /usr/local/lib; ln -s /Users/j.cardoso/pthla/certi-tools/lib/* ."

janette cardoso <cardoso>
Project Member
Wed 23 May 2018 03:51:32 PM UTC, comment #3: 

An additional comment, it would be great if you can create an account and log in. It's better to keep track on the issues and, for you, to receive any update regarding questions/problems you have.

Best regards,
Jb Ch

JbCh <jb_ch>
Project Administrator
Wed 23 May 2018 03:49:42 PM UTC, comment #2: 

It seems that there is an issue in CMakeList. Can you please try the following patch "jbch_patch_53954.patch" and see if it works for you.

Regards

(file #44200)

JbCh <jb_ch>
Project Administrator
Wed 23 May 2018 03:42:17 PM UTC, comment #1: 

Hello,

Can you please mention the quickfix you are talking about?
Is the quickfix from the CMakeList mentionned in your ticket?

Thanks,
Best regards

JbCh <jb_ch>
Project Administrator
Wed 23 May 2018 03:05:51 PM UTC, original submission:  

Under clang 9.1.0 and macOS 10.13.4, clang fails with:

[  9%] Linking CXX shared library libHLAd.dylib
clang: error: no such file or directory: ';-flat_namespace'
make[2]: *** [libHLA/libHLAd.4.0.0.dylib] Error 1
make[1]: *** [libHLA/CMakeFiles/HLA.dir/all] Error 2
make: *** [all] Error 2

How to reproduce:

git clone -b br_jbch_4.0.0 https://git.savannah.nongnu.org/git/certi.git
cd certi
mkdir build
cd build
cmake -DFORCE_NO_X11=ON ..
make

Here's my OS and clang:

bash-3.2$ uname -a
Darwin ealmac23 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_\
X86_64 x86_64
bash-3.2$ clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
bash-3.2$

CMakeLists.txt contains the following:

# FIXME currently on MacOS we have a "undefined symbol issue"
# The toggle to linker flag is a "quick fix" to avoid that
# but this is not the end of the story we need to fix it for good.
if (APPLE)
   SET (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_INIT} "-flat_namespace -undefined suppress"
        CACHE STRING "Flags used by the linker during the creation of dll's." FORCE)
   # module linker flags
   SET (CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_INIT} "-flat_namespace -undefined suppress"
CACHE STRING "Flags used by the linker during the creation of modules." FORCE)

   #set(PROPERTY LINK_FLAGS_DEBUG "-flat_namespace -undefined suppress")
endif(APPLE)

So, it seems like the quick fix only works under certain compilers.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #44200:  jbch_patch_53954.patch added by jb_ch (1023B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cardoso (Posted a comment)
  • -email is unavailable- added by jb_ch (Posted a comment)
  •  

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-01 jb_ch StatusWorks For Me Fixed
    2018-06-19 jb_ch StatusNeed Info Works For Me
    2018-05-23 jb_ch Attached File- Added jbch_patch_53954.patch, #44200
    2018-05-23 jb_ch StatusNone Need Info
        Assigned toNone jb_ch
        ReleaseUnknown GIT-master

    Back to the top


    Powered by Savane 3.9