opencomputeproject / onie

Open Network Install Environment
https://opencomputeproject.github.io/onie
Other
601 stars 373 forks source link

Compilation Errors in compiling Kvm_x86_64 and qemu_armv8a #460

Closed pankajbansal3073 closed 7 years ago

pankajbansal3073 commented 7 years ago

@cbrune Hello Curt,

i observed the compilation errors when try to build qemu_armv8a machine from master branch. ERROR: Missing SYSROOT_LIB: ld-2.24.so These are the errors for which i added lib64 changes in sysroot.make. I think those changes are necessary for any 64 bit target architecture with the new Crosstool-ng. Let us discuss how we can solve these compilation errors.

i have create a pull request with my changes again. i think these changes can be made more generic. maybe introduce a new variable for bitness of target architecture (32 bit or 64 bit)

or we can use crosstool gcc to find if LP64, _LP64 macros are defined or not? (https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html#Common-Predefined-Macros)

what do you think ?

cbrune commented 7 years ago

Seems to be specific to the armv8 as the x86_64 is building OK.

cbrune commented 7 years ago

Closing as I believe this is fixed.