Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find libgc.a when make vlang #21297

Open
hzchenjianfei opened this issue Apr 17, 2024 · 1 comment
Open

cannot find libgc.a when make vlang #21297

hzchenjianfei opened this issue Apr 17, 2024 · 1 comment
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@hzchenjianfei
Copy link

hzchenjianfei commented Apr 17, 2024

Describe the bug

$make
cd ./vc && git clean -xf && git pull --quiet
make fresh_tcc
make[1]: Entering directory '/home/chenjianfei.cjf/v'
fatal: unable to access 'https://github.com/vlang/tccbin/': Encountered end of file
rm -rf ./thirdparty/tcc
Pre-built TCC not available for thirdparty-linux-amd64 at https://github.com/vlang/tccbin, will use the system compiler: cc
git clone --filter=blob:none --quiet --branch thirdparty-unknown-unknown https://github.com/vlang/tccbin ./thirdparty/tcc
remote: Enumerating objects: 1, done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 1
Receiving objects: 100% (1/1), 149 bytes | 149.00 KiB/s, done.
make[2]: Entering directory '/home/chenjianfei.cjf/v'
The executable './thirdparty/tcc/tcc.exe' does not work.
make[2]: Leaving directory '/home/chenjianfei.cjf/v'
make[1]: Leaving directory '/home/chenjianfei.cjf/v'
cd ./thirdparty/tcc && git clean -xf && git pull --quiet
The executable './thirdparty/tcc/tcc.exe' does not work.
cc  -std=gnu99 -w -o v1.exe ./vc/v.c -lm -lpthread
./v1.exe -no-parallel -o v2.exe  cmd/v
./v2.exe -nocache -o ./v  cmd/v
rm -rf v1.exe v2.exe
==================
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: cannot find /home/chenjianfei.cjf/v/thirdparty/tcc/lib/libgc.a: No such file or directory
collect2: error: ld returned 1 exit status
...
==================
(Use `v -cg` to print the entire error message)

builder error:
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang

make: *** [GNUmakefile:117: all] Error 1

Reproduction Steps

$ git clone https://github.com/vlang/v.git
branch: master
commit: 1363cc8
$ make
...

Expected Behavior

make success

Current Behavior

error

Possible Solution

In v/thirdparty/, there is no tcc/, maybe there are some bugs in the make script file.

Additional Information/Context

No response

V version

commit: 1363cc8

Environment details (OS name and version, etc.)

$ uname -a
Linux h07e09129.sqa.eu95 3.10.0-327.ali2010.rc7.alios7.x86_64 #1 SMP Thu Jun 29 21:45:21 CST 2017 x86_64 x86_64 x86_64 GNU/Linux

$ gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@hzchenjianfei hzchenjianfei added the Bug This tag is applied to issues which reports bugs. label Apr 17, 2024
@spytheman
Copy link
Member

fatal: unable to access 'https://github.com/vlang/tccbin/': Encountered end of file

imho there was a network error, when trying to clone the https://github.com/vlang/tccbin/ repo.

Please try doing make several times, till this message is not there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants