Code Monkey home page Code Monkey logo

Comments (5)

dineshadepu avatar dineshadepu commented on May 23, 2024 1

I am sorry. Mistake was mine. I was using clang-6 on ubuntu-18 and clang-3.8 on ubuntu-16.04.
By updating clang-3.8 to clang-6.0, it worked.

Thanks for the help and sorry for wasting your time.

Finally, it works with gcc 7.4, cmake 3.15, clang-6.0.

from physx-rs.

arirawr avatar arirawr commented on May 23, 2024

Hey @dineshadepu ! We're looking into why this happens, thanks for the bug report :)

from physx-rs.

h3r2tic avatar h3r2tic commented on May 23, 2024

Hah, well that's a confusing one! According to the interwebs, the -fno-plt flag was added in clang 7, yet my clang 6 (Ubuntu 18 though) is perfectly happy to accept it. My gut feeling is to avoid the headache by just not using the PLT flag in our build.rs script (in physx-sys). It will be a tiny performance hit, but probably better than struggling with compiler versions.

I've pushed a branch called "remove-no-plt" which gets rid of the flag use. Could you please try it, and see if the issue goes away? Cheers!

from physx-rs.

dineshadepu avatar dineshadepu commented on May 23, 2024

Still the same, here is the log

 ----This is LAPTOP----------------------------------
 dinesh@LAPITOP (remove-no-plt) /home/dinesh/phd/code/rust/physx-rs/physx $  
|  Dell Laptop=> cargo run --example ball_physx
   Compiling physx-sys v0.1.0+4.1
error: failed to run custom build command for `physx-sys v0.1.0+4.1`

Caused by:
  process didn't exit successfully: `/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-622ed494d2a42b24/build-script-build` (exit code: 101)
--- stdout
running: "cmake" "/home/dinesh/.cargo/registry/src/github.com-1ecc6299db9ec823/physx-sys-0.1.0+4.1/PhysX/physx/source/compiler/cmake" "-DCMAKE_LIBRARY_ARCHITECTURE=x86_64-unknown-linux-gnu" "-DPX_OUTPUT_LIB_DIR=/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out" "-DPX_OUTPUT_BIN_DIR=/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out" "-DPX_OUTPUT_ARCH=x86" "-DPX_BUILDSNIPPETS=False" "-DPX_BUILDSAMPLES=False" "-DPX_GENERATE_STATIC_LIBRARIES=True" "-DPX_GENERATE_GPU_PROJECTS=False" "-DTARGET_BUILD_PLATFORM=linux" "-DCMAKE_C_COMPILER=clang" "-DCMAKE_CXX_COMPILER=clang++" "-DCMAKE_BUILD_TYPE=debug" "-DCMAKE_INSTALL_PREFIX=/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out/build
running: "cmake" "--build" "." "--target" "install" "--config" "debug" "--"
[  0%] Built target PhysXTask
[  0%] Built target FastXml
[  4%] Built target PhysXFoundation
[  6%] Built target LowLevelAABB
[  9%] Built target PhysXPvdSDK
[ 11%] Built target PhysXCharacterKinematic
[ 15%] Built target SceneQuery
[ 20%] Built target LowLevel
[ 25%] Built target PhysXVehicle
[ 32%] Built target LowLevelDynamics
[ 40%] Built target SimulationController
[ 73%] Built target PhysXCommon
[ 78%] Built target PhysXCooking
[ 88%] Built target PhysX
[100%] Built target PhysXExtensions
Install the project...
-- Install configuration: "debug"
-- Up-to-date: /home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out/source/foundation/include/unix/PsUnixAoS.h
...
cargo:root=/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out
cargo:rustc-link-search=native=/home/dinesh/phd/code/rust/physx-rs/target/debug/build/physx-sys-b8dc94bd085df503/out/bin/linux.clang/debug
cargo:rustc-link-lib=static=PhysXVehicle_static_64
cargo:rustc-link-lib=static=PhysX_static_64
cargo:rustc-link-lib=static=PhysXCooking_static_64
cargo:rustc-link-lib=static=PhysXPvdSDK_static_64
cargo:rustc-link-lib=static=PhysXCommon_static_64
cargo:rustc-link-lib=static=PhysXFoundation_static_64
cargo:rustc-link-lib=static=PhysXCharacterKinematic_static_64
cargo:rustc-link-lib=static=PhysXExtensions_static_64
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CXXFLAGS_x86_64-unknown-linux-gnu = None
CXXFLAGS_x86_64_unknown_linux_gnu = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None

--- stderr
PHYSX ROOT /home/dinesh/.cargo/registry/src/github.com-1ecc6299db9ec823/physx-sys-0.1.0+4.1/PhysX/physx
PhysX Build Platform: linux
Using CXX Compiler: /usr/bin/clang++
CMake Warning (dev) at linux/CMakeLists.txt:36 (SET):
  implicitly converting 'INTERAL' to 'STRING' type.
Call Stack (most recent call first):
  CMakeLists.txt:133 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

clang: error: unknown argument: '-fno-plt'
thread 'main' panicked at 'failed to compile structgen even though compiler reported no failures', /home/dinesh/.cargo/registry/src/github.com-1ecc6299db9ec823/physx-sys-0.1.0+4.1/build.rs:163:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

 

from physx-rs.

h3r2tic avatar h3r2tic commented on May 23, 2024

No worries :) Glad to hear it works now. Have fun!

from physx-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.