Comments (9)
What are your environment variables? Are you customizing the build in some way?
from cosmopolitan.
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.
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.
Nothing got after I run "env | grep CC|AS" in my environment, is something wrong?
from cosmopolitan.
Could you share the full output of env
? Be sure to scrub it for any sensitive information.
from cosmopolitan.
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.
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.
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.
I can't reproduce this, sorry.
from cosmopolitan.
Related Issues (20)
- `ape -` without arguments is broken HOT 7
- [redbean] OnServerHeartbeat() is broken in non-daemon mode
- [Windows] Use WSADuplicateSocket to duplicate socket handles on fork
- zlib name clashes since #1142 HOT 5
- Allow replacing `jartsr=` magic with `#!/bin/sh` header
- cosmocc segfaults on static struct sigaction HOT 2
- confstr() is declared in <stdio.h> rather than <unistd.h>
- Python binary is packaged without certificates HOT 4
- [Windows] execve regression
- test/posix/fread3gb_test fails on XnuSilicon
- cosmo.zip offiline? HOT 3
- llamafile --assimilate: corrupted program header size HOT 1
- test/libc/calls/open_test: open_readOnlyCreatMode gives wrong errno, but not with --strace, on linux aarch64 HOT 1
- Bug: Mac llamafile make issue HOT 1
- testing github autolabeler label is too noisy
- Bug: On Windows, cosmos GNU coreutils ls not printing correct result for `ls ../../` HOT 4
- compile_commands.json generator for clangd integration HOT 1
- Bug: Lua fails a `seek`-related test
- Bug: Lua's `ltests.c` doesn't compile
- Bug: secondary redbean SQLite WAL connections lock after first write HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmopolitan.