Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-18522

clang: error: unknown argument: '-export-dynamic'

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      This is an environment of kernel and Lustre which is built by clang instead of gcc on ubuntu24.04.

      [    0.000000] Linux version 6.8.0-49-generic-clang-2 (ubuntu@u2404-srv1) (Ubuntu clang version 18.1.3 (1ubuntu1), Ubuntu LLD 18.1.3) #4 SMP PREEMPT_DYNAMIC Thu Dec  5 14:18:20 UTC 2024 (Ubuntu 6.8.0-49.49-generic 6.8.12) 

      In addition to LU-18517 and LU-18518, there were other fixes needed on make

       

      clang  -rdynamic -shared -export-dynamic \
               -o mount_osd_ldiskfs.so \
               `llvm-ar -t libmount_utils_ldiskfs.a` \
               -ldl   -lext2fs
      libtool: link: clang -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wno-frame-address -o ll_decode_filter_fid ll_decode_filter_fid.o  -lkeyutils
      libtool: link: clang -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wno-frame-address -o check_iam check_iam.o  -lkeyutils
      libtool: link: clang -fPIC -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1 -Wno-frame-address -rdynamic -o l_tunedisk l_tunedisk-l_tunedisk.o l_tunedisk-mount_utils.o  -lselinux -lmount ../../libcfs/libcfs/.libs/libcfs.a -ldl -lkeyutils
      clang: error: unknown argument: '-export-dynamic' 

       

      Attachments

        Activity

          [LU-18522] clang: error: unknown argument: '-export-dynamic'
          pjones Peter Jones added a comment -

          Merged for 2.17

          pjones Peter Jones added a comment - Merged for 2.17

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57334/
          Subject: LU-18522 utils: fix -export-dynamic flag
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: abd75cd6be4f2d54d58bb89ed0296a6e37db1d2c

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57334/ Subject: LU-18522 utils: fix -export-dynamic flag Project: fs/lustre-release Branch: master Current Patch Set: Commit: abd75cd6be4f2d54d58bb89ed0296a6e37db1d2c

          "Sohei Koyama <skoyama@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57334
          Subject: LU-18522 utils: fix -export-dynamic flag
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: fd1fd6f7dd56409bd647750f8aee754309faa30d

          gerrit Gerrit Updater added a comment - "Sohei Koyama <skoyama@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57334 Subject: LU-18522 utils: fix -export-dynamic flag Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: fd1fd6f7dd56409bd647750f8aee754309faa30d

          People

            skoyama Sohei Koyama
            skoyama Sohei Koyama
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: