developing formulae: fsarchive #5647
Unanswered
phreed
asked this question in
Writing Formulae/Casks
Replies: 2 comments 3 replies
-
This is because you're not actually passing |
Beta Was this translation helpful? Give feedback.
2 replies
-
When I run brew install --build-from-source fsarchiver --debug I get the error,
I choose shell and do the following: cd src
make -d fsarchiver-fs_ext2.o This reproduces the error.
However if I run the compile by hand. gcc -DHAVE_CONFIG_H -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -I. -I.. -g -O2 -Wall -std=gnu99 -rdynamic -ggdb -I/home/linuxbrew/.linuxbrew/Cellar/xz/5.6.2/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/ext2fs -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/et -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/et -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include/e2p -I/home/linuxbrew/.linuxbrew/Cellar/e2fsprogs/1.47.1/include -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.2/include/blkid -I/home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.2/include/uuid -g -O2 -c -o fsarchiver-fs_ext2.o `test -f 'fs_ext2.c' || echo './'`fs_ext2.c It compiles and produces the object file (with warnings).
How does running the compile from the makefile produce a different result? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am working on a formulae for
fsarchiver
.I am getting a compilation error.
uuid.h: No such file or directory
But the uuid.h file is present: /home/linuxbrew/.linuxbrew/Cellar/util-linux/2.40.2/include/uuid/uuid.h
I suspect the problem stems from the include being
#include <uuid.h>
and it should be#include <uuid/uuid.h>
.What is the proper way to adjust the
fsarchiver.rb
?I have been looking at https://github.com/Homebrew/homebrew-core/blob/685b78c42e92a8ea57904250c483beea9ca1a7ec/Formula/e/e2fsprogs.rb as my model.
fsarchiver.rb.txt
note: This is my first formulae.
Beta Was this translation helpful? Give feedback.
All reactions