GithubHelp home page GithubHelp logo

Freebsd compilation fails about buildscripts HOT 7 CLOSED

vitasdk avatar vitasdk commented on July 20, 2024
Freebsd compilation fails

from buildscripts.

Comments (7)

devingDev avatar devingDev commented on July 20, 2024

[ 70%] Building C object src/CMakeFiles/vita-elf-create.dir/elf-create-argp.c.o
[ 73%] Building C object src/CMakeFiles/vita-elf-create.dir/vita-elf.c.o
/userdev/vita/vitasdkcompile/buildscripts/build/vita-toolchain_build-prefix/src/vita-toolchain_build/src/vita-elf.c:505:91: error:
use of undeclared identifier 'MAP_NORESERVE'
...PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESER... ^
1 error generated.
gmake[5]: *** [src/CMakeFiles/vita-elf-create.dir/build.make:111: src/CMakeFiles/vita-elf-create.dir/vita-elf.c.o] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:292: src/CMakeFiles/vita-elf-create.dir/all] Error 2
gmake[3]: *** [Makefile:128: all] Error 2
gmake[2]: *** [CMakeFiles/vita-toolchain_build.dir/build.make:113: vita-toolchain_build-prefix/src/vita-toolchain_build-stamp/vita-toolchain_build-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:343: CMakeFiles/vita-toolchain_build.dir/all] Error 2
gmake: *** [Makefile:84: all] Error 2

from buildscripts.

devingDev avatar devingDev commented on July 20, 2024

Above I tried gmake because i
I thought that would work but it did not.

from buildscripts.

devingDev avatar devingDev commented on July 20, 2024

Also if I do not edit CMakeLists.txt and set the host and build to amd64 it wont work because otherwise it sets them to amd64-- and this error comes up when doing cmake ..

userdev/vita/vitasdkcompile/buildscripts/build # cmake ..
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.9.2")
FATALUnsupported system: FreeBSD
FATALUnsupported system: FreeBSD
-- Host: amd64--
-- Build: amd64--
-- Target: arm-vita-eabi
-- Configuring done
-- Generating done
-- Build files have been written to: /userdev/vita/vitasdkcompile/buildscripts/build

from buildscripts.

devnoname120 avatar devnoname120 commented on July 20, 2024

MAP_NORESERVE is not supported by FreeBSD, try adding this code somewhere:

#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0
#endif

from buildscripts.

devingDev avatar devingDev commented on July 20, 2024

I will try this later. The reason I wanted to compile is I could not use the one SDK which gets instaled on vitasdk.org
I got an error when compilig Vita Projects that GLIBC_2.14 was not found.
I was then hinted by an freebsd irc user to uninstall the port linux_base-c6 and instead install the port linux_base-c7 . Both of them emulate the linux environment ( if set up right 64 bit ).
Not I could compile it fine BUT I had to use gmake. make fails.

from buildscripts.

devingDev avatar devingDev commented on July 20, 2024

What I meant is : Now I could compile the projects with c7 installed.

from buildscripts.

endrift avatar endrift commented on July 20, 2024

This was fixed by vitasdk/vita-toolchain@25d343b and #44, although you still have to move libelf.h out of the way in /usr/include before you try to build, or else you'll wind up with a broken vita-elf-create.

from buildscripts.

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.