Git Product home page Git Product logo

Comments (9)

jart avatar jart commented on July 24, 2024

What are your environment variables? Are you customizing the build in some way?

from cosmopolitan.

zhengshuxin avatar zhengshuxin commented on July 24, 2024

My environment is:
CentOS Linux release 7.7.1908 (Core)
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)

from cosmopolitan.

jart avatar jart commented on July 24, 2024

Could you run the following command for me?

env | grep CC\|AS

If you're overriding those variables, could you unset them and retry the build?

Please confirm if it works.

from cosmopolitan.

zhengshuxin avatar zhengshuxin commented on July 24, 2024

Nothing got after I run "env | grep CC|AS" in my environment, is something wrong?

from cosmopolitan.

jart avatar jart commented on July 24, 2024

Could you share the full output of env? Be sure to scrub it for any sensitive information.

from cosmopolitan.

zhengshuxin avatar zhengshuxin commented on July 24, 2024

Can the cosmopolitan be compiled on CentOS7 ? The full env shown below may give no help:
LC_PAPER=en_US.UTF-8
GOHOSTARCH=amd64
LC_ADDRESS=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
HOSTNAME=xxxx
SHELL=/bin/bash
TERM=linux
HISTSIZE=1000
LC_NUMERIC=en_US.UTF-8
LC_ALL=
SVN_EDITOR=vim
USER=root
LC_TELEPHONE=en_US.UTF-8
VIRTUAL_ENV=/
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
LC_MESSAGES=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
EDITOR=vim
LANG=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LESSCHARSET=latin1
SHLVL=1
HOME=/root
LC_CTYPE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_NAME=en_US.UTF-8
_=/bin/env

from cosmopolitan.

jart avatar jart commented on July 24, 2024

I just setup a CentOS7 VM and noticed an error: ar failed issue which is now resolved. Cosmopolitan now builds fine on RHEL7 and all tests pass. I even removed the Ragel dependency so you literally don't need to install any packages above the minimum install in order to build the entire Cosmopolitan codebase. I wasn't able to reproduce the specific error you encountered. Give this a try:

cd cosmopolitan
git pull
rm -rf o
make -j12

Thanks for the report.

from cosmopolitan.

zhengshuxin avatar zhengshuxin commented on July 24, 2024

Thank you very much. I pulled and tried again, and got the below error:
OBJECTIFY.S o//libc/nexgen32e/memcpy.o
OBJECTIFY.S o//libc/nexgen32e/zip.o
OBJECTIFY.S o//libc/nexgen32e/djbsort-avx2.o
OBJECTIFY.S o//libc/nexgen32e/memjmpinit.o
OBJECTIFY.S o//libc/nexgen32e/tinystrncmp.ncabi.o
OBJECTIFY.S o//libc/nexgen32e/errno.o
libc/nexgen32e/errno.S: Assembler messages:
libc/nexgen32e/errno.S:36: Error: invalid character '"' before operand 1

gcc 9: compile failed:o/third_party/gcc/bin/x86_64-linux-musl-gcc -msse3 -mno-red-zone -fno-math-errno -fno-trapping-math -fno-fp-int-builtin-inexact -fno-ident -fno-common -fno-gnu-unique -fstrict-aliasing -fstrict-overflow -fno-omit-frame-pointer -fno-semantic-interposition -mno-omit-leaf-frame-pointer -Wall -Werror -fdebug-prefix-map=/data/zsx/download/lib/cosmopolitan2= -frecord-gcc-switches -pg -D__PG__ -Og -g -gdescribe-dies -DIMAGE_BASE_VIRTUAL=0x400000 -nostdinc -iquote . -include libc/integral/normalize.inc -Wa,-W -Wa,-I. -Wa,--noexecstack -c -o o//libc/nexgen32e/errno.o libc/nexgen32e/errno.S -no-canonical-prefixes -fdiagnostics-color=always
make: *** No rule to make target o//libc/nexgen32e/errno.o', needed by o//libc/nexgen32e/nexgen32e.a.pkg'. Stop.

from cosmopolitan.

jart avatar jart commented on July 24, 2024

I can't reproduce this, sorry.

from cosmopolitan.

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.