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 compile wget with Clang-3.9.1 #59

Closed
konimex opened this issue Dec 24, 2016 · 1 comment
Closed

Cannot compile wget with Clang-3.9.1 #59

konimex opened this issue Dec 24, 2016 · 1 comment

Comments

@konimex
Copy link

konimex commented Dec 24, 2016

It seems the utility wget in toybox cannot be compiled with clang-3.9.1.

The output in question:

clang -O2 -pipe -funsigned-char -Wno-string-plus-int -I . -Os -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-strict-aliasing -c toys/posix/cat.c -o generated/obj/cat.o
toys/pending/wget.c:148:16: error: use of undeclared identifier
      'TOYBOX_VERSION'; did you mean '_LIB_VERSION'?
  strncpy(ver, TOYBOX_VERSION, 5);
               ^~~~~~~~~~~~~~
               _LIB_VERSION
/usr/include/math.h:327:26: note: '_LIB_VERSION' declared here
extern _LIB_VERSION_TYPE _LIB_VERSION;
                         ^
1 error generated.
Makefile:19: recipe for target 'toybox' failed
make: *** [toybox] Error 1
@LipiLee
Copy link
Contributor

LipiLee commented Dec 26, 2016

It will be defined in generated/build.sh script after you run 'make defconfig' and when 'make'ing. But, only 5 characters will be used in wget command, not all.

@konimex konimex closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants